diff --git a/.release-please-manifest.json b/.release-please-manifest.json index a00871b..2ee93a5 100644 --- a/.release-please-manifest.json +++ b/.release-please-manifest.json @@ -1,3 +1,3 @@ { - ".": "3.40.0" + ".": "3.41.0" } \ No newline at end of file diff --git a/.stats.yml b/.stats.yml index 44ea2c0..f653204 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 26 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/supermemory--inc/supermemory-new-cc0ff5a1831707e8733abeeaa245215c4ba276f8f485ed36beeeaa4f0580a203.yml -openapi_spec_hash: d49d49625c82142babe4a6ac4d2cd8d4 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/supermemory--inc/supermemory-new-26f4b89c531711844d1ee4abe2451e7b8459a4ba1a0c2d63d2b9914075e83c87.yml +openapi_spec_hash: 6921ba2bd43309aa97748d0af48adb13 config_hash: cde97ef3188581c5f4924c633ec33ddb diff --git a/CHANGELOG.md b/CHANGELOG.md index 6af21c5..4440b11 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,13 @@ # Changelog +## 3.41.0 (2026-05-12) + +Full Changelog: [v3.40.0...v3.41.0](https://github.com/supermemoryai/python-sdk/compare/v3.40.0...v3.41.0) + +### Features + +* **api:** api update ([02a5d82](https://github.com/supermemoryai/python-sdk/commit/02a5d82aaaf3b11183d66ce5adfd154c26ecb324)) + ## 3.40.0 (2026-05-11) Full Changelog: [v3.39.0...v3.40.0](https://github.com/supermemoryai/python-sdk/compare/v3.39.0...v3.40.0) diff --git a/pyproject.toml b/pyproject.toml index c9811ab..b0e4aa1 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "supermemory" -version = "3.40.0" +version = "3.41.0" description = "The official Python library for the supermemory API" dynamic = ["readme"] license = "Apache-2.0" diff --git a/src/supermemory/_version.py b/src/supermemory/_version.py index ca67ff6..cdaf5c5 100644 --- a/src/supermemory/_version.py +++ b/src/supermemory/_version.py @@ -1,4 +1,4 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. __title__ = "supermemory" -__version__ = "3.40.0" # x-release-please-version +__version__ = "3.41.0" # x-release-please-version diff --git a/src/supermemory/resources/documents.py b/src/supermemory/resources/documents.py index 5b52c23..7ebc877 100644 --- a/src/supermemory/resources/documents.py +++ b/src/supermemory/resources/documents.py @@ -338,6 +338,7 @@ def batch_add( container_tag: str | Omit = omit, container_tags: SequenceNotStr[str] | Omit = omit, content: None | Omit = omit, + entity_context: str | Omit = omit, filepath: str | Omit = omit, filter_by_metadata: Dict[str, Union[str, float, bool, SequenceNotStr[str]]] | Omit = omit, metadata: Dict[str, Union[str, float, bool, SequenceNotStr[str]]] | Omit = omit, @@ -363,6 +364,9 @@ def batch_add( containerized by. This can be an ID for your user, a project ID, or any other identifier you wish to use to group documents. + entity_context: Optional entity context for this container tag. Max 1500 characters. Used during + document processing to guide memory extraction. + filepath: Optional file path for the document (e.g., '/documents/reports/file.pdf'). Used by supermemoryfs to map documents to filesystem paths. @@ -396,6 +400,7 @@ def batch_add( "container_tag": container_tag, "container_tags": container_tags, "content": content, + "entity_context": entity_context, "filepath": filepath, "filter_by_metadata": filter_by_metadata, "metadata": metadata, @@ -915,6 +920,7 @@ async def batch_add( container_tag: str | Omit = omit, container_tags: SequenceNotStr[str] | Omit = omit, content: None | Omit = omit, + entity_context: str | Omit = omit, filepath: str | Omit = omit, filter_by_metadata: Dict[str, Union[str, float, bool, SequenceNotStr[str]]] | Omit = omit, metadata: Dict[str, Union[str, float, bool, SequenceNotStr[str]]] | Omit = omit, @@ -940,6 +946,9 @@ async def batch_add( containerized by. This can be an ID for your user, a project ID, or any other identifier you wish to use to group documents. + entity_context: Optional entity context for this container tag. Max 1500 characters. Used during + document processing to guide memory extraction. + filepath: Optional file path for the document (e.g., '/documents/reports/file.pdf'). Used by supermemoryfs to map documents to filesystem paths. @@ -973,6 +982,7 @@ async def batch_add( "container_tag": container_tag, "container_tags": container_tags, "content": content, + "entity_context": entity_context, "filepath": filepath, "filter_by_metadata": filter_by_metadata, "metadata": metadata, diff --git a/src/supermemory/types/document_batch_add_params.py b/src/supermemory/types/document_batch_add_params.py index d171d22..9f7e792 100644 --- a/src/supermemory/types/document_batch_add_params.py +++ b/src/supermemory/types/document_batch_add_params.py @@ -30,6 +30,12 @@ class DocumentBatchAddParams(TypedDict, total=False): content: None + entity_context: Annotated[str, PropertyInfo(alias="entityContext")] + """Optional entity context for this container tag. + + Max 1500 characters. Used during document processing to guide memory extraction. + """ + filepath: str """Optional file path for the document (e.g., '/documents/reports/file.pdf'). @@ -96,6 +102,12 @@ class DocumentsUnionMember0(TypedDict, total=False): document. """ + entity_context: Annotated[str, PropertyInfo(alias="entityContext")] + """Optional entity context for this container tag. + + Max 1500 characters. Used during document processing to guide memory extraction. + """ + filepath: str """Optional file path for the document (e.g., '/documents/reports/file.pdf'). diff --git a/tests/api_resources/test_documents.py b/tests/api_resources/test_documents.py index 76e2ec4..10d6e6c 100644 --- a/tests/api_resources/test_documents.py +++ b/tests/api_resources/test_documents.py @@ -39,22 +39,18 @@ def test_method_update(self, client: Supermemory) -> None: def test_method_update_with_all_params(self, client: Supermemory) -> None: document = client.documents.update( id="id", - container_tag="user_123", - container_tags=["user_123", "project_123"], - content="This is a detailed article about machine learning concepts...", - custom_id="mem_abc123", + container_tag="user_alex", + container_tags=["_:_k--W2K_1V"], + content="Our API rate limits are 100 req/min on free and 1000 on pro. Clients should use exponential backoff on 429s.", + custom_id="doc-api-rate-limits", filepath="/documents/reports/file.pdf", filter_by_metadata={ "department": "engineering", "region": "us", }, metadata={ - "category": "technology", - "isPublic": True, - "readingTime": 5, - "source": "web", - "tag_1": "ai", - "tag_2": "machine-learning", + "source": "upload", + "language": "en", }, task_type="memory", ) @@ -104,8 +100,8 @@ def test_method_list(self, client: Supermemory) -> None: @parametrize def test_method_list_with_all_params(self, client: Supermemory) -> None: document = client.documents.list( - container_tags=["user_123", "project_123"], - filepath="/docs/", + container_tags=["_:_k--W2K_1V"], + filepath="filepath", filters={ "and_": [ { @@ -252,7 +248,11 @@ def test_streaming_response_add(self, client: Supermemory) -> None: @parametrize def test_method_batch_add(self, client: Supermemory) -> None: document = client.documents.batch_add( - documents=[{"content": "This is a detailed article about machine learning concepts..."}], + documents=[ + { + "content": "Our API rate limits are 100 req/min on free and 1000 on pro. Clients should use exponential backoff on 429s." + } + ], ) assert_matches_type(DocumentBatchAddResponse, document, path=["response"]) @@ -262,41 +262,35 @@ def test_method_batch_add_with_all_params(self, client: Supermemory) -> None: document = client.documents.batch_add( documents=[ { - "content": "This is a detailed article about machine learning concepts...", - "container_tag": "user_123", - "container_tags": ["user_123", "project_123"], - "custom_id": "mem_abc123", + "content": "Our API rate limits are 100 req/min on free and 1000 on pro. Clients should use exponential backoff on 429s.", + "container_tag": "user_alex", + "container_tags": ["_:_k--W2K_1V"], + "custom_id": "doc-api-rate-limits", + "entity_context": "User's name is {XYZ}", "filepath": "/documents/reports/file.pdf", "filter_by_metadata": { "department": "engineering", "region": "us", }, "metadata": { - "category": "technology", - "isPublic": True, - "readingTime": 5, - "source": "web", - "tag_1": "ai", - "tag_2": "machine-learning", + "source": "upload", + "language": "en", }, "task_type": "memory", } ], - container_tag="user_123", - container_tags=["user_123", "project_123"], + container_tag="user_alex", + container_tags=["_:_k--W2K_1V"], content=None, + entity_context="User's name is {XYZ}", filepath="/documents/reports/file.pdf", filter_by_metadata={ "department": "engineering", "region": "us", }, metadata={ - "category": "technology", - "isPublic": True, - "readingTime": 5, - "source": "web", - "tag_1": "ai", - "tag_2": "machine-learning", + "source": "upload", + "language": "en", }, task_type="memory", ) @@ -306,7 +300,11 @@ def test_method_batch_add_with_all_params(self, client: Supermemory) -> None: @parametrize def test_raw_response_batch_add(self, client: Supermemory) -> None: response = client.documents.with_raw_response.batch_add( - documents=[{"content": "This is a detailed article about machine learning concepts..."}], + documents=[ + { + "content": "Our API rate limits are 100 req/min on free and 1000 on pro. Clients should use exponential backoff on 429s." + } + ], ) assert response.is_closed is True @@ -318,7 +316,11 @@ def test_raw_response_batch_add(self, client: Supermemory) -> None: @parametrize def test_streaming_response_batch_add(self, client: Supermemory) -> None: with client.documents.with_streaming_response.batch_add( - documents=[{"content": "This is a detailed article about machine learning concepts..."}], + documents=[ + { + "content": "Our API rate limits are 100 req/min on free and 1000 on pro. Clients should use exponential backoff on 429s." + } + ], ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -338,8 +340,8 @@ def test_method_delete_bulk(self, client: Supermemory) -> None: @parametrize def test_method_delete_bulk_with_all_params(self, client: Supermemory) -> None: document = client.documents.delete_bulk( - container_tags=["user_123", "project_123"], - filepath="/docs/old/", + container_tags=["_:_k--W2K_1V"], + filepath="filepath", ids=["acxV5LHMEsG2hMSNb4umbn", "bxcV5LHMEsG2hMSNb4umbn"], ) assert_matches_type(DocumentDeleteBulkResponse, document, path=["response"]) @@ -450,9 +452,9 @@ def test_method_upload_file_with_all_params(self, client: Supermemory) -> None: document = client.documents.upload_file( file=b"Example data", container_tag="user", - container_tags='["user_123", "project_123"]', + container_tags="containerTags", custom_id="mem_abc123", - entity_context="This user is a software engineer who prefers concise technical documentation.", + entity_context="User's name is {XYZ}", filepath="/documents/reports/file.pdf", file_type="image", filter_by_metadata='{"department": "engineering"}', @@ -508,22 +510,18 @@ async def test_method_update(self, async_client: AsyncSupermemory) -> None: async def test_method_update_with_all_params(self, async_client: AsyncSupermemory) -> None: document = await async_client.documents.update( id="id", - container_tag="user_123", - container_tags=["user_123", "project_123"], - content="This is a detailed article about machine learning concepts...", - custom_id="mem_abc123", + container_tag="user_alex", + container_tags=["_:_k--W2K_1V"], + content="Our API rate limits are 100 req/min on free and 1000 on pro. Clients should use exponential backoff on 429s.", + custom_id="doc-api-rate-limits", filepath="/documents/reports/file.pdf", filter_by_metadata={ "department": "engineering", "region": "us", }, metadata={ - "category": "technology", - "isPublic": True, - "readingTime": 5, - "source": "web", - "tag_1": "ai", - "tag_2": "machine-learning", + "source": "upload", + "language": "en", }, task_type="memory", ) @@ -573,8 +571,8 @@ async def test_method_list(self, async_client: AsyncSupermemory) -> None: @parametrize async def test_method_list_with_all_params(self, async_client: AsyncSupermemory) -> None: document = await async_client.documents.list( - container_tags=["user_123", "project_123"], - filepath="/docs/", + container_tags=["_:_k--W2K_1V"], + filepath="filepath", filters={ "and_": [ { @@ -721,7 +719,11 @@ async def test_streaming_response_add(self, async_client: AsyncSupermemory) -> N @parametrize async def test_method_batch_add(self, async_client: AsyncSupermemory) -> None: document = await async_client.documents.batch_add( - documents=[{"content": "This is a detailed article about machine learning concepts..."}], + documents=[ + { + "content": "Our API rate limits are 100 req/min on free and 1000 on pro. Clients should use exponential backoff on 429s." + } + ], ) assert_matches_type(DocumentBatchAddResponse, document, path=["response"]) @@ -731,41 +733,35 @@ async def test_method_batch_add_with_all_params(self, async_client: AsyncSuperme document = await async_client.documents.batch_add( documents=[ { - "content": "This is a detailed article about machine learning concepts...", - "container_tag": "user_123", - "container_tags": ["user_123", "project_123"], - "custom_id": "mem_abc123", + "content": "Our API rate limits are 100 req/min on free and 1000 on pro. Clients should use exponential backoff on 429s.", + "container_tag": "user_alex", + "container_tags": ["_:_k--W2K_1V"], + "custom_id": "doc-api-rate-limits", + "entity_context": "User's name is {XYZ}", "filepath": "/documents/reports/file.pdf", "filter_by_metadata": { "department": "engineering", "region": "us", }, "metadata": { - "category": "technology", - "isPublic": True, - "readingTime": 5, - "source": "web", - "tag_1": "ai", - "tag_2": "machine-learning", + "source": "upload", + "language": "en", }, "task_type": "memory", } ], - container_tag="user_123", - container_tags=["user_123", "project_123"], + container_tag="user_alex", + container_tags=["_:_k--W2K_1V"], content=None, + entity_context="User's name is {XYZ}", filepath="/documents/reports/file.pdf", filter_by_metadata={ "department": "engineering", "region": "us", }, metadata={ - "category": "technology", - "isPublic": True, - "readingTime": 5, - "source": "web", - "tag_1": "ai", - "tag_2": "machine-learning", + "source": "upload", + "language": "en", }, task_type="memory", ) @@ -775,7 +771,11 @@ async def test_method_batch_add_with_all_params(self, async_client: AsyncSuperme @parametrize async def test_raw_response_batch_add(self, async_client: AsyncSupermemory) -> None: response = await async_client.documents.with_raw_response.batch_add( - documents=[{"content": "This is a detailed article about machine learning concepts..."}], + documents=[ + { + "content": "Our API rate limits are 100 req/min on free and 1000 on pro. Clients should use exponential backoff on 429s." + } + ], ) assert response.is_closed is True @@ -787,7 +787,11 @@ async def test_raw_response_batch_add(self, async_client: AsyncSupermemory) -> N @parametrize async def test_streaming_response_batch_add(self, async_client: AsyncSupermemory) -> None: async with async_client.documents.with_streaming_response.batch_add( - documents=[{"content": "This is a detailed article about machine learning concepts..."}], + documents=[ + { + "content": "Our API rate limits are 100 req/min on free and 1000 on pro. Clients should use exponential backoff on 429s." + } + ], ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -807,8 +811,8 @@ async def test_method_delete_bulk(self, async_client: AsyncSupermemory) -> None: @parametrize async def test_method_delete_bulk_with_all_params(self, async_client: AsyncSupermemory) -> None: document = await async_client.documents.delete_bulk( - container_tags=["user_123", "project_123"], - filepath="/docs/old/", + container_tags=["_:_k--W2K_1V"], + filepath="filepath", ids=["acxV5LHMEsG2hMSNb4umbn", "bxcV5LHMEsG2hMSNb4umbn"], ) assert_matches_type(DocumentDeleteBulkResponse, document, path=["response"]) @@ -919,9 +923,9 @@ async def test_method_upload_file_with_all_params(self, async_client: AsyncSuper document = await async_client.documents.upload_file( file=b"Example data", container_tag="user", - container_tags='["user_123", "project_123"]', + container_tags="containerTags", custom_id="mem_abc123", - entity_context="This user is a software engineer who prefers concise technical documentation.", + entity_context="User's name is {XYZ}", filepath="/documents/reports/file.pdf", file_type="image", filter_by_metadata='{"department": "engineering"}', diff --git a/tests/api_resources/test_search.py b/tests/api_resources/test_search.py index eaabbaf..87c94eb 100644 --- a/tests/api_resources/test_search.py +++ b/tests/api_resources/test_search.py @@ -25,7 +25,7 @@ class TestSearch: @parametrize def test_method_documents(self, client: Supermemory) -> None: search = client.search.documents( - q="machine learning concepts", + q="what are the API rate limits", ) assert_matches_type(SearchDocumentsResponse, search, path=["response"]) @@ -33,14 +33,14 @@ def test_method_documents(self, client: Supermemory) -> None: @parametrize def test_method_documents_with_all_params(self, client: Supermemory) -> None: search = client.search.documents( - q="machine learning concepts", + q="what are the API rate limits", categories_filter=["string"], chunk_threshold=0.5, - container_tag="user_123", - container_tags=["user_123"], + container_tag="user_alex", + container_tags=["_:_k--W2K_1V"], doc_id="docId", document_threshold=0, - filepath="/docs/", + filepath="filepath", filters={ "or_": [ { @@ -66,7 +66,7 @@ def test_method_documents_with_all_params(self, client: Supermemory) -> None: @parametrize def test_raw_response_documents(self, client: Supermemory) -> None: response = client.search.with_raw_response.documents( - q="machine learning concepts", + q="what are the API rate limits", ) assert response.is_closed is True @@ -78,7 +78,7 @@ def test_raw_response_documents(self, client: Supermemory) -> None: @parametrize def test_streaming_response_documents(self, client: Supermemory) -> None: with client.search.with_streaming_response.documents( - q="machine learning concepts", + q="what are the API rate limits", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -92,7 +92,7 @@ def test_streaming_response_documents(self, client: Supermemory) -> None: @parametrize def test_method_execute(self, client: Supermemory) -> None: search = client.search.execute( - q="machine learning concepts", + q="what are the API rate limits", ) assert_matches_type(SearchExecuteResponse, search, path=["response"]) @@ -100,14 +100,14 @@ def test_method_execute(self, client: Supermemory) -> None: @parametrize def test_method_execute_with_all_params(self, client: Supermemory) -> None: search = client.search.execute( - q="machine learning concepts", + q="what are the API rate limits", categories_filter=["string"], chunk_threshold=0.5, - container_tag="user_123", - container_tags=["user_123"], + container_tag="user_alex", + container_tags=["_:_k--W2K_1V"], doc_id="docId", document_threshold=0, - filepath="/docs/", + filepath="filepath", filters={ "or_": [ { @@ -133,7 +133,7 @@ def test_method_execute_with_all_params(self, client: Supermemory) -> None: @parametrize def test_raw_response_execute(self, client: Supermemory) -> None: response = client.search.with_raw_response.execute( - q="machine learning concepts", + q="what are the API rate limits", ) assert response.is_closed is True @@ -145,7 +145,7 @@ def test_raw_response_execute(self, client: Supermemory) -> None: @parametrize def test_streaming_response_execute(self, client: Supermemory) -> None: with client.search.with_streaming_response.execute( - q="machine learning concepts", + q="what are the API rate limits", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -159,7 +159,7 @@ def test_streaming_response_execute(self, client: Supermemory) -> None: @parametrize def test_method_memories(self, client: Supermemory) -> None: search = client.search.memories( - q="machine learning concepts", + q="what are the API rate limits", ) assert_matches_type(SearchMemoriesResponse, search, path=["response"]) @@ -167,10 +167,10 @@ def test_method_memories(self, client: Supermemory) -> None: @parametrize def test_method_memories_with_all_params(self, client: Supermemory) -> None: search = client.search.memories( - q="machine learning concepts", + q="what are the API rate limits", aggregate=False, - container_tag="user_123", - filepath="/docs/", + container_tag="user_alex", + filepath="filepath", filters={ "or_": [ { @@ -202,7 +202,7 @@ def test_method_memories_with_all_params(self, client: Supermemory) -> None: @parametrize def test_raw_response_memories(self, client: Supermemory) -> None: response = client.search.with_raw_response.memories( - q="machine learning concepts", + q="what are the API rate limits", ) assert response.is_closed is True @@ -214,7 +214,7 @@ def test_raw_response_memories(self, client: Supermemory) -> None: @parametrize def test_streaming_response_memories(self, client: Supermemory) -> None: with client.search.with_streaming_response.memories( - q="machine learning concepts", + q="what are the API rate limits", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -234,7 +234,7 @@ class TestAsyncSearch: @parametrize async def test_method_documents(self, async_client: AsyncSupermemory) -> None: search = await async_client.search.documents( - q="machine learning concepts", + q="what are the API rate limits", ) assert_matches_type(SearchDocumentsResponse, search, path=["response"]) @@ -242,14 +242,14 @@ async def test_method_documents(self, async_client: AsyncSupermemory) -> None: @parametrize async def test_method_documents_with_all_params(self, async_client: AsyncSupermemory) -> None: search = await async_client.search.documents( - q="machine learning concepts", + q="what are the API rate limits", categories_filter=["string"], chunk_threshold=0.5, - container_tag="user_123", - container_tags=["user_123"], + container_tag="user_alex", + container_tags=["_:_k--W2K_1V"], doc_id="docId", document_threshold=0, - filepath="/docs/", + filepath="filepath", filters={ "or_": [ { @@ -275,7 +275,7 @@ async def test_method_documents_with_all_params(self, async_client: AsyncSuperme @parametrize async def test_raw_response_documents(self, async_client: AsyncSupermemory) -> None: response = await async_client.search.with_raw_response.documents( - q="machine learning concepts", + q="what are the API rate limits", ) assert response.is_closed is True @@ -287,7 +287,7 @@ async def test_raw_response_documents(self, async_client: AsyncSupermemory) -> N @parametrize async def test_streaming_response_documents(self, async_client: AsyncSupermemory) -> None: async with async_client.search.with_streaming_response.documents( - q="machine learning concepts", + q="what are the API rate limits", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -301,7 +301,7 @@ async def test_streaming_response_documents(self, async_client: AsyncSupermemory @parametrize async def test_method_execute(self, async_client: AsyncSupermemory) -> None: search = await async_client.search.execute( - q="machine learning concepts", + q="what are the API rate limits", ) assert_matches_type(SearchExecuteResponse, search, path=["response"]) @@ -309,14 +309,14 @@ async def test_method_execute(self, async_client: AsyncSupermemory) -> None: @parametrize async def test_method_execute_with_all_params(self, async_client: AsyncSupermemory) -> None: search = await async_client.search.execute( - q="machine learning concepts", + q="what are the API rate limits", categories_filter=["string"], chunk_threshold=0.5, - container_tag="user_123", - container_tags=["user_123"], + container_tag="user_alex", + container_tags=["_:_k--W2K_1V"], doc_id="docId", document_threshold=0, - filepath="/docs/", + filepath="filepath", filters={ "or_": [ { @@ -342,7 +342,7 @@ async def test_method_execute_with_all_params(self, async_client: AsyncSupermemo @parametrize async def test_raw_response_execute(self, async_client: AsyncSupermemory) -> None: response = await async_client.search.with_raw_response.execute( - q="machine learning concepts", + q="what are the API rate limits", ) assert response.is_closed is True @@ -354,7 +354,7 @@ async def test_raw_response_execute(self, async_client: AsyncSupermemory) -> Non @parametrize async def test_streaming_response_execute(self, async_client: AsyncSupermemory) -> None: async with async_client.search.with_streaming_response.execute( - q="machine learning concepts", + q="what are the API rate limits", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -368,7 +368,7 @@ async def test_streaming_response_execute(self, async_client: AsyncSupermemory) @parametrize async def test_method_memories(self, async_client: AsyncSupermemory) -> None: search = await async_client.search.memories( - q="machine learning concepts", + q="what are the API rate limits", ) assert_matches_type(SearchMemoriesResponse, search, path=["response"]) @@ -376,10 +376,10 @@ async def test_method_memories(self, async_client: AsyncSupermemory) -> None: @parametrize async def test_method_memories_with_all_params(self, async_client: AsyncSupermemory) -> None: search = await async_client.search.memories( - q="machine learning concepts", + q="what are the API rate limits", aggregate=False, - container_tag="user_123", - filepath="/docs/", + container_tag="user_alex", + filepath="filepath", filters={ "or_": [ { @@ -411,7 +411,7 @@ async def test_method_memories_with_all_params(self, async_client: AsyncSupermem @parametrize async def test_raw_response_memories(self, async_client: AsyncSupermemory) -> None: response = await async_client.search.with_raw_response.memories( - q="machine learning concepts", + q="what are the API rate limits", ) assert response.is_closed is True @@ -423,7 +423,7 @@ async def test_raw_response_memories(self, async_client: AsyncSupermemory) -> No @parametrize async def test_streaming_response_memories(self, async_client: AsyncSupermemory) -> None: async with async_client.search.with_streaming_response.memories( - q="machine learning concepts", + q="what are the API rate limits", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python"