evermemos 0.3.6__py3-none-any.whl → 0.3.8__py3-none-any.whl
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.
- evermemos/_version.py +1 -1
- evermemos/resources/v1/__init__.py +14 -0
- evermemos/resources/v1/memories/conversation_meta.py +2 -78
- evermemos/resources/v1/memories/memories.py +182 -101
- evermemos/resources/v1/stats/__init__.py +33 -0
- evermemos/resources/v1/stats/request.py +175 -0
- evermemos/resources/v1/stats/stats.py +102 -0
- evermemos/resources/v1/v1.py +32 -0
- evermemos/types/v1/__init__.py +3 -1
- evermemos/types/v1/global_user_profile/__init__.py +3 -0
- evermemos/types/v1/memories/conversation_meta_create_params.py +0 -3
- evermemos/types/v1/memories/conversation_meta_create_response.py +0 -3
- evermemos/types/v1/memories/conversation_meta_get_response.py +0 -3
- evermemos/types/v1/memory_create_params.py +17 -2
- evermemos/types/v1/memory_create_response.py +4 -30
- evermemos/types/v1/memory_delete_params.py +3 -3
- evermemos/types/v1/{memory_list_response.py → memory_get_response.py} +88 -5
- evermemos/types/v1/memory_load_params.py +83 -0
- evermemos/types/v1/memory_load_response.py +26 -0
- evermemos/types/v1/stats/__init__.py +6 -0
- evermemos/types/v1/stats/request_get_params.py +13 -0
- evermemos/types/v1/stats/request_get_response.py +26 -0
- {evermemos-0.3.6.dist-info → evermemos-0.3.8.dist-info}/METADATA +49 -21
- {evermemos-0.3.6.dist-info → evermemos-0.3.8.dist-info}/RECORD +26 -17
- {evermemos-0.3.6.dist-info → evermemos-0.3.8.dist-info}/WHEEL +0 -0
- {evermemos-0.3.6.dist-info → evermemos-0.3.8.dist-info}/licenses/LICENSE +0 -0
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
from .stats import (
|
|
4
|
+
StatsResource,
|
|
5
|
+
AsyncStatsResource,
|
|
6
|
+
StatsResourceWithRawResponse,
|
|
7
|
+
AsyncStatsResourceWithRawResponse,
|
|
8
|
+
StatsResourceWithStreamingResponse,
|
|
9
|
+
AsyncStatsResourceWithStreamingResponse,
|
|
10
|
+
)
|
|
11
|
+
from .request import (
|
|
12
|
+
RequestResource,
|
|
13
|
+
AsyncRequestResource,
|
|
14
|
+
RequestResourceWithRawResponse,
|
|
15
|
+
AsyncRequestResourceWithRawResponse,
|
|
16
|
+
RequestResourceWithStreamingResponse,
|
|
17
|
+
AsyncRequestResourceWithStreamingResponse,
|
|
18
|
+
)
|
|
19
|
+
|
|
20
|
+
__all__ = [
|
|
21
|
+
"RequestResource",
|
|
22
|
+
"AsyncRequestResource",
|
|
23
|
+
"RequestResourceWithRawResponse",
|
|
24
|
+
"AsyncRequestResourceWithRawResponse",
|
|
25
|
+
"RequestResourceWithStreamingResponse",
|
|
26
|
+
"AsyncRequestResourceWithStreamingResponse",
|
|
27
|
+
"StatsResource",
|
|
28
|
+
"AsyncStatsResource",
|
|
29
|
+
"StatsResourceWithRawResponse",
|
|
30
|
+
"AsyncStatsResourceWithRawResponse",
|
|
31
|
+
"StatsResourceWithStreamingResponse",
|
|
32
|
+
"AsyncStatsResourceWithStreamingResponse",
|
|
33
|
+
]
|
|
@@ -0,0 +1,175 @@
|
|
|
1
|
+
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
from __future__ import annotations
|
|
4
|
+
|
|
5
|
+
from typing import Optional
|
|
6
|
+
|
|
7
|
+
import httpx
|
|
8
|
+
|
|
9
|
+
from ...._types import Body, Query, Headers, NotGiven, not_given
|
|
10
|
+
from ...._utils import maybe_transform, async_maybe_transform
|
|
11
|
+
from ...._compat import cached_property
|
|
12
|
+
from ...._resource import SyncAPIResource, AsyncAPIResource
|
|
13
|
+
from ...._response import (
|
|
14
|
+
to_raw_response_wrapper,
|
|
15
|
+
to_streamed_response_wrapper,
|
|
16
|
+
async_to_raw_response_wrapper,
|
|
17
|
+
async_to_streamed_response_wrapper,
|
|
18
|
+
)
|
|
19
|
+
from ...._base_client import make_request_options
|
|
20
|
+
from ....types.v1.stats import request_get_params
|
|
21
|
+
from ....types.v1.stats.request_get_response import RequestGetResponse
|
|
22
|
+
|
|
23
|
+
__all__ = ["RequestResource", "AsyncRequestResource"]
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
class RequestResource(SyncAPIResource):
|
|
27
|
+
@cached_property
|
|
28
|
+
def with_raw_response(self) -> RequestResourceWithRawResponse:
|
|
29
|
+
"""
|
|
30
|
+
This property can be used as a prefix for any HTTP method call to return
|
|
31
|
+
the raw response object instead of the parsed content.
|
|
32
|
+
|
|
33
|
+
For more information, see https://www.github.com/evermemos/evermemos-python#accessing-raw-response-data-eg-headers
|
|
34
|
+
"""
|
|
35
|
+
return RequestResourceWithRawResponse(self)
|
|
36
|
+
|
|
37
|
+
@cached_property
|
|
38
|
+
def with_streaming_response(self) -> RequestResourceWithStreamingResponse:
|
|
39
|
+
"""
|
|
40
|
+
An alternative to `.with_raw_response` that doesn't eagerly read the response body.
|
|
41
|
+
|
|
42
|
+
For more information, see https://www.github.com/evermemos/evermemos-python#with_streaming_response
|
|
43
|
+
"""
|
|
44
|
+
return RequestResourceWithStreamingResponse(self)
|
|
45
|
+
|
|
46
|
+
def get(
|
|
47
|
+
self,
|
|
48
|
+
*,
|
|
49
|
+
request_id: Optional[str],
|
|
50
|
+
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
51
|
+
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
52
|
+
extra_headers: Headers | None = None,
|
|
53
|
+
extra_query: Query | None = None,
|
|
54
|
+
extra_body: Body | None = None,
|
|
55
|
+
timeout: float | httpx.Timeout | None | NotGiven = not_given,
|
|
56
|
+
) -> RequestGetResponse:
|
|
57
|
+
"""
|
|
58
|
+
Query the processing status of a specific request
|
|
59
|
+
|
|
60
|
+
Args:
|
|
61
|
+
request_id: this id is returned by add_memories api
|
|
62
|
+
|
|
63
|
+
extra_headers: Send extra headers
|
|
64
|
+
|
|
65
|
+
extra_query: Add additional query parameters to the request
|
|
66
|
+
|
|
67
|
+
extra_body: Add additional JSON properties to the request
|
|
68
|
+
|
|
69
|
+
timeout: Override the client-level default timeout for this request, in seconds
|
|
70
|
+
"""
|
|
71
|
+
return self._get(
|
|
72
|
+
"/api/v1/stats/request",
|
|
73
|
+
options=make_request_options(
|
|
74
|
+
extra_headers=extra_headers,
|
|
75
|
+
extra_query=extra_query,
|
|
76
|
+
extra_body=extra_body,
|
|
77
|
+
timeout=timeout,
|
|
78
|
+
query=maybe_transform({"request_id": request_id}, request_get_params.RequestGetParams),
|
|
79
|
+
),
|
|
80
|
+
cast_to=RequestGetResponse,
|
|
81
|
+
)
|
|
82
|
+
|
|
83
|
+
|
|
84
|
+
class AsyncRequestResource(AsyncAPIResource):
|
|
85
|
+
@cached_property
|
|
86
|
+
def with_raw_response(self) -> AsyncRequestResourceWithRawResponse:
|
|
87
|
+
"""
|
|
88
|
+
This property can be used as a prefix for any HTTP method call to return
|
|
89
|
+
the raw response object instead of the parsed content.
|
|
90
|
+
|
|
91
|
+
For more information, see https://www.github.com/evermemos/evermemos-python#accessing-raw-response-data-eg-headers
|
|
92
|
+
"""
|
|
93
|
+
return AsyncRequestResourceWithRawResponse(self)
|
|
94
|
+
|
|
95
|
+
@cached_property
|
|
96
|
+
def with_streaming_response(self) -> AsyncRequestResourceWithStreamingResponse:
|
|
97
|
+
"""
|
|
98
|
+
An alternative to `.with_raw_response` that doesn't eagerly read the response body.
|
|
99
|
+
|
|
100
|
+
For more information, see https://www.github.com/evermemos/evermemos-python#with_streaming_response
|
|
101
|
+
"""
|
|
102
|
+
return AsyncRequestResourceWithStreamingResponse(self)
|
|
103
|
+
|
|
104
|
+
async def get(
|
|
105
|
+
self,
|
|
106
|
+
*,
|
|
107
|
+
request_id: Optional[str],
|
|
108
|
+
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
109
|
+
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
110
|
+
extra_headers: Headers | None = None,
|
|
111
|
+
extra_query: Query | None = None,
|
|
112
|
+
extra_body: Body | None = None,
|
|
113
|
+
timeout: float | httpx.Timeout | None | NotGiven = not_given,
|
|
114
|
+
) -> RequestGetResponse:
|
|
115
|
+
"""
|
|
116
|
+
Query the processing status of a specific request
|
|
117
|
+
|
|
118
|
+
Args:
|
|
119
|
+
request_id: this id is returned by add_memories api
|
|
120
|
+
|
|
121
|
+
extra_headers: Send extra headers
|
|
122
|
+
|
|
123
|
+
extra_query: Add additional query parameters to the request
|
|
124
|
+
|
|
125
|
+
extra_body: Add additional JSON properties to the request
|
|
126
|
+
|
|
127
|
+
timeout: Override the client-level default timeout for this request, in seconds
|
|
128
|
+
"""
|
|
129
|
+
return await self._get(
|
|
130
|
+
"/api/v1/stats/request",
|
|
131
|
+
options=make_request_options(
|
|
132
|
+
extra_headers=extra_headers,
|
|
133
|
+
extra_query=extra_query,
|
|
134
|
+
extra_body=extra_body,
|
|
135
|
+
timeout=timeout,
|
|
136
|
+
query=await async_maybe_transform({"request_id": request_id}, request_get_params.RequestGetParams),
|
|
137
|
+
),
|
|
138
|
+
cast_to=RequestGetResponse,
|
|
139
|
+
)
|
|
140
|
+
|
|
141
|
+
|
|
142
|
+
class RequestResourceWithRawResponse:
|
|
143
|
+
def __init__(self, request: RequestResource) -> None:
|
|
144
|
+
self._request = request
|
|
145
|
+
|
|
146
|
+
self.get = to_raw_response_wrapper(
|
|
147
|
+
request.get,
|
|
148
|
+
)
|
|
149
|
+
|
|
150
|
+
|
|
151
|
+
class AsyncRequestResourceWithRawResponse:
|
|
152
|
+
def __init__(self, request: AsyncRequestResource) -> None:
|
|
153
|
+
self._request = request
|
|
154
|
+
|
|
155
|
+
self.get = async_to_raw_response_wrapper(
|
|
156
|
+
request.get,
|
|
157
|
+
)
|
|
158
|
+
|
|
159
|
+
|
|
160
|
+
class RequestResourceWithStreamingResponse:
|
|
161
|
+
def __init__(self, request: RequestResource) -> None:
|
|
162
|
+
self._request = request
|
|
163
|
+
|
|
164
|
+
self.get = to_streamed_response_wrapper(
|
|
165
|
+
request.get,
|
|
166
|
+
)
|
|
167
|
+
|
|
168
|
+
|
|
169
|
+
class AsyncRequestResourceWithStreamingResponse:
|
|
170
|
+
def __init__(self, request: AsyncRequestResource) -> None:
|
|
171
|
+
self._request = request
|
|
172
|
+
|
|
173
|
+
self.get = async_to_streamed_response_wrapper(
|
|
174
|
+
request.get,
|
|
175
|
+
)
|
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
from __future__ import annotations
|
|
4
|
+
|
|
5
|
+
from .request import (
|
|
6
|
+
RequestResource,
|
|
7
|
+
AsyncRequestResource,
|
|
8
|
+
RequestResourceWithRawResponse,
|
|
9
|
+
AsyncRequestResourceWithRawResponse,
|
|
10
|
+
RequestResourceWithStreamingResponse,
|
|
11
|
+
AsyncRequestResourceWithStreamingResponse,
|
|
12
|
+
)
|
|
13
|
+
from ...._compat import cached_property
|
|
14
|
+
from ...._resource import SyncAPIResource, AsyncAPIResource
|
|
15
|
+
|
|
16
|
+
__all__ = ["StatsResource", "AsyncStatsResource"]
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
class StatsResource(SyncAPIResource):
|
|
20
|
+
@cached_property
|
|
21
|
+
def request(self) -> RequestResource:
|
|
22
|
+
return RequestResource(self._client)
|
|
23
|
+
|
|
24
|
+
@cached_property
|
|
25
|
+
def with_raw_response(self) -> StatsResourceWithRawResponse:
|
|
26
|
+
"""
|
|
27
|
+
This property can be used as a prefix for any HTTP method call to return
|
|
28
|
+
the raw response object instead of the parsed content.
|
|
29
|
+
|
|
30
|
+
For more information, see https://www.github.com/evermemos/evermemos-python#accessing-raw-response-data-eg-headers
|
|
31
|
+
"""
|
|
32
|
+
return StatsResourceWithRawResponse(self)
|
|
33
|
+
|
|
34
|
+
@cached_property
|
|
35
|
+
def with_streaming_response(self) -> StatsResourceWithStreamingResponse:
|
|
36
|
+
"""
|
|
37
|
+
An alternative to `.with_raw_response` that doesn't eagerly read the response body.
|
|
38
|
+
|
|
39
|
+
For more information, see https://www.github.com/evermemos/evermemos-python#with_streaming_response
|
|
40
|
+
"""
|
|
41
|
+
return StatsResourceWithStreamingResponse(self)
|
|
42
|
+
|
|
43
|
+
|
|
44
|
+
class AsyncStatsResource(AsyncAPIResource):
|
|
45
|
+
@cached_property
|
|
46
|
+
def request(self) -> AsyncRequestResource:
|
|
47
|
+
return AsyncRequestResource(self._client)
|
|
48
|
+
|
|
49
|
+
@cached_property
|
|
50
|
+
def with_raw_response(self) -> AsyncStatsResourceWithRawResponse:
|
|
51
|
+
"""
|
|
52
|
+
This property can be used as a prefix for any HTTP method call to return
|
|
53
|
+
the raw response object instead of the parsed content.
|
|
54
|
+
|
|
55
|
+
For more information, see https://www.github.com/evermemos/evermemos-python#accessing-raw-response-data-eg-headers
|
|
56
|
+
"""
|
|
57
|
+
return AsyncStatsResourceWithRawResponse(self)
|
|
58
|
+
|
|
59
|
+
@cached_property
|
|
60
|
+
def with_streaming_response(self) -> AsyncStatsResourceWithStreamingResponse:
|
|
61
|
+
"""
|
|
62
|
+
An alternative to `.with_raw_response` that doesn't eagerly read the response body.
|
|
63
|
+
|
|
64
|
+
For more information, see https://www.github.com/evermemos/evermemos-python#with_streaming_response
|
|
65
|
+
"""
|
|
66
|
+
return AsyncStatsResourceWithStreamingResponse(self)
|
|
67
|
+
|
|
68
|
+
|
|
69
|
+
class StatsResourceWithRawResponse:
|
|
70
|
+
def __init__(self, stats: StatsResource) -> None:
|
|
71
|
+
self._stats = stats
|
|
72
|
+
|
|
73
|
+
@cached_property
|
|
74
|
+
def request(self) -> RequestResourceWithRawResponse:
|
|
75
|
+
return RequestResourceWithRawResponse(self._stats.request)
|
|
76
|
+
|
|
77
|
+
|
|
78
|
+
class AsyncStatsResourceWithRawResponse:
|
|
79
|
+
def __init__(self, stats: AsyncStatsResource) -> None:
|
|
80
|
+
self._stats = stats
|
|
81
|
+
|
|
82
|
+
@cached_property
|
|
83
|
+
def request(self) -> AsyncRequestResourceWithRawResponse:
|
|
84
|
+
return AsyncRequestResourceWithRawResponse(self._stats.request)
|
|
85
|
+
|
|
86
|
+
|
|
87
|
+
class StatsResourceWithStreamingResponse:
|
|
88
|
+
def __init__(self, stats: StatsResource) -> None:
|
|
89
|
+
self._stats = stats
|
|
90
|
+
|
|
91
|
+
@cached_property
|
|
92
|
+
def request(self) -> RequestResourceWithStreamingResponse:
|
|
93
|
+
return RequestResourceWithStreamingResponse(self._stats.request)
|
|
94
|
+
|
|
95
|
+
|
|
96
|
+
class AsyncStatsResourceWithStreamingResponse:
|
|
97
|
+
def __init__(self, stats: AsyncStatsResource) -> None:
|
|
98
|
+
self._stats = stats
|
|
99
|
+
|
|
100
|
+
@cached_property
|
|
101
|
+
def request(self) -> AsyncRequestResourceWithStreamingResponse:
|
|
102
|
+
return AsyncRequestResourceWithStreamingResponse(self._stats.request)
|
evermemos/resources/v1/v1.py
CHANGED
|
@@ -4,6 +4,14 @@ from __future__ import annotations
|
|
|
4
4
|
|
|
5
5
|
from ..._compat import cached_property
|
|
6
6
|
from ..._resource import SyncAPIResource, AsyncAPIResource
|
|
7
|
+
from .stats.stats import (
|
|
8
|
+
StatsResource,
|
|
9
|
+
AsyncStatsResource,
|
|
10
|
+
StatsResourceWithRawResponse,
|
|
11
|
+
AsyncStatsResourceWithRawResponse,
|
|
12
|
+
StatsResourceWithStreamingResponse,
|
|
13
|
+
AsyncStatsResourceWithStreamingResponse,
|
|
14
|
+
)
|
|
7
15
|
from .memories.memories import (
|
|
8
16
|
MemoriesResource,
|
|
9
17
|
AsyncMemoriesResource,
|
|
@@ -21,6 +29,10 @@ class V1Resource(SyncAPIResource):
|
|
|
21
29
|
def memories(self) -> MemoriesResource:
|
|
22
30
|
return MemoriesResource(self._client)
|
|
23
31
|
|
|
32
|
+
@cached_property
|
|
33
|
+
def stats(self) -> StatsResource:
|
|
34
|
+
return StatsResource(self._client)
|
|
35
|
+
|
|
24
36
|
@cached_property
|
|
25
37
|
def with_raw_response(self) -> V1ResourceWithRawResponse:
|
|
26
38
|
"""
|
|
@@ -46,6 +58,10 @@ class AsyncV1Resource(AsyncAPIResource):
|
|
|
46
58
|
def memories(self) -> AsyncMemoriesResource:
|
|
47
59
|
return AsyncMemoriesResource(self._client)
|
|
48
60
|
|
|
61
|
+
@cached_property
|
|
62
|
+
def stats(self) -> AsyncStatsResource:
|
|
63
|
+
return AsyncStatsResource(self._client)
|
|
64
|
+
|
|
49
65
|
@cached_property
|
|
50
66
|
def with_raw_response(self) -> AsyncV1ResourceWithRawResponse:
|
|
51
67
|
"""
|
|
@@ -74,6 +90,10 @@ class V1ResourceWithRawResponse:
|
|
|
74
90
|
def memories(self) -> MemoriesResourceWithRawResponse:
|
|
75
91
|
return MemoriesResourceWithRawResponse(self._v1.memories)
|
|
76
92
|
|
|
93
|
+
@cached_property
|
|
94
|
+
def stats(self) -> StatsResourceWithRawResponse:
|
|
95
|
+
return StatsResourceWithRawResponse(self._v1.stats)
|
|
96
|
+
|
|
77
97
|
|
|
78
98
|
class AsyncV1ResourceWithRawResponse:
|
|
79
99
|
def __init__(self, v1: AsyncV1Resource) -> None:
|
|
@@ -83,6 +103,10 @@ class AsyncV1ResourceWithRawResponse:
|
|
|
83
103
|
def memories(self) -> AsyncMemoriesResourceWithRawResponse:
|
|
84
104
|
return AsyncMemoriesResourceWithRawResponse(self._v1.memories)
|
|
85
105
|
|
|
106
|
+
@cached_property
|
|
107
|
+
def stats(self) -> AsyncStatsResourceWithRawResponse:
|
|
108
|
+
return AsyncStatsResourceWithRawResponse(self._v1.stats)
|
|
109
|
+
|
|
86
110
|
|
|
87
111
|
class V1ResourceWithStreamingResponse:
|
|
88
112
|
def __init__(self, v1: V1Resource) -> None:
|
|
@@ -92,6 +116,10 @@ class V1ResourceWithStreamingResponse:
|
|
|
92
116
|
def memories(self) -> MemoriesResourceWithStreamingResponse:
|
|
93
117
|
return MemoriesResourceWithStreamingResponse(self._v1.memories)
|
|
94
118
|
|
|
119
|
+
@cached_property
|
|
120
|
+
def stats(self) -> StatsResourceWithStreamingResponse:
|
|
121
|
+
return StatsResourceWithStreamingResponse(self._v1.stats)
|
|
122
|
+
|
|
95
123
|
|
|
96
124
|
class AsyncV1ResourceWithStreamingResponse:
|
|
97
125
|
def __init__(self, v1: AsyncV1Resource) -> None:
|
|
@@ -100,3 +128,7 @@ class AsyncV1ResourceWithStreamingResponse:
|
|
|
100
128
|
@cached_property
|
|
101
129
|
def memories(self) -> AsyncMemoriesResourceWithStreamingResponse:
|
|
102
130
|
return AsyncMemoriesResourceWithStreamingResponse(self._v1.memories)
|
|
131
|
+
|
|
132
|
+
@cached_property
|
|
133
|
+
def stats(self) -> AsyncStatsResourceWithStreamingResponse:
|
|
134
|
+
return AsyncStatsResourceWithStreamingResponse(self._v1.stats)
|
evermemos/types/v1/__init__.py
CHANGED
|
@@ -4,9 +4,11 @@ from __future__ import annotations
|
|
|
4
4
|
|
|
5
5
|
from .metadata import Metadata as Metadata
|
|
6
6
|
from .memory_type import MemoryType as MemoryType
|
|
7
|
+
from .memory_load_params import MemoryLoadParams as MemoryLoadParams
|
|
8
|
+
from .memory_get_response import MemoryGetResponse as MemoryGetResponse
|
|
7
9
|
from .memory_create_params import MemoryCreateParams as MemoryCreateParams
|
|
8
10
|
from .memory_delete_params import MemoryDeleteParams as MemoryDeleteParams
|
|
9
|
-
from .
|
|
11
|
+
from .memory_load_response import MemoryLoadResponse as MemoryLoadResponse
|
|
10
12
|
from .memory_create_response import MemoryCreateResponse as MemoryCreateResponse
|
|
11
13
|
from .memory_delete_response import MemoryDeleteResponse as MemoryDeleteResponse
|
|
12
14
|
from .memory_search_response import MemorySearchResponse as MemorySearchResponse
|
|
@@ -29,9 +29,6 @@ class ConversationMetaCreateParams(TypedDict, total=False):
|
|
|
29
29
|
scene_desc: Required[Dict[str, object]]
|
|
30
30
|
"""Scene description object, can include fields like description"""
|
|
31
31
|
|
|
32
|
-
version: Required[str]
|
|
33
|
-
"""Metadata version number"""
|
|
34
|
-
|
|
35
32
|
default_timezone: Optional[str]
|
|
36
33
|
"""Default timezone"""
|
|
37
34
|
|
|
@@ -21,10 +21,25 @@ class MemoryCreateParams(TypedDict, total=False):
|
|
|
21
21
|
"""Message unique identifier"""
|
|
22
22
|
|
|
23
23
|
sender: Required[str]
|
|
24
|
-
"""Sender user ID
|
|
24
|
+
"""Sender user ID (required).
|
|
25
|
+
|
|
26
|
+
Also used as user_id internally for memory ownership.
|
|
27
|
+
"""
|
|
28
|
+
|
|
29
|
+
flush: bool
|
|
30
|
+
"""Force boundary trigger.
|
|
31
|
+
|
|
32
|
+
When True, immediately triggers memory extraction instead of waiting for natural
|
|
33
|
+
boundary detection.
|
|
34
|
+
"""
|
|
25
35
|
|
|
26
36
|
group_id: Optional[str]
|
|
27
|
-
"""Group ID
|
|
37
|
+
"""Group ID.
|
|
38
|
+
|
|
39
|
+
If not provided, will automatically generate based on hash(sender) + '\\__group'
|
|
40
|
+
suffix, representing single-user mode where each user's messages are extracted
|
|
41
|
+
into separate memory spaces.
|
|
42
|
+
"""
|
|
28
43
|
|
|
29
44
|
group_name: Optional[str]
|
|
30
45
|
"""Group name"""
|
|
@@ -1,39 +1,13 @@
|
|
|
1
1
|
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
|
|
3
|
-
from typing import List, Optional
|
|
4
|
-
|
|
5
3
|
from ..._models import BaseModel
|
|
6
4
|
|
|
7
|
-
__all__ = ["MemoryCreateResponse"
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
class Result(BaseModel):
|
|
11
|
-
"""Memory storage result"""
|
|
12
|
-
|
|
13
|
-
count: Optional[int] = None
|
|
14
|
-
"""Number of memories extracted"""
|
|
15
|
-
|
|
16
|
-
saved_memories: Optional[List[object]] = None
|
|
17
|
-
"""List of saved memories (fetch via API for details)"""
|
|
18
|
-
|
|
19
|
-
status_info: Optional[str] = None
|
|
20
|
-
"""
|
|
21
|
-
Processing status: 'extracted' (memories created) or 'accumulated' (waiting for
|
|
22
|
-
boundary)
|
|
23
|
-
"""
|
|
5
|
+
__all__ = ["MemoryCreateResponse"]
|
|
24
6
|
|
|
25
7
|
|
|
26
8
|
class MemoryCreateResponse(BaseModel):
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
Response for POST /api/v1/memories endpoint.
|
|
30
|
-
"""
|
|
31
|
-
|
|
32
|
-
message: Optional[str] = None
|
|
33
|
-
"""Response message"""
|
|
9
|
+
message: str
|
|
34
10
|
|
|
35
|
-
|
|
36
|
-
"""Memory storage result"""
|
|
11
|
+
request_id: str
|
|
37
12
|
|
|
38
|
-
status:
|
|
39
|
-
"""Response status"""
|
|
13
|
+
status: str
|
|
@@ -9,11 +9,11 @@ __all__ = ["MemoryDeleteParams"]
|
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
class MemoryDeleteParams(TypedDict, total=False):
|
|
12
|
-
event_id: Optional[str]
|
|
13
|
-
"""Memory event_id (filter condition)"""
|
|
14
|
-
|
|
15
12
|
group_id: Optional[str]
|
|
16
13
|
"""Group ID (filter condition)"""
|
|
17
14
|
|
|
15
|
+
memory_id: Optional[str]
|
|
16
|
+
"""Memory id (filter condition)"""
|
|
17
|
+
|
|
18
18
|
user_id: Optional[str]
|
|
19
19
|
"""User ID (filter condition)"""
|
|
@@ -8,10 +8,14 @@ from .metadata import Metadata
|
|
|
8
8
|
from ..._models import BaseModel
|
|
9
9
|
|
|
10
10
|
__all__ = [
|
|
11
|
-
"
|
|
11
|
+
"MemoryGetResponse",
|
|
12
12
|
"Result",
|
|
13
13
|
"ResultMemory",
|
|
14
14
|
"ResultMemoryProfileModel",
|
|
15
|
+
"ResultMemoryGlobalUserProfileModel",
|
|
16
|
+
"ResultMemoryCombinedProfileModel",
|
|
17
|
+
"ResultMemoryCombinedProfileModelGlobalProfile",
|
|
18
|
+
"ResultMemoryCombinedProfileModelProfile",
|
|
15
19
|
"ResultMemoryEpisodicMemoryModel",
|
|
16
20
|
"ResultMemoryEventLogModel",
|
|
17
21
|
"ResultMemoryForesightModel",
|
|
@@ -44,6 +48,78 @@ class ResultMemoryProfileModel(BaseModel):
|
|
|
44
48
|
version: Optional[int] = None
|
|
45
49
|
|
|
46
50
|
|
|
51
|
+
class ResultMemoryGlobalUserProfileModel(BaseModel):
|
|
52
|
+
id: str
|
|
53
|
+
|
|
54
|
+
user_id: str
|
|
55
|
+
|
|
56
|
+
confidence: Optional[float] = None
|
|
57
|
+
|
|
58
|
+
created_at: Optional[datetime] = None
|
|
59
|
+
|
|
60
|
+
custom_profile_data: Optional[Dict[str, object]] = None
|
|
61
|
+
|
|
62
|
+
memcell_count: Optional[int] = None
|
|
63
|
+
|
|
64
|
+
profile_data: Optional[Dict[str, object]] = None
|
|
65
|
+
|
|
66
|
+
updated_at: Optional[datetime] = None
|
|
67
|
+
|
|
68
|
+
|
|
69
|
+
class ResultMemoryCombinedProfileModelGlobalProfile(BaseModel):
|
|
70
|
+
id: str
|
|
71
|
+
|
|
72
|
+
user_id: str
|
|
73
|
+
|
|
74
|
+
confidence: Optional[float] = None
|
|
75
|
+
|
|
76
|
+
created_at: Optional[datetime] = None
|
|
77
|
+
|
|
78
|
+
custom_profile_data: Optional[Dict[str, object]] = None
|
|
79
|
+
|
|
80
|
+
memcell_count: Optional[int] = None
|
|
81
|
+
|
|
82
|
+
profile_data: Optional[Dict[str, object]] = None
|
|
83
|
+
|
|
84
|
+
updated_at: Optional[datetime] = None
|
|
85
|
+
|
|
86
|
+
|
|
87
|
+
class ResultMemoryCombinedProfileModelProfile(BaseModel):
|
|
88
|
+
id: str
|
|
89
|
+
|
|
90
|
+
group_id: str
|
|
91
|
+
|
|
92
|
+
user_id: str
|
|
93
|
+
|
|
94
|
+
cluster_ids: Optional[List[str]] = None
|
|
95
|
+
|
|
96
|
+
confidence: Optional[float] = None
|
|
97
|
+
|
|
98
|
+
created_at: Optional[datetime] = None
|
|
99
|
+
|
|
100
|
+
last_updated_cluster: Optional[str] = None
|
|
101
|
+
|
|
102
|
+
memcell_count: Optional[int] = None
|
|
103
|
+
|
|
104
|
+
profile_data: Optional[Dict[str, object]] = None
|
|
105
|
+
|
|
106
|
+
scenario: Optional[str] = None
|
|
107
|
+
|
|
108
|
+
updated_at: Optional[datetime] = None
|
|
109
|
+
|
|
110
|
+
version: Optional[int] = None
|
|
111
|
+
|
|
112
|
+
|
|
113
|
+
class ResultMemoryCombinedProfileModel(BaseModel):
|
|
114
|
+
user_id: str
|
|
115
|
+
|
|
116
|
+
global_profile: Optional[ResultMemoryCombinedProfileModelGlobalProfile] = None
|
|
117
|
+
|
|
118
|
+
group_id: Optional[str] = None
|
|
119
|
+
|
|
120
|
+
profiles: Optional[List[ResultMemoryCombinedProfileModelProfile]] = None
|
|
121
|
+
|
|
122
|
+
|
|
47
123
|
class ResultMemoryEpisodicMemoryModel(BaseModel):
|
|
48
124
|
id: str
|
|
49
125
|
|
|
@@ -69,10 +145,12 @@ class ResultMemoryEpisodicMemoryModel(BaseModel):
|
|
|
69
145
|
|
|
70
146
|
location: Optional[str] = None
|
|
71
147
|
|
|
72
|
-
memcell_event_id_list: Optional[List[str]] = None
|
|
73
|
-
|
|
74
148
|
metadata: Optional[Metadata] = None
|
|
75
149
|
|
|
150
|
+
parent_id: Optional[str] = None
|
|
151
|
+
|
|
152
|
+
parent_type: Optional[str] = None
|
|
153
|
+
|
|
76
154
|
participants: Optional[List[str]] = None
|
|
77
155
|
|
|
78
156
|
start_time: Optional[datetime] = None
|
|
@@ -161,7 +239,12 @@ class ResultMemoryForesightModel(BaseModel):
|
|
|
161
239
|
|
|
162
240
|
|
|
163
241
|
ResultMemory: TypeAlias = Union[
|
|
164
|
-
ResultMemoryProfileModel,
|
|
242
|
+
ResultMemoryProfileModel,
|
|
243
|
+
ResultMemoryGlobalUserProfileModel,
|
|
244
|
+
ResultMemoryCombinedProfileModel,
|
|
245
|
+
ResultMemoryEpisodicMemoryModel,
|
|
246
|
+
ResultMemoryEventLogModel,
|
|
247
|
+
ResultMemoryForesightModel,
|
|
165
248
|
]
|
|
166
249
|
|
|
167
250
|
|
|
@@ -177,7 +260,7 @@ class Result(BaseModel):
|
|
|
177
260
|
total_count: Optional[int] = None
|
|
178
261
|
|
|
179
262
|
|
|
180
|
-
class
|
|
263
|
+
class MemoryGetResponse(BaseModel):
|
|
181
264
|
"""Memory fetch API response
|
|
182
265
|
|
|
183
266
|
Response for GET /api/v1/memories endpoint.
|