Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .release-please-manifest.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
".": "3.40.0"
".": "3.41.0"
}
4 changes: 2 additions & 2 deletions .stats.yml
Original file line number Diff line number Diff line change
@@ -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
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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)
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -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"
Expand Down
2 changes: 1 addition & 1 deletion src/supermemory/_version.py
Original file line number Diff line number Diff line change
@@ -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
10 changes: 10 additions & 0 deletions src/supermemory/resources/documents.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -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.

Expand Down Expand Up @@ -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,
Expand Down Expand Up @@ -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,
Expand All @@ -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.

Expand Down Expand Up @@ -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,
Expand Down
12 changes: 12 additions & 0 deletions src/supermemory/types/document_batch_add_params.py
Original file line number Diff line number Diff line change
Expand Up @@ -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').

Expand Down Expand Up @@ -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').

Expand Down
Loading