supermemory 3.57.0__tar.gz → 3.58.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- supermemory-3.58.0/.release-please-manifest.json +3 -0
- {supermemory-3.57.0 → supermemory-3.58.0}/CHANGELOG.md +8 -0
- {supermemory-3.57.0 → supermemory-3.58.0}/PKG-INFO +1 -1
- {supermemory-3.57.0 → supermemory-3.58.0}/pyproject.toml +1 -1
- {supermemory-3.57.0 → supermemory-3.58.0}/src/supermemory/_version.py +1 -1
- {supermemory-3.57.0 → supermemory-3.58.0}/src/supermemory/types/connection_create_response.py +2 -2
- supermemory-3.58.0/src/supermemory/types/connection_delete_by_id_response.py +17 -0
- supermemory-3.58.0/src/supermemory/types/connection_delete_by_provider_response.py +17 -0
- {supermemory-3.57.0 → supermemory-3.58.0}/src/supermemory/types/connection_list_documents_response.py +1 -1
- {supermemory-3.57.0 → supermemory-3.58.0}/src/supermemory/types/document_batch_add_response.py +8 -0
- {supermemory-3.57.0 → supermemory-3.58.0}/src/supermemory/types/document_list_processing_response.py +9 -0
- supermemory-3.58.0/src/supermemory/types/profile_response.py +200 -0
- {supermemory-3.57.0 → supermemory-3.58.0}/src/supermemory/types/search_documents_response.py +7 -0
- {supermemory-3.57.0 → supermemory-3.58.0}/src/supermemory/types/search_execute_response.py +7 -0
- {supermemory-3.57.0 → supermemory-3.58.0}/src/supermemory/types/search_memories_response.py +7 -3
- supermemory-3.57.0/.release-please-manifest.json +0 -3
- supermemory-3.57.0/src/supermemory/types/connection_delete_by_id_response.py +0 -11
- supermemory-3.57.0/src/supermemory/types/connection_delete_by_provider_response.py +0 -11
- supermemory-3.57.0/src/supermemory/types/profile_response.py +0 -40
- {supermemory-3.57.0 → supermemory-3.58.0}/.gitignore +0 -0
- {supermemory-3.57.0 → supermemory-3.58.0}/CONTRIBUTING.md +0 -0
- {supermemory-3.57.0 → supermemory-3.58.0}/LICENSE +0 -0
- {supermemory-3.57.0 → supermemory-3.58.0}/README.md +0 -0
- {supermemory-3.57.0 → supermemory-3.58.0}/SECURITY.md +0 -0
- {supermemory-3.57.0 → supermemory-3.58.0}/api.md +0 -0
- {supermemory-3.57.0 → supermemory-3.58.0}/bin/check-release-environment +0 -0
- {supermemory-3.57.0 → supermemory-3.58.0}/bin/publish-pypi +0 -0
- {supermemory-3.57.0 → supermemory-3.58.0}/examples/.keep +0 -0
- {supermemory-3.57.0 → supermemory-3.58.0}/noxfile.py +0 -0
- {supermemory-3.57.0 → supermemory-3.58.0}/release-please-config.json +0 -0
- {supermemory-3.57.0 → supermemory-3.58.0}/requirements-dev.lock +0 -0
- {supermemory-3.57.0 → supermemory-3.58.0}/requirements.lock +0 -0
- {supermemory-3.57.0 → supermemory-3.58.0}/src/supermemory/__init__.py +0 -0
- {supermemory-3.57.0 → supermemory-3.58.0}/src/supermemory/_base_client.py +0 -0
- {supermemory-3.57.0 → supermemory-3.58.0}/src/supermemory/_client.py +0 -0
- {supermemory-3.57.0 → supermemory-3.58.0}/src/supermemory/_compat.py +0 -0
- {supermemory-3.57.0 → supermemory-3.58.0}/src/supermemory/_constants.py +0 -0
- {supermemory-3.57.0 → supermemory-3.58.0}/src/supermemory/_exceptions.py +0 -0
- {supermemory-3.57.0 → supermemory-3.58.0}/src/supermemory/_files.py +0 -0
- {supermemory-3.57.0 → supermemory-3.58.0}/src/supermemory/_models.py +0 -0
- {supermemory-3.57.0 → supermemory-3.58.0}/src/supermemory/_qs.py +0 -0
- {supermemory-3.57.0 → supermemory-3.58.0}/src/supermemory/_resource.py +0 -0
- {supermemory-3.57.0 → supermemory-3.58.0}/src/supermemory/_response.py +0 -0
- {supermemory-3.57.0 → supermemory-3.58.0}/src/supermemory/_streaming.py +0 -0
- {supermemory-3.57.0 → supermemory-3.58.0}/src/supermemory/_types.py +0 -0
- {supermemory-3.57.0 → supermemory-3.58.0}/src/supermemory/_utils/__init__.py +0 -0
- {supermemory-3.57.0 → supermemory-3.58.0}/src/supermemory/_utils/_compat.py +0 -0
- {supermemory-3.57.0 → supermemory-3.58.0}/src/supermemory/_utils/_datetime_parse.py +0 -0
- {supermemory-3.57.0 → supermemory-3.58.0}/src/supermemory/_utils/_json.py +0 -0
- {supermemory-3.57.0 → supermemory-3.58.0}/src/supermemory/_utils/_logs.py +0 -0
- {supermemory-3.57.0 → supermemory-3.58.0}/src/supermemory/_utils/_path.py +0 -0
- {supermemory-3.57.0 → supermemory-3.58.0}/src/supermemory/_utils/_proxy.py +0 -0
- {supermemory-3.57.0 → supermemory-3.58.0}/src/supermemory/_utils/_reflection.py +0 -0
- {supermemory-3.57.0 → supermemory-3.58.0}/src/supermemory/_utils/_resources_proxy.py +0 -0
- {supermemory-3.57.0 → supermemory-3.58.0}/src/supermemory/_utils/_streams.py +0 -0
- {supermemory-3.57.0 → supermemory-3.58.0}/src/supermemory/_utils/_sync.py +0 -0
- {supermemory-3.57.0 → supermemory-3.58.0}/src/supermemory/_utils/_transform.py +0 -0
- {supermemory-3.57.0 → supermemory-3.58.0}/src/supermemory/_utils/_typing.py +0 -0
- {supermemory-3.57.0 → supermemory-3.58.0}/src/supermemory/_utils/_utils.py +0 -0
- {supermemory-3.57.0 → supermemory-3.58.0}/src/supermemory/lib/.keep +0 -0
- {supermemory-3.57.0 → supermemory-3.58.0}/src/supermemory/py.typed +0 -0
- {supermemory-3.57.0 → supermemory-3.58.0}/src/supermemory/resources/__init__.py +0 -0
- {supermemory-3.57.0 → supermemory-3.58.0}/src/supermemory/resources/connections.py +0 -0
- {supermemory-3.57.0 → supermemory-3.58.0}/src/supermemory/resources/documents.py +0 -0
- {supermemory-3.57.0 → supermemory-3.58.0}/src/supermemory/resources/memories.py +0 -0
- {supermemory-3.57.0 → supermemory-3.58.0}/src/supermemory/resources/search.py +0 -0
- {supermemory-3.57.0 → supermemory-3.58.0}/src/supermemory/resources/settings.py +0 -0
- {supermemory-3.57.0 → supermemory-3.58.0}/src/supermemory/types/__init__.py +0 -0
- {supermemory-3.57.0 → supermemory-3.58.0}/src/supermemory/types/add_response.py +0 -0
- {supermemory-3.57.0 → supermemory-3.58.0}/src/supermemory/types/client_add_params.py +0 -0
- {supermemory-3.57.0 → supermemory-3.58.0}/src/supermemory/types/client_profile_params.py +0 -0
- {supermemory-3.57.0 → supermemory-3.58.0}/src/supermemory/types/connection_configure_params.py +0 -0
- {supermemory-3.57.0 → supermemory-3.58.0}/src/supermemory/types/connection_configure_response.py +0 -0
- {supermemory-3.57.0 → supermemory-3.58.0}/src/supermemory/types/connection_create_params.py +0 -0
- {supermemory-3.57.0 → supermemory-3.58.0}/src/supermemory/types/connection_delete_by_id_params.py +0 -0
- {supermemory-3.57.0 → supermemory-3.58.0}/src/supermemory/types/connection_delete_by_provider_params.py +0 -0
- {supermemory-3.57.0 → supermemory-3.58.0}/src/supermemory/types/connection_get_by_id_response.py +0 -0
- {supermemory-3.57.0 → supermemory-3.58.0}/src/supermemory/types/connection_get_by_tag_params.py +0 -0
- {supermemory-3.57.0 → supermemory-3.58.0}/src/supermemory/types/connection_get_by_tag_response.py +0 -0
- {supermemory-3.57.0 → supermemory-3.58.0}/src/supermemory/types/connection_import_params.py +0 -0
- {supermemory-3.57.0 → supermemory-3.58.0}/src/supermemory/types/connection_import_response.py +0 -0
- {supermemory-3.57.0 → supermemory-3.58.0}/src/supermemory/types/connection_list_documents_params.py +0 -0
- {supermemory-3.57.0 → supermemory-3.58.0}/src/supermemory/types/connection_list_params.py +0 -0
- {supermemory-3.57.0 → supermemory-3.58.0}/src/supermemory/types/connection_list_response.py +0 -0
- {supermemory-3.57.0 → supermemory-3.58.0}/src/supermemory/types/connection_resources_params.py +0 -0
- {supermemory-3.57.0 → supermemory-3.58.0}/src/supermemory/types/connection_resources_response.py +0 -0
- {supermemory-3.57.0 → supermemory-3.58.0}/src/supermemory/types/document_add_params.py +0 -0
- {supermemory-3.57.0 → supermemory-3.58.0}/src/supermemory/types/document_add_response.py +0 -0
- {supermemory-3.57.0 → supermemory-3.58.0}/src/supermemory/types/document_batch_add_params.py +0 -0
- {supermemory-3.57.0 → supermemory-3.58.0}/src/supermemory/types/document_delete_bulk_params.py +0 -0
- {supermemory-3.57.0 → supermemory-3.58.0}/src/supermemory/types/document_delete_bulk_response.py +0 -0
- {supermemory-3.57.0 → supermemory-3.58.0}/src/supermemory/types/document_get_response.py +0 -0
- {supermemory-3.57.0 → supermemory-3.58.0}/src/supermemory/types/document_list_params.py +0 -0
- {supermemory-3.57.0 → supermemory-3.58.0}/src/supermemory/types/document_list_response.py +0 -0
- {supermemory-3.57.0 → supermemory-3.58.0}/src/supermemory/types/document_update_params.py +0 -0
- {supermemory-3.57.0 → supermemory-3.58.0}/src/supermemory/types/document_update_response.py +0 -0
- {supermemory-3.57.0 → supermemory-3.58.0}/src/supermemory/types/document_upload_file_params.py +0 -0
- {supermemory-3.57.0 → supermemory-3.58.0}/src/supermemory/types/document_upload_file_response.py +0 -0
- {supermemory-3.57.0 → supermemory-3.58.0}/src/supermemory/types/memory_forget_params.py +0 -0
- {supermemory-3.57.0 → supermemory-3.58.0}/src/supermemory/types/memory_forget_response.py +0 -0
- {supermemory-3.57.0 → supermemory-3.58.0}/src/supermemory/types/memory_update_memory_params.py +0 -0
- {supermemory-3.57.0 → supermemory-3.58.0}/src/supermemory/types/memory_update_memory_response.py +0 -0
- {supermemory-3.57.0 → supermemory-3.58.0}/src/supermemory/types/search_documents_params.py +0 -0
- {supermemory-3.57.0 → supermemory-3.58.0}/src/supermemory/types/search_execute_params.py +0 -0
- {supermemory-3.57.0 → supermemory-3.58.0}/src/supermemory/types/search_memories_params.py +0 -0
- {supermemory-3.57.0 → supermemory-3.58.0}/src/supermemory/types/setting_get_response.py +0 -0
- {supermemory-3.57.0 → supermemory-3.58.0}/src/supermemory/types/setting_update_params.py +0 -0
- {supermemory-3.57.0 → supermemory-3.58.0}/src/supermemory/types/setting_update_response.py +0 -0
- {supermemory-3.57.0 → supermemory-3.58.0}/src/supermemory_new/lib/.keep +0 -0
- {supermemory-3.57.0 → supermemory-3.58.0}/tests/__init__.py +0 -0
- {supermemory-3.57.0 → supermemory-3.58.0}/tests/api_resources/__init__.py +0 -0
- {supermemory-3.57.0 → supermemory-3.58.0}/tests/api_resources/test_client.py +0 -0
- {supermemory-3.57.0 → supermemory-3.58.0}/tests/api_resources/test_connections.py +0 -0
- {supermemory-3.57.0 → supermemory-3.58.0}/tests/api_resources/test_documents.py +0 -0
- {supermemory-3.57.0 → supermemory-3.58.0}/tests/api_resources/test_memories.py +0 -0
- {supermemory-3.57.0 → supermemory-3.58.0}/tests/api_resources/test_search.py +0 -0
- {supermemory-3.57.0 → supermemory-3.58.0}/tests/api_resources/test_settings.py +0 -0
- {supermemory-3.57.0 → supermemory-3.58.0}/tests/conftest.py +0 -0
- {supermemory-3.57.0 → supermemory-3.58.0}/tests/sample_file.txt +0 -0
- {supermemory-3.57.0 → supermemory-3.58.0}/tests/test_client.py +0 -0
- {supermemory-3.57.0 → supermemory-3.58.0}/tests/test_extract_files.py +0 -0
- {supermemory-3.57.0 → supermemory-3.58.0}/tests/test_files.py +0 -0
- {supermemory-3.57.0 → supermemory-3.58.0}/tests/test_models.py +0 -0
- {supermemory-3.57.0 → supermemory-3.58.0}/tests/test_qs.py +0 -0
- {supermemory-3.57.0 → supermemory-3.58.0}/tests/test_required_args.py +0 -0
- {supermemory-3.57.0 → supermemory-3.58.0}/tests/test_response.py +0 -0
- {supermemory-3.57.0 → supermemory-3.58.0}/tests/test_streaming.py +0 -0
- {supermemory-3.57.0 → supermemory-3.58.0}/tests/test_transform.py +0 -0
- {supermemory-3.57.0 → supermemory-3.58.0}/tests/test_utils/test_datetime_parse.py +0 -0
- {supermemory-3.57.0 → supermemory-3.58.0}/tests/test_utils/test_json.py +0 -0
- {supermemory-3.57.0 → supermemory-3.58.0}/tests/test_utils/test_path.py +0 -0
- {supermemory-3.57.0 → supermemory-3.58.0}/tests/test_utils/test_proxy.py +0 -0
- {supermemory-3.57.0 → supermemory-3.58.0}/tests/test_utils/test_typing.py +0 -0
- {supermemory-3.57.0 → supermemory-3.58.0}/tests/utils.py +0 -0
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 3.58.0 (2026-08-14)
|
|
4
|
+
|
|
5
|
+
Full Changelog: [v3.57.0...v3.58.0](https://github.com/supermemoryai/python-sdk/compare/v3.57.0...v3.58.0)
|
|
6
|
+
|
|
7
|
+
### Features
|
|
8
|
+
|
|
9
|
+
* **api:** api update ([28dce44](https://github.com/supermemoryai/python-sdk/commit/28dce44965387f46bc594b796a6054bb4d0472ea))
|
|
10
|
+
|
|
3
11
|
## 3.57.0 (2026-08-11)
|
|
4
12
|
|
|
5
13
|
Full Changelog: [v3.56.0...v3.57.0](https://github.com/supermemoryai/python-sdk/compare/v3.56.0...v3.57.0)
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.3
|
|
2
2
|
Name: supermemory
|
|
3
|
-
Version: 3.
|
|
3
|
+
Version: 3.58.0
|
|
4
4
|
Summary: The official Python library for the supermemory API
|
|
5
5
|
Project-URL: Homepage, https://github.com/supermemoryai/python-sdk
|
|
6
6
|
Project-URL: Repository, https://github.com/supermemoryai/python-sdk
|
{supermemory-3.57.0 → supermemory-3.58.0}/src/supermemory/types/connection_create_response.py
RENAMED
|
@@ -12,8 +12,8 @@ __all__ = ["ConnectionCreateResponse"]
|
|
|
12
12
|
class ConnectionCreateResponse(BaseModel):
|
|
13
13
|
id: str
|
|
14
14
|
|
|
15
|
-
auth_link: str = FieldInfo(alias="authLink")
|
|
15
|
+
auth_link: Optional[str] = FieldInfo(alias="authLink", default=None)
|
|
16
16
|
|
|
17
|
-
expires_in: str = FieldInfo(alias="expiresIn")
|
|
17
|
+
expires_in: Optional[str] = FieldInfo(alias="expiresIn", default=None)
|
|
18
18
|
|
|
19
19
|
redirects_to: Optional[str] = FieldInfo(alias="redirectsTo", default=None)
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
from typing import List
|
|
4
|
+
from typing_extensions import TypeAlias
|
|
5
|
+
|
|
6
|
+
from .._models import BaseModel
|
|
7
|
+
|
|
8
|
+
__all__ = ["ConnectionDeleteByIDResponse", "ConnectionDeleteByIDResponseItem"]
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
class ConnectionDeleteByIDResponseItem(BaseModel):
|
|
12
|
+
id: str
|
|
13
|
+
|
|
14
|
+
provider: str
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
ConnectionDeleteByIDResponse: TypeAlias = List[ConnectionDeleteByIDResponseItem]
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
from typing import List
|
|
4
|
+
from typing_extensions import TypeAlias
|
|
5
|
+
|
|
6
|
+
from .._models import BaseModel
|
|
7
|
+
|
|
8
|
+
__all__ = ["ConnectionDeleteByProviderResponse", "ConnectionDeleteByProviderResponseItem"]
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
class ConnectionDeleteByProviderResponseItem(BaseModel):
|
|
12
|
+
id: str
|
|
13
|
+
|
|
14
|
+
provider: str
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
ConnectionDeleteByProviderResponse: TypeAlias = List[ConnectionDeleteByProviderResponseItem]
|
{supermemory-3.57.0 → supermemory-3.58.0}/src/supermemory/types/document_batch_add_response.py
RENAMED
|
@@ -20,6 +20,14 @@ class Result(BaseModel):
|
|
|
20
20
|
error: Optional[str] = None
|
|
21
21
|
"""Error message when status is 'error'"""
|
|
22
22
|
|
|
23
|
+
url: Optional[str] = None
|
|
24
|
+
"""URL of the failed item, when it had one.
|
|
25
|
+
|
|
26
|
+
Only present on failed items, where it may be the only way to tell which input
|
|
27
|
+
the error belongs to (the id falls back to 'unknown' when the input had neither
|
|
28
|
+
an id nor a customId).
|
|
29
|
+
"""
|
|
30
|
+
|
|
23
31
|
|
|
24
32
|
class DocumentBatchAddResponse(BaseModel):
|
|
25
33
|
failed: float
|
{supermemory-3.57.0 → supermemory-3.58.0}/src/supermemory/types/document_list_processing_response.py
RENAMED
|
@@ -14,6 +14,12 @@ class Document(BaseModel):
|
|
|
14
14
|
id: str
|
|
15
15
|
"""Unique identifier of the document."""
|
|
16
16
|
|
|
17
|
+
connection_id: Optional[str] = FieldInfo(alias="connectionId", default=None)
|
|
18
|
+
"""Optional ID of connection the document was created from.
|
|
19
|
+
|
|
20
|
+
This is useful for identifying the source of the document.
|
|
21
|
+
"""
|
|
22
|
+
|
|
17
23
|
created_at: str = FieldInfo(alias="createdAt")
|
|
18
24
|
"""Creation timestamp"""
|
|
19
25
|
|
|
@@ -36,6 +42,9 @@ class Document(BaseModel):
|
|
|
36
42
|
status: Literal["unknown", "queued", "extracting", "chunking", "embedding", "indexing", "done", "failed"]
|
|
37
43
|
"""Status of the document"""
|
|
38
44
|
|
|
45
|
+
summary: Optional[str] = None
|
|
46
|
+
"""Summary of the document content"""
|
|
47
|
+
|
|
39
48
|
title: Optional[str] = None
|
|
40
49
|
"""Title of the document"""
|
|
41
50
|
|
|
@@ -0,0 +1,200 @@
|
|
|
1
|
+
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
from typing import Dict, List, Optional
|
|
4
|
+
from typing_extensions import Literal
|
|
5
|
+
|
|
6
|
+
from pydantic import Field as FieldInfo
|
|
7
|
+
|
|
8
|
+
from .._models import BaseModel
|
|
9
|
+
|
|
10
|
+
__all__ = [
|
|
11
|
+
"ProfileResponse",
|
|
12
|
+
"Profile",
|
|
13
|
+
"SearchResults",
|
|
14
|
+
"SearchResultsResult",
|
|
15
|
+
"SearchResultsResultChunk",
|
|
16
|
+
"SearchResultsResultContext",
|
|
17
|
+
"SearchResultsResultContextChild",
|
|
18
|
+
"SearchResultsResultContextParent",
|
|
19
|
+
"SearchResultsResultContextRelated",
|
|
20
|
+
"SearchResultsResultDocument",
|
|
21
|
+
]
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
class Profile(BaseModel):
|
|
25
|
+
buckets: Optional[Dict[str, List[str]]] = None
|
|
26
|
+
"""Per-bucket memory lists, keyed by bucket key"""
|
|
27
|
+
|
|
28
|
+
dynamic: Optional[List[str]] = None
|
|
29
|
+
"""Dynamic profile information (recent memories)"""
|
|
30
|
+
|
|
31
|
+
static: Optional[List[str]] = None
|
|
32
|
+
"""Static profile information that remains relevant long-term"""
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
class SearchResultsResultChunk(BaseModel):
|
|
36
|
+
content: str
|
|
37
|
+
"""Content of the chunk"""
|
|
38
|
+
|
|
39
|
+
document_id: str = FieldInfo(alias="documentId")
|
|
40
|
+
"""ID of the document this chunk belongs to"""
|
|
41
|
+
|
|
42
|
+
position: float
|
|
43
|
+
"""Position of chunk in the document (0-indexed)"""
|
|
44
|
+
|
|
45
|
+
|
|
46
|
+
class SearchResultsResultContextChild(BaseModel):
|
|
47
|
+
memory: str
|
|
48
|
+
"""The contextual memory content"""
|
|
49
|
+
|
|
50
|
+
relation: Literal["updates", "extends", "derives"]
|
|
51
|
+
"""Relation type between this memory and its parent/child"""
|
|
52
|
+
|
|
53
|
+
updated_at: str = FieldInfo(alias="updatedAt")
|
|
54
|
+
"""Contextual memory last update date"""
|
|
55
|
+
|
|
56
|
+
metadata: Optional[Dict[str, object]] = None
|
|
57
|
+
"""Contextual memory metadata"""
|
|
58
|
+
|
|
59
|
+
version: Optional[float] = None
|
|
60
|
+
"""
|
|
61
|
+
Relative version distance from the primary memory (+1 for direct child, +2 for
|
|
62
|
+
grand-child, etc.)
|
|
63
|
+
"""
|
|
64
|
+
|
|
65
|
+
|
|
66
|
+
class SearchResultsResultContextParent(BaseModel):
|
|
67
|
+
memory: str
|
|
68
|
+
"""The contextual memory content"""
|
|
69
|
+
|
|
70
|
+
relation: Literal["updates", "extends", "derives"]
|
|
71
|
+
"""Relation type between this memory and its parent/child"""
|
|
72
|
+
|
|
73
|
+
updated_at: str = FieldInfo(alias="updatedAt")
|
|
74
|
+
"""Contextual memory last update date"""
|
|
75
|
+
|
|
76
|
+
metadata: Optional[Dict[str, object]] = None
|
|
77
|
+
"""Contextual memory metadata"""
|
|
78
|
+
|
|
79
|
+
version: Optional[float] = None
|
|
80
|
+
"""
|
|
81
|
+
Relative version distance from the primary memory (-1 for direct parent, -2 for
|
|
82
|
+
grand-parent, etc.)
|
|
83
|
+
"""
|
|
84
|
+
|
|
85
|
+
|
|
86
|
+
class SearchResultsResultContextRelated(BaseModel):
|
|
87
|
+
memory: str
|
|
88
|
+
"""The related memory content"""
|
|
89
|
+
|
|
90
|
+
relation: Literal["extends", "derives"]
|
|
91
|
+
"""Relation type"""
|
|
92
|
+
|
|
93
|
+
updated_at: str = FieldInfo(alias="updatedAt")
|
|
94
|
+
"""Related memory last update date"""
|
|
95
|
+
|
|
96
|
+
metadata: Optional[Dict[str, object]] = None
|
|
97
|
+
"""Related memory metadata"""
|
|
98
|
+
|
|
99
|
+
|
|
100
|
+
class SearchResultsResultContext(BaseModel):
|
|
101
|
+
"""
|
|
102
|
+
Object containing version history (parents/children via updates) and related memories (extends/derives)
|
|
103
|
+
"""
|
|
104
|
+
|
|
105
|
+
children: Optional[List[SearchResultsResultContextChild]] = None
|
|
106
|
+
|
|
107
|
+
parents: Optional[List[SearchResultsResultContextParent]] = None
|
|
108
|
+
|
|
109
|
+
related: Optional[List[SearchResultsResultContextRelated]] = None
|
|
110
|
+
|
|
111
|
+
|
|
112
|
+
class SearchResultsResultDocument(BaseModel):
|
|
113
|
+
id: str
|
|
114
|
+
"""Document ID"""
|
|
115
|
+
|
|
116
|
+
created_at: str = FieldInfo(alias="createdAt")
|
|
117
|
+
"""Document creation date"""
|
|
118
|
+
|
|
119
|
+
updated_at: str = FieldInfo(alias="updatedAt")
|
|
120
|
+
"""Document last update date"""
|
|
121
|
+
|
|
122
|
+
metadata: Optional[Dict[str, object]] = None
|
|
123
|
+
"""Document metadata (only included when documents=true)"""
|
|
124
|
+
|
|
125
|
+
summary: Optional[str] = None
|
|
126
|
+
"""Document summary (only included when summaries=true)"""
|
|
127
|
+
|
|
128
|
+
title: Optional[str] = None
|
|
129
|
+
"""Document title (only included when documents=true)"""
|
|
130
|
+
|
|
131
|
+
type: Optional[str] = None
|
|
132
|
+
"""Document type (only included when documents=true)"""
|
|
133
|
+
|
|
134
|
+
|
|
135
|
+
class SearchResultsResult(BaseModel):
|
|
136
|
+
id: str
|
|
137
|
+
"""Memory entry ID or chunk ID"""
|
|
138
|
+
|
|
139
|
+
metadata: Optional[Dict[str, object]] = None
|
|
140
|
+
"""Memory metadata"""
|
|
141
|
+
|
|
142
|
+
similarity: float
|
|
143
|
+
"""Similarity score between the query and memory entry"""
|
|
144
|
+
|
|
145
|
+
updated_at: str = FieldInfo(alias="updatedAt")
|
|
146
|
+
"""Memory last update date"""
|
|
147
|
+
|
|
148
|
+
chunk: Optional[str] = None
|
|
149
|
+
"""The chunk content (only present for chunk results from hybrid search)"""
|
|
150
|
+
|
|
151
|
+
chunks: Optional[List[SearchResultsResultChunk]] = None
|
|
152
|
+
"""Relevant chunks from associated documents (only included when chunks=true)"""
|
|
153
|
+
|
|
154
|
+
context: Optional[SearchResultsResultContext] = None
|
|
155
|
+
"""
|
|
156
|
+
Object containing version history (parents/children via updates) and related
|
|
157
|
+
memories (extends/derives)
|
|
158
|
+
"""
|
|
159
|
+
|
|
160
|
+
documents: Optional[List[SearchResultsResultDocument]] = None
|
|
161
|
+
"""Associated documents for this memory entry"""
|
|
162
|
+
|
|
163
|
+
filepath: Optional[str] = None
|
|
164
|
+
"""Filepath of the source document this memory or chunk came from"""
|
|
165
|
+
|
|
166
|
+
is_aggregated: Optional[bool] = FieldInfo(alias="isAggregated", default=None)
|
|
167
|
+
"""Indicates if this memory was created by aggregating multiple source memories"""
|
|
168
|
+
|
|
169
|
+
memory: Optional[str] = None
|
|
170
|
+
"""The memory content (only present for memory results)"""
|
|
171
|
+
|
|
172
|
+
root_memory_id: Optional[str] = FieldInfo(alias="rootMemoryId", default=None)
|
|
173
|
+
"""ID of the root (first version) memory entry this one descends from.
|
|
174
|
+
|
|
175
|
+
Null for memories that have never been superseded. Only present on memory
|
|
176
|
+
results, not on standalone chunk results.
|
|
177
|
+
"""
|
|
178
|
+
|
|
179
|
+
version: Optional[float] = None
|
|
180
|
+
"""Version number of this memory entry"""
|
|
181
|
+
|
|
182
|
+
|
|
183
|
+
class SearchResults(BaseModel):
|
|
184
|
+
"""Search results if a search query was provided"""
|
|
185
|
+
|
|
186
|
+
results: List[SearchResultsResult]
|
|
187
|
+
"""Search results for the provided query"""
|
|
188
|
+
|
|
189
|
+
timing: float
|
|
190
|
+
"""Search timing in milliseconds"""
|
|
191
|
+
|
|
192
|
+
total: float
|
|
193
|
+
"""Total number of search results"""
|
|
194
|
+
|
|
195
|
+
|
|
196
|
+
class ProfileResponse(BaseModel):
|
|
197
|
+
profile: Profile
|
|
198
|
+
|
|
199
|
+
search_results: Optional[SearchResults] = FieldInfo(alias="searchResults", default=None)
|
|
200
|
+
"""Search results if a search query was provided"""
|
{supermemory-3.57.0 → supermemory-3.58.0}/src/supermemory/types/search_documents_response.py
RENAMED
|
@@ -18,6 +18,13 @@ class ResultChunk(BaseModel):
|
|
|
18
18
|
is_relevant: bool = FieldInfo(alias="isRelevant")
|
|
19
19
|
"""Whether this chunk is relevant to the query"""
|
|
20
20
|
|
|
21
|
+
position: float
|
|
22
|
+
"""Position of this chunk within the source document (0-indexed).
|
|
23
|
+
|
|
24
|
+
Use it to order chunks and to locate surrounding context chunks
|
|
25
|
+
(isRelevant=false) relative to the matching ones.
|
|
26
|
+
"""
|
|
27
|
+
|
|
21
28
|
score: float
|
|
22
29
|
"""Similarity score for this chunk"""
|
|
23
30
|
|
|
@@ -18,6 +18,13 @@ class ResultChunk(BaseModel):
|
|
|
18
18
|
is_relevant: bool = FieldInfo(alias="isRelevant")
|
|
19
19
|
"""Whether this chunk is relevant to the query"""
|
|
20
20
|
|
|
21
|
+
position: float
|
|
22
|
+
"""Position of this chunk within the source document (0-indexed).
|
|
23
|
+
|
|
24
|
+
Use it to order chunks and to locate surrounding context chunks
|
|
25
|
+
(isRelevant=false) relative to the matching ones.
|
|
26
|
+
"""
|
|
27
|
+
|
|
21
28
|
score: float
|
|
22
29
|
"""Similarity score for this chunk"""
|
|
23
30
|
|
|
@@ -29,9 +29,6 @@ class ResultChunk(BaseModel):
|
|
|
29
29
|
position: float
|
|
30
30
|
"""Position of chunk in the document (0-indexed)"""
|
|
31
31
|
|
|
32
|
-
score: float
|
|
33
|
-
"""Similarity score between the query and chunk"""
|
|
34
|
-
|
|
35
32
|
|
|
36
33
|
class ResultContextChild(BaseModel):
|
|
37
34
|
memory: str
|
|
@@ -159,6 +156,13 @@ class Result(BaseModel):
|
|
|
159
156
|
memory: Optional[str] = None
|
|
160
157
|
"""The memory content (only present for memory results)"""
|
|
161
158
|
|
|
159
|
+
root_memory_id: Optional[str] = FieldInfo(alias="rootMemoryId", default=None)
|
|
160
|
+
"""ID of the root (first version) memory entry this one descends from.
|
|
161
|
+
|
|
162
|
+
Null for memories that have never been superseded. Only present on memory
|
|
163
|
+
results, not on standalone chunk results.
|
|
164
|
+
"""
|
|
165
|
+
|
|
162
166
|
version: Optional[float] = None
|
|
163
167
|
"""Version number of this memory entry"""
|
|
164
168
|
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
-
|
|
3
|
-
from .._models import BaseModel
|
|
4
|
-
|
|
5
|
-
__all__ = ["ConnectionDeleteByProviderResponse"]
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
class ConnectionDeleteByProviderResponse(BaseModel):
|
|
9
|
-
id: str
|
|
10
|
-
|
|
11
|
-
provider: str
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
-
|
|
3
|
-
from typing import Dict, List, Optional
|
|
4
|
-
|
|
5
|
-
from pydantic import Field as FieldInfo
|
|
6
|
-
|
|
7
|
-
from .._models import BaseModel
|
|
8
|
-
|
|
9
|
-
__all__ = ["ProfileResponse", "Profile", "SearchResults"]
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
class Profile(BaseModel):
|
|
13
|
-
buckets: Optional[Dict[str, List[str]]] = None
|
|
14
|
-
"""Per-bucket memory lists, keyed by bucket key"""
|
|
15
|
-
|
|
16
|
-
dynamic: Optional[List[str]] = None
|
|
17
|
-
"""Dynamic profile information (recent memories)"""
|
|
18
|
-
|
|
19
|
-
static: Optional[List[str]] = None
|
|
20
|
-
"""Static profile information that remains relevant long-term"""
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
class SearchResults(BaseModel):
|
|
24
|
-
"""Search results if a search query was provided"""
|
|
25
|
-
|
|
26
|
-
results: List[object]
|
|
27
|
-
"""Search results for the provided query"""
|
|
28
|
-
|
|
29
|
-
timing: float
|
|
30
|
-
"""Search timing in milliseconds"""
|
|
31
|
-
|
|
32
|
-
total: float
|
|
33
|
-
"""Total number of search results"""
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
class ProfileResponse(BaseModel):
|
|
37
|
-
profile: Profile
|
|
38
|
-
|
|
39
|
-
search_results: Optional[SearchResults] = FieldInfo(alias="searchResults", default=None)
|
|
40
|
-
"""Search results if a search query was provided"""
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{supermemory-3.57.0 → supermemory-3.58.0}/src/supermemory/types/connection_configure_params.py
RENAMED
|
File without changes
|
{supermemory-3.57.0 → supermemory-3.58.0}/src/supermemory/types/connection_configure_response.py
RENAMED
|
File without changes
|
|
File without changes
|
{supermemory-3.57.0 → supermemory-3.58.0}/src/supermemory/types/connection_delete_by_id_params.py
RENAMED
|
File without changes
|
|
File without changes
|
{supermemory-3.57.0 → supermemory-3.58.0}/src/supermemory/types/connection_get_by_id_response.py
RENAMED
|
File without changes
|
{supermemory-3.57.0 → supermemory-3.58.0}/src/supermemory/types/connection_get_by_tag_params.py
RENAMED
|
File without changes
|
{supermemory-3.57.0 → supermemory-3.58.0}/src/supermemory/types/connection_get_by_tag_response.py
RENAMED
|
File without changes
|
|
File without changes
|
{supermemory-3.57.0 → supermemory-3.58.0}/src/supermemory/types/connection_import_response.py
RENAMED
|
File without changes
|
{supermemory-3.57.0 → supermemory-3.58.0}/src/supermemory/types/connection_list_documents_params.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{supermemory-3.57.0 → supermemory-3.58.0}/src/supermemory/types/connection_resources_params.py
RENAMED
|
File without changes
|
{supermemory-3.57.0 → supermemory-3.58.0}/src/supermemory/types/connection_resources_response.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{supermemory-3.57.0 → supermemory-3.58.0}/src/supermemory/types/document_batch_add_params.py
RENAMED
|
File without changes
|
{supermemory-3.57.0 → supermemory-3.58.0}/src/supermemory/types/document_delete_bulk_params.py
RENAMED
|
File without changes
|
{supermemory-3.57.0 → supermemory-3.58.0}/src/supermemory/types/document_delete_bulk_response.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{supermemory-3.57.0 → supermemory-3.58.0}/src/supermemory/types/document_upload_file_params.py
RENAMED
|
File without changes
|
{supermemory-3.57.0 → supermemory-3.58.0}/src/supermemory/types/document_upload_file_response.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{supermemory-3.57.0 → supermemory-3.58.0}/src/supermemory/types/memory_update_memory_params.py
RENAMED
|
File without changes
|
{supermemory-3.57.0 → supermemory-3.58.0}/src/supermemory/types/memory_update_memory_response.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|