From 79ca8d500f2e91fa8bb7d621fd06337715641400 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Mon, 8 Jun 2026 19:27:52 +0000 Subject: [PATCH 1/2] feat(api): api update --- .stats.yml | 4 ++-- src/supermemory/resources/documents.py | 14 ++++++++++++++ .../types/document_upload_file_params.py | 9 +++++++++ tests/api_resources/test_documents.py | 2 ++ 4 files changed, 27 insertions(+), 2 deletions(-) diff --git a/.stats.yml b/.stats.yml index b9c2801..b919912 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-00a4c56b1ae197e7ddbeae4fe05ae0864d282829f1f9ee8601f39ea3859969d3.yml -openapi_spec_hash: 27f6e2fad48855513fa4d8b18b25e249 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/supermemory--inc/supermemory-new-c602bac0c6d453b4c4699348569c3e0f1264bb94dac5a312464fcbd41f0bd0c5.yml +openapi_spec_hash: 9e8e8093f200aa49ec05b9b61a51a7aa config_hash: cde97ef3188581c5f4924c633ec33ddb diff --git a/src/supermemory/resources/documents.py b/src/supermemory/resources/documents.py index a31e52c..e87c339 100644 --- a/src/supermemory/resources/documents.py +++ b/src/supermemory/resources/documents.py @@ -535,6 +535,7 @@ def upload_file( container_tag: str | Omit = omit, container_tags: str | Omit = omit, custom_id: str | Omit = omit, + dreaming: Literal["instant", "dynamic"] | Omit = omit, entity_context: str | Omit = omit, filepath: str | Omit = omit, file_type: str | Omit = omit, @@ -565,6 +566,11 @@ def upload_file( custom_id: Optional custom ID of the document. Max 100 characters, alphanumeric with hyphens, underscores, and colons only. + dreaming: Processing mode. "dynamic" (default) groups related documents together so + memories form from coherent, logical units rather than one isolated entry at a + time. "instant" processes each document on its own right away, and bills one + extra operation per document. + entity_context: Optional entity context for this container tag. Max 1500 characters. Used during document processing to guide memory extraction. @@ -608,6 +614,7 @@ def upload_file( "container_tag": container_tag, "container_tags": container_tags, "custom_id": custom_id, + "dreaming": dreaming, "entity_context": entity_context, "filepath": filepath, "file_type": file_type, @@ -1131,6 +1138,7 @@ async def upload_file( container_tag: str | Omit = omit, container_tags: str | Omit = omit, custom_id: str | Omit = omit, + dreaming: Literal["instant", "dynamic"] | Omit = omit, entity_context: str | Omit = omit, filepath: str | Omit = omit, file_type: str | Omit = omit, @@ -1161,6 +1169,11 @@ async def upload_file( custom_id: Optional custom ID of the document. Max 100 characters, alphanumeric with hyphens, underscores, and colons only. + dreaming: Processing mode. "dynamic" (default) groups related documents together so + memories form from coherent, logical units rather than one isolated entry at a + time. "instant" processes each document on its own right away, and bills one + extra operation per document. + entity_context: Optional entity context for this container tag. Max 1500 characters. Used during document processing to guide memory extraction. @@ -1204,6 +1217,7 @@ async def upload_file( "container_tag": container_tag, "container_tags": container_tags, "custom_id": custom_id, + "dreaming": dreaming, "entity_context": entity_context, "filepath": filepath, "file_type": file_type, diff --git a/src/supermemory/types/document_upload_file_params.py b/src/supermemory/types/document_upload_file_params.py index 0fbad1b..c11dd76 100644 --- a/src/supermemory/types/document_upload_file_params.py +++ b/src/supermemory/types/document_upload_file_params.py @@ -31,6 +31,15 @@ class DocumentUploadFileParams(TypedDict, total=False): Max 100 characters, alphanumeric with hyphens, underscores, and colons only. """ + dreaming: Literal["instant", "dynamic"] + """Processing mode. + + "dynamic" (default) groups related documents together so memories form from + coherent, logical units rather than one isolated entry at a time. "instant" + processes each document on its own right away, and bills one extra operation per + document. + """ + entity_context: Annotated[str, PropertyInfo(alias="entityContext")] """Optional entity context for this container tag. diff --git a/tests/api_resources/test_documents.py b/tests/api_resources/test_documents.py index 955203f..bd1290d 100644 --- a/tests/api_resources/test_documents.py +++ b/tests/api_resources/test_documents.py @@ -457,6 +457,7 @@ def test_method_upload_file_with_all_params(self, client: Supermemory) -> None: container_tag="user", container_tags="containerTags", custom_id="mem_abc123", + dreaming="instant", entity_context="User's name is {XYZ}", filepath="/documents/reports/file.pdf", file_type="image", @@ -931,6 +932,7 @@ async def test_method_upload_file_with_all_params(self, async_client: AsyncSuper container_tag="user", container_tags="containerTags", custom_id="mem_abc123", + dreaming="instant", entity_context="User's name is {XYZ}", filepath="/documents/reports/file.pdf", file_type="image", From 29ad6982d16d08c2e7d49b5da6fef22440a9b62c Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Mon, 8 Jun 2026 19:28:15 +0000 Subject: [PATCH 2/2] release: 3.46.0 --- .release-please-manifest.json | 2 +- CHANGELOG.md | 8 ++++++++ pyproject.toml | 2 +- src/supermemory/_version.py | 2 +- 4 files changed, 11 insertions(+), 3 deletions(-) diff --git a/.release-please-manifest.json b/.release-please-manifest.json index e37f9b0..a1a7ca4 100644 --- a/.release-please-manifest.json +++ b/.release-please-manifest.json @@ -1,3 +1,3 @@ { - ".": "3.45.0" + ".": "3.46.0" } \ No newline at end of file diff --git a/CHANGELOG.md b/CHANGELOG.md index 28c9a74..1afc50c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,13 @@ # Changelog +## 3.46.0 (2026-06-08) + +Full Changelog: [v3.45.0...v3.46.0](https://github.com/supermemoryai/python-sdk/compare/v3.45.0...v3.46.0) + +### Features + +* **api:** api update ([79ca8d5](https://github.com/supermemoryai/python-sdk/commit/79ca8d500f2e91fa8bb7d621fd06337715641400)) + ## 3.45.0 (2026-06-03) Full Changelog: [v3.44.0...v3.45.0](https://github.com/supermemoryai/python-sdk/compare/v3.44.0...v3.45.0) diff --git a/pyproject.toml b/pyproject.toml index a46a6b0..e3a1828 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "supermemory" -version = "3.45.0" +version = "3.46.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 a71b091..4134fb8 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.45.0" # x-release-please-version +__version__ = "3.46.0" # x-release-please-version