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.35.0"
".": "3.36.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%2Fsupermemory-new-0240419cabee6cafb40d76dd14a1faf53930e3324dc569fa1f1390c86bbe9f70.yml
openapi_spec_hash: 15f9d935cc44bdd64978a777f70e6b4e
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/supermemory--inc%2Fsupermemory-new-f979eba02e9720ab41111944b4f4441caf9b3f0c56e1d85ac4ddd4a2b0fa7ede.yml
openapi_spec_hash: aacf6838b9ec2431611e87fab118d913
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.36.0 (2026-04-25)

Full Changelog: [v3.35.0...v3.36.0](https://github.com/supermemoryai/python-sdk/compare/v3.35.0...v3.36.0)

### Features

* **api:** api update ([5edc65d](https://github.com/supermemoryai/python-sdk/commit/5edc65d8bedd4dab7089448e844abf41a6175a0c))

## 3.35.0 (2026-04-23)

Full Changelog: [v3.34.0...v3.35.0](https://github.com/supermemoryai/python-sdk/compare/v3.34.0...v3.35.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.35.0"
version = "3.36.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.35.0" # x-release-please-version
__version__ = "3.36.0" # x-release-please-version
26 changes: 24 additions & 2 deletions src/supermemory/types/search_memories_response.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
"ResultContext",
"ResultContextChild",
"ResultContextParent",
"ResultContextRelated",
"ResultDocument",
]

Expand Down Expand Up @@ -72,13 +73,31 @@ class ResultContextParent(BaseModel):
"""


class ResultContextRelated(BaseModel):
memory: str
"""The related memory content"""

relation: Literal["extends", "derives"]
"""Relation type"""

updated_at: str = FieldInfo(alias="updatedAt")
"""Related memory last update date"""

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Potential inconsistency: version field missing from ResultContextRelated

ResultContextChild and ResultContextParent both carry an optional version: Optional[float] field (relative version distance from the primary memory). ResultContextRelated omits it entirely.

If the API can return a version field in related-memory objects, this model will silently drop it. If it's intentionally absent for related memories (i.e. the OpenAPI spec doesn't include it), this is fine — but worth confirming against the updated spec (f979eba...) to ensure the model is complete.

metadata: Optional[Dict[str, object]] = None
"""Related memory metadata"""


class ResultContext(BaseModel):
"""Object containing arrays of parent and child contextual memories"""
"""
Object containing version history (parents/children via updates) and related memories (extends/derives)
"""

children: Optional[List[ResultContextChild]] = None

parents: Optional[List[ResultContextParent]] = None

related: Optional[List[ResultContextRelated]] = None


class ResultDocument(BaseModel):
id: str
Expand Down Expand Up @@ -123,7 +142,10 @@ class Result(BaseModel):
"""Relevant chunks from associated documents (only included when chunks=true)"""

context: Optional[ResultContext] = None
"""Object containing arrays of parent and child contextual memories"""
"""
Object containing version history (parents/children via updates) and related
memories (extends/derives)
"""

documents: Optional[List[ResultDocument]] = None
"""Associated documents for this memory entry"""
Expand Down