Skip to content

Commit 04a5168

Browse files
feat(api): api update
1 parent 77e0863 commit 04a5168

4 files changed

Lines changed: 3843 additions & 4 deletions

File tree

.stats.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 26
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/supermemory--inc%2Fsupermemory-new-8773015c1da0dcb9dfeec7ff946b71ed9b75b854d0f0de6dc1545d218d181715.yml
3-
openapi_spec_hash: 1af583bba4ee00275021c440cf38ee13
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/supermemory--inc%2Fsupermemory-new-062b5e0b84ca5acf4b18f1a9650e023e1908ee6f2b88465e55ba5213ee9257bf.yml
3+
openapi_spec_hash: c465d5d777712bec4bdd8e6aa81a0da9
44
config_hash: f3eb5ca71172780678106f6d46f15dda

src/supermemory/_client.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -299,6 +299,7 @@ def profile(
299299
self,
300300
*,
301301
container_tag: str,
302+
filters: client_profile_params.Filters | Omit = omit,
302303
q: str | Omit = omit,
303304
threshold: float | Omit = omit,
304305
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
@@ -315,6 +316,9 @@ def profile(
315316
container_tag: Tag to filter the profile by. This can be an ID for your user, a project ID, or
316317
any other identifier you wish to use to filter memories.
317318
319+
filters: Optional metadata filters to apply to profile results and search results.
320+
Supports complex AND/OR queries with multiple conditions.
321+
318322
q: Optional search query to include search results in the response
319323
320324
threshold: Threshold for search results. Only results with a score above this threshold
@@ -333,6 +337,7 @@ def profile(
333337
body=maybe_transform(
334338
{
335339
"container_tag": container_tag,
340+
"filters": filters,
336341
"q": q,
337342
"threshold": threshold,
338343
},
@@ -607,6 +612,7 @@ async def profile(
607612
self,
608613
*,
609614
container_tag: str,
615+
filters: client_profile_params.Filters | Omit = omit,
610616
q: str | Omit = omit,
611617
threshold: float | Omit = omit,
612618
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
@@ -623,6 +629,9 @@ async def profile(
623629
container_tag: Tag to filter the profile by. This can be an ID for your user, a project ID, or
624630
any other identifier you wish to use to filter memories.
625631
632+
filters: Optional metadata filters to apply to profile results and search results.
633+
Supports complex AND/OR queries with multiple conditions.
634+
626635
q: Optional search query to include search results in the response
627636
628637
threshold: Threshold for search results. Only results with a score above this threshold
@@ -641,6 +650,7 @@ async def profile(
641650
body=await async_maybe_transform(
642651
{
643652
"container_tag": container_tag,
653+
"filters": filters,
644654
"q": q,
645655
"threshold": threshold,
646656
},

0 commit comments

Comments
 (0)