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.0.0-alpha.27"
".": "3.0.0-alpha.28"
}
4 changes: 2 additions & 2 deletions .stats.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
configured_endpoints: 18
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/supermemory--inc%2Fsupermemory-new-3d4dd8ac24dba1f3cd5632eedbabafdac2ca7a2c4b99376d0896437497992861.yml
openapi_spec_hash: 2ae20c06f18b7be58fabcfd6db1b5acf
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/supermemory--inc%2Fsupermemory-new-bc38a818a02d2611e24859c4fd59ce98a24499af22ac9d16fc93a3d1e0b3c94f.yml
openapi_spec_hash: e25323c2c0f792f2fafc664748774e46
config_hash: 9b9291a6c872b063900a46386729ba3c
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# Changelog

## 3.0.0-alpha.28 (2025-08-24)

Full Changelog: [v3.0.0-alpha.27...v3.0.0-alpha.28](https://github.com/supermemoryai/python-sdk/compare/v3.0.0-alpha.27...v3.0.0-alpha.28)

### Features

* **api:** api update ([0745263](https://github.com/supermemoryai/python-sdk/commit/074526384ea43d5323feeb2101054e0515002169))

## 3.0.0-alpha.27 (2025-08-24)

Full Changelog: [v3.0.0-alpha.26...v3.0.0-alpha.27](https://github.com/supermemoryai/python-sdk/compare/v3.0.0-alpha.26...v3.0.0-alpha.27)
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.0.0-alpha.27"
version = "3.0.0-alpha.28"
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.0.0-alpha.27" # x-release-please-version
__version__ = "3.0.0-alpha.28" # x-release-please-version
32 changes: 28 additions & 4 deletions src/supermemory/resources/memories.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ def update(
self,
id: str,
*,
container_tag: str | NotGiven = NOT_GIVEN,
container_tags: List[str] | NotGiven = NOT_GIVEN,
content: str | NotGiven = NOT_GIVEN,
custom_id: str | NotGiven = NOT_GIVEN,
Expand All @@ -67,9 +68,13 @@ def update(
Update a memory with any content type (text, url, file, etc.) and metadata

Args:
container_tags: Optional tags this memory should be containerized by. This can be an ID for your
container_tag: Optional tag this memory should be containerized by. This can be an ID for your
user, a project ID, or any other identifier you wish to use to group memories.

container_tags: (DEPRECATED: Use containerTag instead) Optional tags this memory should be
containerized by. This can be an ID for your user, a project ID, or any other
identifier you wish to use to group memories.

content: The content to extract and process into a memory. This can be a URL to a
website, a PDF, an image, or a video.

Expand Down Expand Up @@ -102,6 +107,7 @@ def update(
f"/v3/memories/{id}",
body=maybe_transform(
{
"container_tag": container_tag,
"container_tags": container_tags,
"content": content,
"custom_id": custom_id,
Expand Down Expand Up @@ -212,6 +218,7 @@ def delete(
def add(
self,
*,
container_tag: str | NotGiven = NOT_GIVEN,
container_tags: List[str] | NotGiven = NOT_GIVEN,
content: str | NotGiven = NOT_GIVEN,
custom_id: str | NotGiven = NOT_GIVEN,
Expand All @@ -227,9 +234,13 @@ def add(
Add a memory with any content type (text, url, file, etc.) and metadata

Args:
container_tags: Optional tags this memory should be containerized by. This can be an ID for your
container_tag: Optional tag this memory should be containerized by. This can be an ID for your
user, a project ID, or any other identifier you wish to use to group memories.

container_tags: (DEPRECATED: Use containerTag instead) Optional tags this memory should be
containerized by. This can be an ID for your user, a project ID, or any other
identifier you wish to use to group memories.

content: The content to extract and process into a memory. This can be a URL to a
website, a PDF, an image, or a video.

Expand Down Expand Up @@ -260,6 +271,7 @@ def add(
"/v3/memories",
body=maybe_transform(
{
"container_tag": container_tag,
"container_tags": container_tags,
"content": content,
"custom_id": custom_id,
Expand Down Expand Up @@ -376,6 +388,7 @@ async def update(
self,
id: str,
*,
container_tag: str | NotGiven = NOT_GIVEN,
container_tags: List[str] | NotGiven = NOT_GIVEN,
content: str | NotGiven = NOT_GIVEN,
custom_id: str | NotGiven = NOT_GIVEN,
Expand All @@ -391,9 +404,13 @@ async def update(
Update a memory with any content type (text, url, file, etc.) and metadata

Args:
container_tags: Optional tags this memory should be containerized by. This can be an ID for your
container_tag: Optional tag this memory should be containerized by. This can be an ID for your
user, a project ID, or any other identifier you wish to use to group memories.

container_tags: (DEPRECATED: Use containerTag instead) Optional tags this memory should be
containerized by. This can be an ID for your user, a project ID, or any other
identifier you wish to use to group memories.

content: The content to extract and process into a memory. This can be a URL to a
website, a PDF, an image, or a video.

Expand Down Expand Up @@ -426,6 +443,7 @@ async def update(
f"/v3/memories/{id}",
body=await async_maybe_transform(
{
"container_tag": container_tag,
"container_tags": container_tags,
"content": content,
"custom_id": custom_id,
Expand Down Expand Up @@ -536,6 +554,7 @@ async def delete(
async def add(
self,
*,
container_tag: str | NotGiven = NOT_GIVEN,
container_tags: List[str] | NotGiven = NOT_GIVEN,
content: str | NotGiven = NOT_GIVEN,
custom_id: str | NotGiven = NOT_GIVEN,
Expand All @@ -551,9 +570,13 @@ async def add(
Add a memory with any content type (text, url, file, etc.) and metadata

Args:
container_tags: Optional tags this memory should be containerized by. This can be an ID for your
container_tag: Optional tag this memory should be containerized by. This can be an ID for your
user, a project ID, or any other identifier you wish to use to group memories.

container_tags: (DEPRECATED: Use containerTag instead) Optional tags this memory should be
containerized by. This can be an ID for your user, a project ID, or any other
identifier you wish to use to group memories.

content: The content to extract and process into a memory. This can be a URL to a
website, a PDF, an image, or a video.

Expand Down Expand Up @@ -584,6 +607,7 @@ async def add(
"/v3/memories",
body=await async_maybe_transform(
{
"container_tag": container_tag,
"container_tags": container_tags,
"content": content,
"custom_id": custom_id,
Expand Down
11 changes: 9 additions & 2 deletions src/supermemory/types/memory_add_params.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,20 @@


class MemoryAddParams(TypedDict, total=False):
container_tags: Annotated[List[str], PropertyInfo(alias="containerTags")]
"""Optional tags this memory should be containerized by.
container_tag: Annotated[str, PropertyInfo(alias="containerTag")]
"""Optional tag this memory should be containerized by.

This can be an ID for your user, a project ID, or any other identifier you wish
to use to group memories.
"""

container_tags: Annotated[List[str], PropertyInfo(alias="containerTags")]
"""
(DEPRECATED: Use containerTag instead) Optional tags this memory should be
containerized by. This can be an ID for your user, a project ID, or any other
identifier you wish to use to group memories.
"""

content: str
"""The content to extract and process into a memory.

Expand Down
11 changes: 9 additions & 2 deletions src/supermemory/types/memory_update_params.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,20 @@


class MemoryUpdateParams(TypedDict, total=False):
container_tags: Annotated[List[str], PropertyInfo(alias="containerTags")]
"""Optional tags this memory should be containerized by.
container_tag: Annotated[str, PropertyInfo(alias="containerTag")]
"""Optional tag this memory should be containerized by.

This can be an ID for your user, a project ID, or any other identifier you wish
to use to group memories.
"""

container_tags: Annotated[List[str], PropertyInfo(alias="containerTags")]
"""
(DEPRECATED: Use containerTag instead) Optional tags this memory should be
containerized by. This can be an ID for your user, a project ID, or any other
identifier you wish to use to group memories.
"""

content: str
"""The content to extract and process into a memory.

Expand Down
4 changes: 4 additions & 0 deletions tests/api_resources/test_memories.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ def test_method_update(self, client: Supermemory) -> None:
def test_method_update_with_all_params(self, client: Supermemory) -> None:
memory = client.memories.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",
Expand Down Expand Up @@ -177,6 +178,7 @@ def test_method_add(self, client: Supermemory) -> None:
@parametrize
def test_method_add_with_all_params(self, client: Supermemory) -> None:
memory = client.memories.add(
container_tag="user_123",
container_tags=["user_123", "project_123"],
content="This is a detailed article about machine learning concepts...",
custom_id="mem_abc123",
Expand Down Expand Up @@ -317,6 +319,7 @@ async def test_method_update(self, async_client: AsyncSupermemory) -> None:
async def test_method_update_with_all_params(self, async_client: AsyncSupermemory) -> None:
memory = await async_client.memories.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",
Expand Down Expand Up @@ -458,6 +461,7 @@ async def test_method_add(self, async_client: AsyncSupermemory) -> None:
@parametrize
async def test_method_add_with_all_params(self, async_client: AsyncSupermemory) -> None:
memory = await async_client.memories.add(
container_tag="user_123",
container_tags=["user_123", "project_123"],
content="This is a detailed article about machine learning concepts...",
custom_id="mem_abc123",
Expand Down
Loading