Skip to content

Commit 40f3e83

Browse files
feat(api): api update
1 parent 147ad12 commit 40f3e83

File tree

5 files changed

+28
-2
lines changed

5 files changed

+28
-2
lines changed

.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-b5edd97adf4a776544fa5c5915112cad2c3f9e77819eeb1fdcc34f200fce0e43.yml
3-
openapi_spec_hash: 997e58388713e8236c83a940fdc71089
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/supermemory--inc%2Fsupermemory-new-63361336422f9e8ab2d67ca0f0068c7ac5f162dae5ec6de35b362cc11f07a3cb.yml
3+
openapi_spec_hash: 862585828a78f8f58ab03c27d6ac8db0
44
config_hash: f3eb5ca71172780678106f6d46f15dda

src/supermemory/resources/search.py

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ def documents(
5151
q: str,
5252
categories_filter: SequenceNotStr[str] | Omit = omit,
5353
chunk_threshold: float | Omit = omit,
54+
container_tag: str | Omit = omit,
5455
container_tags: SequenceNotStr[str] | Omit = omit,
5556
doc_id: str | Omit = omit,
5657
document_threshold: float | Omit = omit,
@@ -80,6 +81,8 @@ def documents(
8081
chunks, more results), 1 is most sensitive (returns lesser chunks, accurate
8182
results)
8283
84+
container_tag: Optional single container tag. Use this or containerTags.
85+
8386
container_tags: Optional tags this search should be containerized by. This can be an ID for your
8487
user, a project ID, or any other identifier you wish to use to filter documents.
8588
@@ -124,6 +127,7 @@ def documents(
124127
"q": q,
125128
"categories_filter": categories_filter,
126129
"chunk_threshold": chunk_threshold,
130+
"container_tag": container_tag,
127131
"container_tags": container_tags,
128132
"doc_id": doc_id,
129133
"document_threshold": document_threshold,
@@ -149,6 +153,7 @@ def execute(
149153
q: str,
150154
categories_filter: SequenceNotStr[str] | Omit = omit,
151155
chunk_threshold: float | Omit = omit,
156+
container_tag: str | Omit = omit,
152157
container_tags: SequenceNotStr[str] | Omit = omit,
153158
doc_id: str | Omit = omit,
154159
document_threshold: float | Omit = omit,
@@ -178,6 +183,8 @@ def execute(
178183
chunks, more results), 1 is most sensitive (returns lesser chunks, accurate
179184
results)
180185
186+
container_tag: Optional single container tag. Use this or containerTags.
187+
181188
container_tags: Optional tags this search should be containerized by. This can be an ID for your
182189
user, a project ID, or any other identifier you wish to use to filter documents.
183190
@@ -222,6 +229,7 @@ def execute(
222229
"q": q,
223230
"categories_filter": categories_filter,
224231
"chunk_threshold": chunk_threshold,
232+
"container_tag": container_tag,
225233
"container_tags": container_tags,
226234
"doc_id": doc_id,
227235
"document_threshold": document_threshold,
@@ -350,6 +358,7 @@ async def documents(
350358
q: str,
351359
categories_filter: SequenceNotStr[str] | Omit = omit,
352360
chunk_threshold: float | Omit = omit,
361+
container_tag: str | Omit = omit,
353362
container_tags: SequenceNotStr[str] | Omit = omit,
354363
doc_id: str | Omit = omit,
355364
document_threshold: float | Omit = omit,
@@ -379,6 +388,8 @@ async def documents(
379388
chunks, more results), 1 is most sensitive (returns lesser chunks, accurate
380389
results)
381390
391+
container_tag: Optional single container tag. Use this or containerTags.
392+
382393
container_tags: Optional tags this search should be containerized by. This can be an ID for your
383394
user, a project ID, or any other identifier you wish to use to filter documents.
384395
@@ -423,6 +434,7 @@ async def documents(
423434
"q": q,
424435
"categories_filter": categories_filter,
425436
"chunk_threshold": chunk_threshold,
437+
"container_tag": container_tag,
426438
"container_tags": container_tags,
427439
"doc_id": doc_id,
428440
"document_threshold": document_threshold,
@@ -448,6 +460,7 @@ async def execute(
448460
q: str,
449461
categories_filter: SequenceNotStr[str] | Omit = omit,
450462
chunk_threshold: float | Omit = omit,
463+
container_tag: str | Omit = omit,
451464
container_tags: SequenceNotStr[str] | Omit = omit,
452465
doc_id: str | Omit = omit,
453466
document_threshold: float | Omit = omit,
@@ -477,6 +490,8 @@ async def execute(
477490
chunks, more results), 1 is most sensitive (returns lesser chunks, accurate
478491
results)
479492
493+
container_tag: Optional single container tag. Use this or containerTags.
494+
480495
container_tags: Optional tags this search should be containerized by. This can be an ID for your
481496
user, a project ID, or any other identifier you wish to use to filter documents.
482497
@@ -521,6 +536,7 @@ async def execute(
521536
"q": q,
522537
"categories_filter": categories_filter,
523538
"chunk_threshold": chunk_threshold,
539+
"container_tag": container_tag,
524540
"container_tags": container_tags,
525541
"doc_id": doc_id,
526542
"document_threshold": document_threshold,

src/supermemory/types/search_documents_params.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -342,6 +342,9 @@ class SearchDocumentsParams(TypedDict, total=False):
342342
(returns lesser chunks, accurate results)
343343
"""
344344

345+
container_tag: Annotated[str, PropertyInfo(alias="containerTag")]
346+
"""Optional single container tag. Use this or containerTags."""
347+
345348
container_tags: Annotated[SequenceNotStr[str], PropertyInfo(alias="containerTags")]
346349
"""Optional tags this search should be containerized by.
347350

src/supermemory/types/search_execute_params.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -342,6 +342,9 @@ class SearchExecuteParams(TypedDict, total=False):
342342
(returns lesser chunks, accurate results)
343343
"""
344344

345+
container_tag: Annotated[str, PropertyInfo(alias="containerTag")]
346+
"""Optional single container tag. Use this or containerTags."""
347+
345348
container_tags: Annotated[SequenceNotStr[str], PropertyInfo(alias="containerTags")]
346349
"""Optional tags this search should be containerized by.
347350

tests/api_resources/test_search.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ def test_method_documents_with_all_params(self, client: Supermemory) -> None:
3636
q="machine learning concepts",
3737
categories_filter=["string"],
3838
chunk_threshold=0.5,
39+
container_tag="user_123",
3940
container_tags=["user_123"],
4041
doc_id="docId",
4142
document_threshold=0,
@@ -101,6 +102,7 @@ def test_method_execute_with_all_params(self, client: Supermemory) -> None:
101102
q="machine learning concepts",
102103
categories_filter=["string"],
103104
chunk_threshold=0.5,
105+
container_tag="user_123",
104106
container_tags=["user_123"],
105107
doc_id="docId",
106108
document_threshold=0,
@@ -240,6 +242,7 @@ async def test_method_documents_with_all_params(self, async_client: AsyncSuperme
240242
q="machine learning concepts",
241243
categories_filter=["string"],
242244
chunk_threshold=0.5,
245+
container_tag="user_123",
243246
container_tags=["user_123"],
244247
doc_id="docId",
245248
document_threshold=0,
@@ -305,6 +308,7 @@ async def test_method_execute_with_all_params(self, async_client: AsyncSupermemo
305308
q="machine learning concepts",
306309
categories_filter=["string"],
307310
chunk_threshold=0.5,
311+
container_tag="user_123",
308312
container_tags=["user_123"],
309313
doc_id="docId",
310314
document_threshold=0,

0 commit comments

Comments
 (0)