evermemos 0.3.10__py3-none-any.whl → 0.3.11__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/_client.py +20 -20
- evermemos/_version.py +1 -1
- evermemos/resources/__init__.py +13 -13
- evermemos/resources/{v1 → v0}/__init__.py +13 -13
- evermemos/resources/{v1 → v0}/memories/conversation_meta.py +12 -12
- evermemos/resources/{v1 → v0}/memories/memories.py +17 -17
- evermemos/resources/{v1 → v0}/status/request.py +4 -4
- evermemos/resources/{v1/v1.py → v0/v0.py} +31 -31
- evermemos/types/{v1 → v0}/memories/conversation_meta_create_params.py +1 -1
- evermemos/types/{v1 → v0}/memory_add_params.py +1 -1
- evermemos/types/{v1 → v0}/memory_get_response.py +1 -82
- evermemos/types/v0/memory_search_response.py +196 -0
- {evermemos-0.3.10.dist-info → evermemos-0.3.11.dist-info}/METADATA +11 -11
- {evermemos-0.3.10.dist-info → evermemos-0.3.11.dist-info}/RECORD +33 -33
- evermemos/types/v1/memory_search_response.py +0 -104
- /evermemos/resources/{v1 → v0}/memories/__init__.py +0 -0
- /evermemos/resources/{v1 → v0}/status/__init__.py +0 -0
- /evermemos/resources/{v1 → v0}/status/status.py +0 -0
- /evermemos/types/{v1 → v0}/__init__.py +0 -0
- /evermemos/types/{v1 → v0}/memories/__init__.py +0 -0
- /evermemos/types/{v1 → v0}/memories/conversation_meta_create_response.py +0 -0
- /evermemos/types/{v1 → v0}/memories/conversation_meta_get_response.py +0 -0
- /evermemos/types/{v1 → v0}/memories/conversation_meta_update_params.py +0 -0
- /evermemos/types/{v1 → v0}/memories/conversation_meta_update_response.py +0 -0
- /evermemos/types/{v1 → v0}/memory_add_response.py +0 -0
- /evermemos/types/{v1 → v0}/memory_delete_params.py +0 -0
- /evermemos/types/{v1 → v0}/memory_delete_response.py +0 -0
- /evermemos/types/{v1 → v0}/memory_type.py +0 -0
- /evermemos/types/{v1 → v0}/metadata.py +0 -0
- /evermemos/types/{v1 → v0}/status/__init__.py +0 -0
- /evermemos/types/{v1 → v0}/status/request_get_params.py +0 -0
- /evermemos/types/{v1 → v0}/status/request_get_response.py +0 -0
- {evermemos-0.3.10.dist-info → evermemos-0.3.11.dist-info}/WHEEL +0 -0
- {evermemos-0.3.10.dist-info → evermemos-0.3.11.dist-info}/licenses/LICENSE +0 -0
evermemos/_client.py
CHANGED
|
@@ -31,8 +31,8 @@ from ._base_client import (
|
|
|
31
31
|
)
|
|
32
32
|
|
|
33
33
|
if TYPE_CHECKING:
|
|
34
|
-
from .resources import
|
|
35
|
-
from .resources.
|
|
34
|
+
from .resources import v0
|
|
35
|
+
from .resources.v0.v0 import V0Resource, AsyncV0Resource
|
|
36
36
|
|
|
37
37
|
__all__ = [
|
|
38
38
|
"Timeout",
|
|
@@ -102,10 +102,10 @@ class EverMemOS(SyncAPIClient):
|
|
|
102
102
|
)
|
|
103
103
|
|
|
104
104
|
@cached_property
|
|
105
|
-
def
|
|
106
|
-
from .resources.
|
|
105
|
+
def v0(self) -> V0Resource:
|
|
106
|
+
from .resources.v0 import V0Resource
|
|
107
107
|
|
|
108
|
-
return
|
|
108
|
+
return V0Resource(self)
|
|
109
109
|
|
|
110
110
|
@cached_property
|
|
111
111
|
def with_raw_response(self) -> EverMemOSWithRawResponse:
|
|
@@ -276,10 +276,10 @@ class AsyncEverMemOS(AsyncAPIClient):
|
|
|
276
276
|
)
|
|
277
277
|
|
|
278
278
|
@cached_property
|
|
279
|
-
def
|
|
280
|
-
from .resources.
|
|
279
|
+
def v0(self) -> AsyncV0Resource:
|
|
280
|
+
from .resources.v0 import AsyncV0Resource
|
|
281
281
|
|
|
282
|
-
return
|
|
282
|
+
return AsyncV0Resource(self)
|
|
283
283
|
|
|
284
284
|
@cached_property
|
|
285
285
|
def with_raw_response(self) -> AsyncEverMemOSWithRawResponse:
|
|
@@ -401,10 +401,10 @@ class EverMemOSWithRawResponse:
|
|
|
401
401
|
self._client = client
|
|
402
402
|
|
|
403
403
|
@cached_property
|
|
404
|
-
def
|
|
405
|
-
from .resources.
|
|
404
|
+
def v0(self) -> v0.V0ResourceWithRawResponse:
|
|
405
|
+
from .resources.v0 import V0ResourceWithRawResponse
|
|
406
406
|
|
|
407
|
-
return
|
|
407
|
+
return V0ResourceWithRawResponse(self._client.v0)
|
|
408
408
|
|
|
409
409
|
|
|
410
410
|
class AsyncEverMemOSWithRawResponse:
|
|
@@ -414,10 +414,10 @@ class AsyncEverMemOSWithRawResponse:
|
|
|
414
414
|
self._client = client
|
|
415
415
|
|
|
416
416
|
@cached_property
|
|
417
|
-
def
|
|
418
|
-
from .resources.
|
|
417
|
+
def v0(self) -> v0.AsyncV0ResourceWithRawResponse:
|
|
418
|
+
from .resources.v0 import AsyncV0ResourceWithRawResponse
|
|
419
419
|
|
|
420
|
-
return
|
|
420
|
+
return AsyncV0ResourceWithRawResponse(self._client.v0)
|
|
421
421
|
|
|
422
422
|
|
|
423
423
|
class EverMemOSWithStreamedResponse:
|
|
@@ -427,10 +427,10 @@ class EverMemOSWithStreamedResponse:
|
|
|
427
427
|
self._client = client
|
|
428
428
|
|
|
429
429
|
@cached_property
|
|
430
|
-
def
|
|
431
|
-
from .resources.
|
|
430
|
+
def v0(self) -> v0.V0ResourceWithStreamingResponse:
|
|
431
|
+
from .resources.v0 import V0ResourceWithStreamingResponse
|
|
432
432
|
|
|
433
|
-
return
|
|
433
|
+
return V0ResourceWithStreamingResponse(self._client.v0)
|
|
434
434
|
|
|
435
435
|
|
|
436
436
|
class AsyncEverMemOSWithStreamedResponse:
|
|
@@ -440,10 +440,10 @@ class AsyncEverMemOSWithStreamedResponse:
|
|
|
440
440
|
self._client = client
|
|
441
441
|
|
|
442
442
|
@cached_property
|
|
443
|
-
def
|
|
444
|
-
from .resources.
|
|
443
|
+
def v0(self) -> v0.AsyncV0ResourceWithStreamingResponse:
|
|
444
|
+
from .resources.v0 import AsyncV0ResourceWithStreamingResponse
|
|
445
445
|
|
|
446
|
-
return
|
|
446
|
+
return AsyncV0ResourceWithStreamingResponse(self._client.v0)
|
|
447
447
|
|
|
448
448
|
|
|
449
449
|
Client = EverMemOS
|
evermemos/_version.py
CHANGED
evermemos/resources/__init__.py
CHANGED
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
|
|
3
|
-
from .
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
3
|
+
from .v0 import (
|
|
4
|
+
V0Resource,
|
|
5
|
+
AsyncV0Resource,
|
|
6
|
+
V0ResourceWithRawResponse,
|
|
7
|
+
AsyncV0ResourceWithRawResponse,
|
|
8
|
+
V0ResourceWithStreamingResponse,
|
|
9
|
+
AsyncV0ResourceWithStreamingResponse,
|
|
10
10
|
)
|
|
11
11
|
|
|
12
12
|
__all__ = [
|
|
13
|
-
"
|
|
14
|
-
"
|
|
15
|
-
"
|
|
16
|
-
"
|
|
17
|
-
"
|
|
18
|
-
"
|
|
13
|
+
"V0Resource",
|
|
14
|
+
"AsyncV0Resource",
|
|
15
|
+
"V0ResourceWithRawResponse",
|
|
16
|
+
"AsyncV0ResourceWithRawResponse",
|
|
17
|
+
"V0ResourceWithStreamingResponse",
|
|
18
|
+
"AsyncV0ResourceWithStreamingResponse",
|
|
19
19
|
]
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
|
|
3
|
-
from .
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
3
|
+
from .v0 import (
|
|
4
|
+
V0Resource,
|
|
5
|
+
AsyncV0Resource,
|
|
6
|
+
V0ResourceWithRawResponse,
|
|
7
|
+
AsyncV0ResourceWithRawResponse,
|
|
8
|
+
V0ResourceWithStreamingResponse,
|
|
9
|
+
AsyncV0ResourceWithStreamingResponse,
|
|
10
10
|
)
|
|
11
11
|
from .status import (
|
|
12
12
|
StatusResource,
|
|
@@ -38,10 +38,10 @@ __all__ = [
|
|
|
38
38
|
"AsyncStatusResourceWithRawResponse",
|
|
39
39
|
"StatusResourceWithStreamingResponse",
|
|
40
40
|
"AsyncStatusResourceWithStreamingResponse",
|
|
41
|
-
"
|
|
42
|
-
"
|
|
43
|
-
"
|
|
44
|
-
"
|
|
45
|
-
"
|
|
46
|
-
"
|
|
41
|
+
"V0Resource",
|
|
42
|
+
"AsyncV0Resource",
|
|
43
|
+
"V0ResourceWithRawResponse",
|
|
44
|
+
"AsyncV0ResourceWithRawResponse",
|
|
45
|
+
"V0ResourceWithStreamingResponse",
|
|
46
|
+
"AsyncV0ResourceWithStreamingResponse",
|
|
47
47
|
]
|
|
@@ -17,10 +17,10 @@ from ...._response import (
|
|
|
17
17
|
async_to_streamed_response_wrapper,
|
|
18
18
|
)
|
|
19
19
|
from ...._base_client import make_request_options
|
|
20
|
-
from ....types.
|
|
21
|
-
from ....types.
|
|
22
|
-
from ....types.
|
|
23
|
-
from ....types.
|
|
20
|
+
from ....types.v0.memories import conversation_meta_create_params, conversation_meta_update_params
|
|
21
|
+
from ....types.v0.memories.conversation_meta_get_response import ConversationMetaGetResponse
|
|
22
|
+
from ....types.v0.memories.conversation_meta_create_response import ConversationMetaCreateResponse
|
|
23
|
+
from ....types.v0.memories.conversation_meta_update_response import ConversationMetaUpdateResponse
|
|
24
24
|
|
|
25
25
|
__all__ = ["ConversationMetaResource", "AsyncConversationMetaResource"]
|
|
26
26
|
|
|
@@ -70,7 +70,7 @@ class ConversationMetaResource(SyncAPIResource):
|
|
|
70
70
|
etc.
|
|
71
71
|
|
|
72
72
|
Args:
|
|
73
|
-
created_at: Conversation creation time (ISO 8601 format)
|
|
73
|
+
created_at: Conversation creation time (ISO 8601 format with Timezone is required)
|
|
74
74
|
|
|
75
75
|
default_timezone: Default timezone
|
|
76
76
|
|
|
@@ -116,7 +116,7 @@ class ConversationMetaResource(SyncAPIResource):
|
|
|
116
116
|
timeout: Override the client-level default timeout for this request, in seconds
|
|
117
117
|
"""
|
|
118
118
|
return self._post(
|
|
119
|
-
"/api/
|
|
119
|
+
"/api/v0/memories/conversation-meta",
|
|
120
120
|
body=maybe_transform(
|
|
121
121
|
{
|
|
122
122
|
"created_at": created_at,
|
|
@@ -188,7 +188,7 @@ class ConversationMetaResource(SyncAPIResource):
|
|
|
188
188
|
timeout: Override the client-level default timeout for this request, in seconds
|
|
189
189
|
"""
|
|
190
190
|
return self._patch(
|
|
191
|
-
"/api/
|
|
191
|
+
"/api/v0/memories/conversation-meta",
|
|
192
192
|
body=maybe_transform(
|
|
193
193
|
{
|
|
194
194
|
"default_timezone": default_timezone,
|
|
@@ -220,7 +220,7 @@ class ConversationMetaResource(SyncAPIResource):
|
|
|
220
220
|
) -> ConversationMetaGetResponse:
|
|
221
221
|
"""Retrieve conversation metadata by group_id with fallback to default config"""
|
|
222
222
|
return self._get(
|
|
223
|
-
"/api/
|
|
223
|
+
"/api/v0/memories/conversation-meta",
|
|
224
224
|
options=make_request_options(
|
|
225
225
|
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
|
|
226
226
|
),
|
|
@@ -273,7 +273,7 @@ class AsyncConversationMetaResource(AsyncAPIResource):
|
|
|
273
273
|
etc.
|
|
274
274
|
|
|
275
275
|
Args:
|
|
276
|
-
created_at: Conversation creation time (ISO 8601 format)
|
|
276
|
+
created_at: Conversation creation time (ISO 8601 format with Timezone is required)
|
|
277
277
|
|
|
278
278
|
default_timezone: Default timezone
|
|
279
279
|
|
|
@@ -319,7 +319,7 @@ class AsyncConversationMetaResource(AsyncAPIResource):
|
|
|
319
319
|
timeout: Override the client-level default timeout for this request, in seconds
|
|
320
320
|
"""
|
|
321
321
|
return await self._post(
|
|
322
|
-
"/api/
|
|
322
|
+
"/api/v0/memories/conversation-meta",
|
|
323
323
|
body=await async_maybe_transform(
|
|
324
324
|
{
|
|
325
325
|
"created_at": created_at,
|
|
@@ -391,7 +391,7 @@ class AsyncConversationMetaResource(AsyncAPIResource):
|
|
|
391
391
|
timeout: Override the client-level default timeout for this request, in seconds
|
|
392
392
|
"""
|
|
393
393
|
return await self._patch(
|
|
394
|
-
"/api/
|
|
394
|
+
"/api/v0/memories/conversation-meta",
|
|
395
395
|
body=await async_maybe_transform(
|
|
396
396
|
{
|
|
397
397
|
"default_timezone": default_timezone,
|
|
@@ -423,7 +423,7 @@ class AsyncConversationMetaResource(AsyncAPIResource):
|
|
|
423
423
|
) -> ConversationMetaGetResponse:
|
|
424
424
|
"""Retrieve conversation metadata by group_id with fallback to default config"""
|
|
425
425
|
return await self._get(
|
|
426
|
-
"/api/
|
|
426
|
+
"/api/v0/memories/conversation-meta",
|
|
427
427
|
options=make_request_options(
|
|
428
428
|
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
|
|
429
429
|
),
|
|
@@ -9,7 +9,7 @@ import httpx
|
|
|
9
9
|
from ...._types import Body, Omit, Query, Headers, NotGiven, SequenceNotStr, omit, not_given
|
|
10
10
|
from ...._utils import maybe_transform, async_maybe_transform
|
|
11
11
|
from ...._compat import cached_property
|
|
12
|
-
from ....types.
|
|
12
|
+
from ....types.v0 import memory_add_params, memory_delete_params
|
|
13
13
|
from ...._resource import SyncAPIResource, AsyncAPIResource
|
|
14
14
|
from ...._response import (
|
|
15
15
|
to_raw_response_wrapper,
|
|
@@ -26,10 +26,10 @@ from .conversation_meta import (
|
|
|
26
26
|
ConversationMetaResourceWithStreamingResponse,
|
|
27
27
|
AsyncConversationMetaResourceWithStreamingResponse,
|
|
28
28
|
)
|
|
29
|
-
from ....types.
|
|
30
|
-
from ....types.
|
|
31
|
-
from ....types.
|
|
32
|
-
from ....types.
|
|
29
|
+
from ....types.v0.memory_add_response import MemoryAddResponse
|
|
30
|
+
from ....types.v0.memory_get_response import MemoryGetResponse
|
|
31
|
+
from ....types.v0.memory_delete_response import MemoryDeleteResponse
|
|
32
|
+
from ....types.v0.memory_search_response import MemorySearchResponse
|
|
33
33
|
|
|
34
34
|
__all__ = ["MemoriesResource", "AsyncMemoriesResource"]
|
|
35
35
|
|
|
@@ -96,7 +96,7 @@ class MemoriesResource(SyncAPIResource):
|
|
|
96
96
|
timeout: Override the client-level default timeout for this request, in seconds
|
|
97
97
|
"""
|
|
98
98
|
return self._delete(
|
|
99
|
-
"/api/
|
|
99
|
+
"/api/v0/memories",
|
|
100
100
|
body=maybe_transform(
|
|
101
101
|
{
|
|
102
102
|
"id": id,
|
|
@@ -134,12 +134,12 @@ class MemoriesResource(SyncAPIResource):
|
|
|
134
134
|
timeout: float | httpx.Timeout | None | NotGiven = not_given,
|
|
135
135
|
) -> MemoryAddResponse:
|
|
136
136
|
"""
|
|
137
|
-
|
|
137
|
+
Extract memory from message.
|
|
138
138
|
|
|
139
139
|
Args:
|
|
140
140
|
content: Message content
|
|
141
141
|
|
|
142
|
-
create_time: Message creation time (ISO 8601 format)
|
|
142
|
+
create_time: Message creation time (ISO 8601 format with Timezone is required)
|
|
143
143
|
|
|
144
144
|
message_id: Message unique identifier
|
|
145
145
|
|
|
@@ -173,7 +173,7 @@ class MemoriesResource(SyncAPIResource):
|
|
|
173
173
|
timeout: Override the client-level default timeout for this request, in seconds
|
|
174
174
|
"""
|
|
175
175
|
return self._post(
|
|
176
|
-
"/api/
|
|
176
|
+
"/api/v0/memories",
|
|
177
177
|
body=maybe_transform(
|
|
178
178
|
{
|
|
179
179
|
"content": content,
|
|
@@ -207,7 +207,7 @@ class MemoriesResource(SyncAPIResource):
|
|
|
207
207
|
) -> MemoryGetResponse:
|
|
208
208
|
"""Retrieve memory records by memory_type with optional filters"""
|
|
209
209
|
return self._get(
|
|
210
|
-
"/api/
|
|
210
|
+
"/api/v0/memories",
|
|
211
211
|
options=make_request_options(
|
|
212
212
|
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
|
|
213
213
|
),
|
|
@@ -229,7 +229,7 @@ class MemoriesResource(SyncAPIResource):
|
|
|
229
229
|
methods
|
|
230
230
|
"""
|
|
231
231
|
return self._get(
|
|
232
|
-
"/api/
|
|
232
|
+
"/api/v0/memories/search",
|
|
233
233
|
options=make_request_options(
|
|
234
234
|
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
|
|
235
235
|
),
|
|
@@ -299,7 +299,7 @@ class AsyncMemoriesResource(AsyncAPIResource):
|
|
|
299
299
|
timeout: Override the client-level default timeout for this request, in seconds
|
|
300
300
|
"""
|
|
301
301
|
return await self._delete(
|
|
302
|
-
"/api/
|
|
302
|
+
"/api/v0/memories",
|
|
303
303
|
body=await async_maybe_transform(
|
|
304
304
|
{
|
|
305
305
|
"id": id,
|
|
@@ -337,12 +337,12 @@ class AsyncMemoriesResource(AsyncAPIResource):
|
|
|
337
337
|
timeout: float | httpx.Timeout | None | NotGiven = not_given,
|
|
338
338
|
) -> MemoryAddResponse:
|
|
339
339
|
"""
|
|
340
|
-
|
|
340
|
+
Extract memory from message.
|
|
341
341
|
|
|
342
342
|
Args:
|
|
343
343
|
content: Message content
|
|
344
344
|
|
|
345
|
-
create_time: Message creation time (ISO 8601 format)
|
|
345
|
+
create_time: Message creation time (ISO 8601 format with Timezone is required)
|
|
346
346
|
|
|
347
347
|
message_id: Message unique identifier
|
|
348
348
|
|
|
@@ -376,7 +376,7 @@ class AsyncMemoriesResource(AsyncAPIResource):
|
|
|
376
376
|
timeout: Override the client-level default timeout for this request, in seconds
|
|
377
377
|
"""
|
|
378
378
|
return await self._post(
|
|
379
|
-
"/api/
|
|
379
|
+
"/api/v0/memories",
|
|
380
380
|
body=await async_maybe_transform(
|
|
381
381
|
{
|
|
382
382
|
"content": content,
|
|
@@ -410,7 +410,7 @@ class AsyncMemoriesResource(AsyncAPIResource):
|
|
|
410
410
|
) -> MemoryGetResponse:
|
|
411
411
|
"""Retrieve memory records by memory_type with optional filters"""
|
|
412
412
|
return await self._get(
|
|
413
|
-
"/api/
|
|
413
|
+
"/api/v0/memories",
|
|
414
414
|
options=make_request_options(
|
|
415
415
|
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
|
|
416
416
|
),
|
|
@@ -432,7 +432,7 @@ class AsyncMemoriesResource(AsyncAPIResource):
|
|
|
432
432
|
methods
|
|
433
433
|
"""
|
|
434
434
|
return await self._get(
|
|
435
|
-
"/api/
|
|
435
|
+
"/api/v0/memories/search",
|
|
436
436
|
options=make_request_options(
|
|
437
437
|
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
|
|
438
438
|
),
|
|
@@ -17,8 +17,8 @@ from ...._response import (
|
|
|
17
17
|
async_to_streamed_response_wrapper,
|
|
18
18
|
)
|
|
19
19
|
from ...._base_client import make_request_options
|
|
20
|
-
from ....types.
|
|
21
|
-
from ....types.
|
|
20
|
+
from ....types.v0.status import request_get_params
|
|
21
|
+
from ....types.v0.status.request_get_response import RequestGetResponse
|
|
22
22
|
|
|
23
23
|
__all__ = ["RequestResource", "AsyncRequestResource"]
|
|
24
24
|
|
|
@@ -69,7 +69,7 @@ class RequestResource(SyncAPIResource):
|
|
|
69
69
|
timeout: Override the client-level default timeout for this request, in seconds
|
|
70
70
|
"""
|
|
71
71
|
return self._get(
|
|
72
|
-
"/api/
|
|
72
|
+
"/api/v0/status/request",
|
|
73
73
|
options=make_request_options(
|
|
74
74
|
extra_headers=extra_headers,
|
|
75
75
|
extra_query=extra_query,
|
|
@@ -127,7 +127,7 @@ class AsyncRequestResource(AsyncAPIResource):
|
|
|
127
127
|
timeout: Override the client-level default timeout for this request, in seconds
|
|
128
128
|
"""
|
|
129
129
|
return await self._get(
|
|
130
|
-
"/api/
|
|
130
|
+
"/api/v0/status/request",
|
|
131
131
|
options=make_request_options(
|
|
132
132
|
extra_headers=extra_headers,
|
|
133
133
|
extra_query=extra_query,
|
|
@@ -21,10 +21,10 @@ from .memories.memories import (
|
|
|
21
21
|
AsyncMemoriesResourceWithStreamingResponse,
|
|
22
22
|
)
|
|
23
23
|
|
|
24
|
-
__all__ = ["
|
|
24
|
+
__all__ = ["V0Resource", "AsyncV0Resource"]
|
|
25
25
|
|
|
26
26
|
|
|
27
|
-
class
|
|
27
|
+
class V0Resource(SyncAPIResource):
|
|
28
28
|
@cached_property
|
|
29
29
|
def memories(self) -> MemoriesResource:
|
|
30
30
|
return MemoriesResource(self._client)
|
|
@@ -34,26 +34,26 @@ class V1Resource(SyncAPIResource):
|
|
|
34
34
|
return StatusResource(self._client)
|
|
35
35
|
|
|
36
36
|
@cached_property
|
|
37
|
-
def with_raw_response(self) ->
|
|
37
|
+
def with_raw_response(self) -> V0ResourceWithRawResponse:
|
|
38
38
|
"""
|
|
39
39
|
This property can be used as a prefix for any HTTP method call to return
|
|
40
40
|
the raw response object instead of the parsed content.
|
|
41
41
|
|
|
42
42
|
For more information, see https://www.github.com/evermemos/evermemos-python#accessing-raw-response-data-eg-headers
|
|
43
43
|
"""
|
|
44
|
-
return
|
|
44
|
+
return V0ResourceWithRawResponse(self)
|
|
45
45
|
|
|
46
46
|
@cached_property
|
|
47
|
-
def with_streaming_response(self) ->
|
|
47
|
+
def with_streaming_response(self) -> V0ResourceWithStreamingResponse:
|
|
48
48
|
"""
|
|
49
49
|
An alternative to `.with_raw_response` that doesn't eagerly read the response body.
|
|
50
50
|
|
|
51
51
|
For more information, see https://www.github.com/evermemos/evermemos-python#with_streaming_response
|
|
52
52
|
"""
|
|
53
|
-
return
|
|
53
|
+
return V0ResourceWithStreamingResponse(self)
|
|
54
54
|
|
|
55
55
|
|
|
56
|
-
class
|
|
56
|
+
class AsyncV0Resource(AsyncAPIResource):
|
|
57
57
|
@cached_property
|
|
58
58
|
def memories(self) -> AsyncMemoriesResource:
|
|
59
59
|
return AsyncMemoriesResource(self._client)
|
|
@@ -63,72 +63,72 @@ class AsyncV1Resource(AsyncAPIResource):
|
|
|
63
63
|
return AsyncStatusResource(self._client)
|
|
64
64
|
|
|
65
65
|
@cached_property
|
|
66
|
-
def with_raw_response(self) ->
|
|
66
|
+
def with_raw_response(self) -> AsyncV0ResourceWithRawResponse:
|
|
67
67
|
"""
|
|
68
68
|
This property can be used as a prefix for any HTTP method call to return
|
|
69
69
|
the raw response object instead of the parsed content.
|
|
70
70
|
|
|
71
71
|
For more information, see https://www.github.com/evermemos/evermemos-python#accessing-raw-response-data-eg-headers
|
|
72
72
|
"""
|
|
73
|
-
return
|
|
73
|
+
return AsyncV0ResourceWithRawResponse(self)
|
|
74
74
|
|
|
75
75
|
@cached_property
|
|
76
|
-
def with_streaming_response(self) ->
|
|
76
|
+
def with_streaming_response(self) -> AsyncV0ResourceWithStreamingResponse:
|
|
77
77
|
"""
|
|
78
78
|
An alternative to `.with_raw_response` that doesn't eagerly read the response body.
|
|
79
79
|
|
|
80
80
|
For more information, see https://www.github.com/evermemos/evermemos-python#with_streaming_response
|
|
81
81
|
"""
|
|
82
|
-
return
|
|
82
|
+
return AsyncV0ResourceWithStreamingResponse(self)
|
|
83
83
|
|
|
84
84
|
|
|
85
|
-
class
|
|
86
|
-
def __init__(self,
|
|
87
|
-
self.
|
|
85
|
+
class V0ResourceWithRawResponse:
|
|
86
|
+
def __init__(self, v0: V0Resource) -> None:
|
|
87
|
+
self._v0 = v0
|
|
88
88
|
|
|
89
89
|
@cached_property
|
|
90
90
|
def memories(self) -> MemoriesResourceWithRawResponse:
|
|
91
|
-
return MemoriesResourceWithRawResponse(self.
|
|
91
|
+
return MemoriesResourceWithRawResponse(self._v0.memories)
|
|
92
92
|
|
|
93
93
|
@cached_property
|
|
94
94
|
def status(self) -> StatusResourceWithRawResponse:
|
|
95
|
-
return StatusResourceWithRawResponse(self.
|
|
95
|
+
return StatusResourceWithRawResponse(self._v0.status)
|
|
96
96
|
|
|
97
97
|
|
|
98
|
-
class
|
|
99
|
-
def __init__(self,
|
|
100
|
-
self.
|
|
98
|
+
class AsyncV0ResourceWithRawResponse:
|
|
99
|
+
def __init__(self, v0: AsyncV0Resource) -> None:
|
|
100
|
+
self._v0 = v0
|
|
101
101
|
|
|
102
102
|
@cached_property
|
|
103
103
|
def memories(self) -> AsyncMemoriesResourceWithRawResponse:
|
|
104
|
-
return AsyncMemoriesResourceWithRawResponse(self.
|
|
104
|
+
return AsyncMemoriesResourceWithRawResponse(self._v0.memories)
|
|
105
105
|
|
|
106
106
|
@cached_property
|
|
107
107
|
def status(self) -> AsyncStatusResourceWithRawResponse:
|
|
108
|
-
return AsyncStatusResourceWithRawResponse(self.
|
|
108
|
+
return AsyncStatusResourceWithRawResponse(self._v0.status)
|
|
109
109
|
|
|
110
110
|
|
|
111
|
-
class
|
|
112
|
-
def __init__(self,
|
|
113
|
-
self.
|
|
111
|
+
class V0ResourceWithStreamingResponse:
|
|
112
|
+
def __init__(self, v0: V0Resource) -> None:
|
|
113
|
+
self._v0 = v0
|
|
114
114
|
|
|
115
115
|
@cached_property
|
|
116
116
|
def memories(self) -> MemoriesResourceWithStreamingResponse:
|
|
117
|
-
return MemoriesResourceWithStreamingResponse(self.
|
|
117
|
+
return MemoriesResourceWithStreamingResponse(self._v0.memories)
|
|
118
118
|
|
|
119
119
|
@cached_property
|
|
120
120
|
def status(self) -> StatusResourceWithStreamingResponse:
|
|
121
|
-
return StatusResourceWithStreamingResponse(self.
|
|
121
|
+
return StatusResourceWithStreamingResponse(self._v0.status)
|
|
122
122
|
|
|
123
123
|
|
|
124
|
-
class
|
|
125
|
-
def __init__(self,
|
|
126
|
-
self.
|
|
124
|
+
class AsyncV0ResourceWithStreamingResponse:
|
|
125
|
+
def __init__(self, v0: AsyncV0Resource) -> None:
|
|
126
|
+
self._v0 = v0
|
|
127
127
|
|
|
128
128
|
@cached_property
|
|
129
129
|
def memories(self) -> AsyncMemoriesResourceWithStreamingResponse:
|
|
130
|
-
return AsyncMemoriesResourceWithStreamingResponse(self.
|
|
130
|
+
return AsyncMemoriesResourceWithStreamingResponse(self._v0.memories)
|
|
131
131
|
|
|
132
132
|
@cached_property
|
|
133
133
|
def status(self) -> AsyncStatusResourceWithStreamingResponse:
|
|
134
|
-
return AsyncStatusResourceWithStreamingResponse(self.
|
|
134
|
+
return AsyncStatusResourceWithStreamingResponse(self._v0.status)
|
|
@@ -18,7 +18,7 @@ __all__ = [
|
|
|
18
18
|
|
|
19
19
|
class ConversationMetaCreateParams(TypedDict, total=False):
|
|
20
20
|
created_at: Required[str]
|
|
21
|
-
"""Conversation creation time (ISO 8601 format)"""
|
|
21
|
+
"""Conversation creation time (ISO 8601 format with Timezone is required)"""
|
|
22
22
|
|
|
23
23
|
default_timezone: Optional[str]
|
|
24
24
|
"""Default timezone"""
|
|
@@ -15,7 +15,7 @@ class MemoryAddParams(TypedDict, total=False):
|
|
|
15
15
|
"""Message content"""
|
|
16
16
|
|
|
17
17
|
create_time: Required[str]
|
|
18
|
-
"""Message creation time (ISO 8601 format)"""
|
|
18
|
+
"""Message creation time (ISO 8601 format with Timezone is required)"""
|
|
19
19
|
|
|
20
20
|
message_id: Required[str]
|
|
21
21
|
"""Message unique identifier"""
|
|
@@ -12,10 +12,6 @@ __all__ = [
|
|
|
12
12
|
"Result",
|
|
13
13
|
"ResultMemory",
|
|
14
14
|
"ResultMemoryProfileModel",
|
|
15
|
-
"ResultMemoryGlobalUserProfileModel",
|
|
16
|
-
"ResultMemoryCombinedProfileModel",
|
|
17
|
-
"ResultMemoryCombinedProfileModelGlobalProfile",
|
|
18
|
-
"ResultMemoryCombinedProfileModelProfile",
|
|
19
15
|
"ResultMemoryEpisodicMemoryModel",
|
|
20
16
|
"ResultMemoryEventLogModel",
|
|
21
17
|
"ResultMemoryForesightModel",
|
|
@@ -48,78 +44,6 @@ class ResultMemoryProfileModel(BaseModel):
|
|
|
48
44
|
version: Optional[int] = None
|
|
49
45
|
|
|
50
46
|
|
|
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
|
-
|
|
123
47
|
class ResultMemoryEpisodicMemoryModel(BaseModel):
|
|
124
48
|
id: str
|
|
125
49
|
|
|
@@ -241,12 +165,7 @@ class ResultMemoryForesightModel(BaseModel):
|
|
|
241
165
|
|
|
242
166
|
|
|
243
167
|
ResultMemory: TypeAlias = Union[
|
|
244
|
-
ResultMemoryProfileModel,
|
|
245
|
-
ResultMemoryGlobalUserProfileModel,
|
|
246
|
-
ResultMemoryCombinedProfileModel,
|
|
247
|
-
ResultMemoryEpisodicMemoryModel,
|
|
248
|
-
ResultMemoryEventLogModel,
|
|
249
|
-
ResultMemoryForesightModel,
|
|
168
|
+
ResultMemoryProfileModel, ResultMemoryEpisodicMemoryModel, ResultMemoryEventLogModel, ResultMemoryForesightModel
|
|
250
169
|
]
|
|
251
170
|
|
|
252
171
|
|
|
@@ -0,0 +1,196 @@
|
|
|
1
|
+
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
from typing import Dict, List, Union, Optional
|
|
4
|
+
from datetime import datetime
|
|
5
|
+
from typing_extensions import TypeAlias
|
|
6
|
+
|
|
7
|
+
from .metadata import Metadata
|
|
8
|
+
from ..._models import BaseModel
|
|
9
|
+
|
|
10
|
+
__all__ = [
|
|
11
|
+
"MemorySearchResponse",
|
|
12
|
+
"Result",
|
|
13
|
+
"ResultMemory",
|
|
14
|
+
"ResultMemoryEpisodicMemoryModel",
|
|
15
|
+
"ResultMemoryEventLogModel",
|
|
16
|
+
"ResultMemoryForesightModel",
|
|
17
|
+
"ResultPendingMessage",
|
|
18
|
+
]
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
class ResultMemoryEpisodicMemoryModel(BaseModel):
|
|
22
|
+
id: str
|
|
23
|
+
|
|
24
|
+
episode_id: str
|
|
25
|
+
|
|
26
|
+
user_id: str
|
|
27
|
+
|
|
28
|
+
created_at: Optional[datetime] = None
|
|
29
|
+
|
|
30
|
+
end_time: Optional[datetime] = None
|
|
31
|
+
|
|
32
|
+
episode: Optional[str] = None
|
|
33
|
+
|
|
34
|
+
extend: Optional[Dict[str, object]] = None
|
|
35
|
+
|
|
36
|
+
group_id: Optional[str] = None
|
|
37
|
+
|
|
38
|
+
group_name: Optional[str] = None
|
|
39
|
+
|
|
40
|
+
keywords: Optional[List[str]] = None
|
|
41
|
+
|
|
42
|
+
location: Optional[str] = None
|
|
43
|
+
|
|
44
|
+
metadata: Optional[Metadata] = None
|
|
45
|
+
|
|
46
|
+
parent_id: Optional[str] = None
|
|
47
|
+
|
|
48
|
+
parent_type: Optional[str] = None
|
|
49
|
+
|
|
50
|
+
participants: Optional[List[str]] = None
|
|
51
|
+
|
|
52
|
+
start_time: Optional[datetime] = None
|
|
53
|
+
|
|
54
|
+
subject: Optional[str] = None
|
|
55
|
+
|
|
56
|
+
summary: Optional[str] = None
|
|
57
|
+
|
|
58
|
+
timestamp: Optional[datetime] = None
|
|
59
|
+
|
|
60
|
+
updated_at: Optional[datetime] = None
|
|
61
|
+
|
|
62
|
+
|
|
63
|
+
class ResultMemoryEventLogModel(BaseModel):
|
|
64
|
+
id: str
|
|
65
|
+
|
|
66
|
+
atomic_fact: str
|
|
67
|
+
|
|
68
|
+
parent_id: str
|
|
69
|
+
|
|
70
|
+
parent_type: str
|
|
71
|
+
|
|
72
|
+
timestamp: datetime
|
|
73
|
+
|
|
74
|
+
user_id: str
|
|
75
|
+
|
|
76
|
+
created_at: Optional[datetime] = None
|
|
77
|
+
|
|
78
|
+
event_type: Optional[str] = None
|
|
79
|
+
|
|
80
|
+
extend: Optional[Dict[str, object]] = None
|
|
81
|
+
|
|
82
|
+
group_id: Optional[str] = None
|
|
83
|
+
|
|
84
|
+
group_name: Optional[str] = None
|
|
85
|
+
|
|
86
|
+
metadata: Optional[Metadata] = None
|
|
87
|
+
|
|
88
|
+
participants: Optional[List[str]] = None
|
|
89
|
+
|
|
90
|
+
updated_at: Optional[datetime] = None
|
|
91
|
+
|
|
92
|
+
user_name: Optional[str] = None
|
|
93
|
+
|
|
94
|
+
vector: Optional[List[float]] = None
|
|
95
|
+
|
|
96
|
+
vector_model: Optional[str] = None
|
|
97
|
+
|
|
98
|
+
|
|
99
|
+
class ResultMemoryForesightModel(BaseModel):
|
|
100
|
+
id: str
|
|
101
|
+
|
|
102
|
+
content: str
|
|
103
|
+
|
|
104
|
+
foresight: str
|
|
105
|
+
|
|
106
|
+
parent_id: str
|
|
107
|
+
|
|
108
|
+
parent_type: str
|
|
109
|
+
|
|
110
|
+
created_at: Optional[datetime] = None
|
|
111
|
+
|
|
112
|
+
duration_days: Optional[int] = None
|
|
113
|
+
|
|
114
|
+
end_time: Optional[str] = None
|
|
115
|
+
|
|
116
|
+
evidence: Optional[str] = None
|
|
117
|
+
|
|
118
|
+
extend: Optional[Dict[str, object]] = None
|
|
119
|
+
|
|
120
|
+
group_id: Optional[str] = None
|
|
121
|
+
|
|
122
|
+
group_name: Optional[str] = None
|
|
123
|
+
|
|
124
|
+
metadata: Optional[Metadata] = None
|
|
125
|
+
|
|
126
|
+
participants: Optional[List[str]] = None
|
|
127
|
+
|
|
128
|
+
start_time: Optional[str] = None
|
|
129
|
+
|
|
130
|
+
updated_at: Optional[datetime] = None
|
|
131
|
+
|
|
132
|
+
user_id: Optional[str] = None
|
|
133
|
+
|
|
134
|
+
user_name: Optional[str] = None
|
|
135
|
+
|
|
136
|
+
vector: Optional[List[float]] = None
|
|
137
|
+
|
|
138
|
+
vector_model: Optional[str] = None
|
|
139
|
+
|
|
140
|
+
|
|
141
|
+
ResultMemory: TypeAlias = Union[ResultMemoryEpisodicMemoryModel, ResultMemoryEventLogModel, ResultMemoryForesightModel]
|
|
142
|
+
|
|
143
|
+
|
|
144
|
+
class ResultPendingMessage(BaseModel):
|
|
145
|
+
id: str
|
|
146
|
+
|
|
147
|
+
request_id: str
|
|
148
|
+
|
|
149
|
+
content: Optional[str] = None
|
|
150
|
+
|
|
151
|
+
created_at: Optional[str] = None
|
|
152
|
+
|
|
153
|
+
group_id: Optional[str] = None
|
|
154
|
+
|
|
155
|
+
group_name: Optional[str] = None
|
|
156
|
+
|
|
157
|
+
message_create_time: Optional[str] = None
|
|
158
|
+
|
|
159
|
+
message_id: Optional[str] = None
|
|
160
|
+
|
|
161
|
+
refer_list: Optional[List[str]] = None
|
|
162
|
+
|
|
163
|
+
sender: Optional[str] = None
|
|
164
|
+
|
|
165
|
+
sender_name: Optional[str] = None
|
|
166
|
+
|
|
167
|
+
updated_at: Optional[str] = None
|
|
168
|
+
|
|
169
|
+
user_id: Optional[str] = None
|
|
170
|
+
|
|
171
|
+
|
|
172
|
+
class Result(BaseModel):
|
|
173
|
+
"""Memory search result"""
|
|
174
|
+
|
|
175
|
+
has_more: Optional[bool] = None
|
|
176
|
+
|
|
177
|
+
memories: Optional[List[ResultMemory]] = None
|
|
178
|
+
|
|
179
|
+
metadata: Optional[Metadata] = None
|
|
180
|
+
|
|
181
|
+
pending_messages: Optional[List[ResultPendingMessage]] = None
|
|
182
|
+
|
|
183
|
+
query_metadata: Optional[Metadata] = None
|
|
184
|
+
|
|
185
|
+
total_count: Optional[int] = None
|
|
186
|
+
|
|
187
|
+
|
|
188
|
+
class MemorySearchResponse(BaseModel):
|
|
189
|
+
result: Result
|
|
190
|
+
"""Memory search result"""
|
|
191
|
+
|
|
192
|
+
message: Optional[str] = None
|
|
193
|
+
"""Response message"""
|
|
194
|
+
|
|
195
|
+
status: Optional[str] = None
|
|
196
|
+
"""Response status"""
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.3
|
|
2
2
|
Name: evermemos
|
|
3
|
-
Version: 0.3.
|
|
3
|
+
Version: 0.3.11
|
|
4
4
|
Summary: The official Python library for the EverMemOS API
|
|
5
5
|
Project-URL: Homepage, https://github.com/evermemos/evermemos-python
|
|
6
6
|
Project-URL: Repository, https://github.com/evermemos/evermemos-python
|
|
@@ -67,7 +67,7 @@ client = EverMemOS(
|
|
|
67
67
|
api_key=os.environ.get("EVERMEMOS_API_KEY"), # This is the default and can be omitted
|
|
68
68
|
)
|
|
69
69
|
|
|
70
|
-
response = client.
|
|
70
|
+
response = client.v0.memories.add(
|
|
71
71
|
content="Let's discuss the technical solution for the new feature today",
|
|
72
72
|
create_time="2025-01-15T10:00:00+00:00",
|
|
73
73
|
message_id="msg_001",
|
|
@@ -96,7 +96,7 @@ client = AsyncEverMemOS(
|
|
|
96
96
|
|
|
97
97
|
|
|
98
98
|
async def main() -> None:
|
|
99
|
-
response = await client.
|
|
99
|
+
response = await client.v0.memories.add(
|
|
100
100
|
content="Let's discuss the technical solution for the new feature today",
|
|
101
101
|
create_time="2025-01-15T10:00:00+00:00",
|
|
102
102
|
message_id="msg_001",
|
|
@@ -135,7 +135,7 @@ async def main() -> None:
|
|
|
135
135
|
api_key=os.environ.get("EVERMEMOS_API_KEY"), # This is the default and can be omitted
|
|
136
136
|
http_client=DefaultAioHttpClient(),
|
|
137
137
|
) as client:
|
|
138
|
-
response = await client.
|
|
138
|
+
response = await client.v0.memories.add(
|
|
139
139
|
content="Let's discuss the technical solution for the new feature today",
|
|
140
140
|
create_time="2025-01-15T10:00:00+00:00",
|
|
141
141
|
message_id="msg_001",
|
|
@@ -165,7 +165,7 @@ from evermemos import EverMemOS
|
|
|
165
165
|
|
|
166
166
|
client = EverMemOS()
|
|
167
167
|
|
|
168
|
-
conversation_meta = client.
|
|
168
|
+
conversation_meta = client.v0.memories.conversation_meta.create(
|
|
169
169
|
created_at="2025-01-15T10:00:00+00:00",
|
|
170
170
|
llm_custom_setting={
|
|
171
171
|
"boundary": {
|
|
@@ -197,7 +197,7 @@ from evermemos import EverMemOS
|
|
|
197
197
|
client = EverMemOS()
|
|
198
198
|
|
|
199
199
|
try:
|
|
200
|
-
client.
|
|
200
|
+
client.v0.memories.add(
|
|
201
201
|
content="Let's discuss the technical solution for the new feature today",
|
|
202
202
|
create_time="2025-01-15T10:00:00+00:00",
|
|
203
203
|
message_id="msg_001",
|
|
@@ -245,7 +245,7 @@ client = EverMemOS(
|
|
|
245
245
|
)
|
|
246
246
|
|
|
247
247
|
# Or, configure per-request:
|
|
248
|
-
client.with_options(max_retries=5).
|
|
248
|
+
client.with_options(max_retries=5).v0.memories.add(
|
|
249
249
|
content="Let's discuss the technical solution for the new feature today",
|
|
250
250
|
create_time="2025-01-15T10:00:00+00:00",
|
|
251
251
|
message_id="msg_001",
|
|
@@ -273,7 +273,7 @@ client = EverMemOS(
|
|
|
273
273
|
)
|
|
274
274
|
|
|
275
275
|
# Override per-request:
|
|
276
|
-
client.with_options(timeout=5.0).
|
|
276
|
+
client.with_options(timeout=5.0).v0.memories.add(
|
|
277
277
|
content="Let's discuss the technical solution for the new feature today",
|
|
278
278
|
create_time="2025-01-15T10:00:00+00:00",
|
|
279
279
|
message_id="msg_001",
|
|
@@ -319,7 +319,7 @@ The "raw" Response object can be accessed by prefixing `.with_raw_response.` to
|
|
|
319
319
|
from evermemos import EverMemOS
|
|
320
320
|
|
|
321
321
|
client = EverMemOS()
|
|
322
|
-
response = client.
|
|
322
|
+
response = client.v0.memories.with_raw_response.add(
|
|
323
323
|
content="Let's discuss the technical solution for the new feature today",
|
|
324
324
|
create_time="2025-01-15T10:00:00+00:00",
|
|
325
325
|
message_id="msg_001",
|
|
@@ -327,7 +327,7 @@ response = client.v1.memories.with_raw_response.add(
|
|
|
327
327
|
)
|
|
328
328
|
print(response.headers.get('X-My-Header'))
|
|
329
329
|
|
|
330
|
-
memory = response.parse() # get the object that `
|
|
330
|
+
memory = response.parse() # get the object that `v0.memories.add()` would have returned
|
|
331
331
|
print(memory.request_id)
|
|
332
332
|
```
|
|
333
333
|
|
|
@@ -342,7 +342,7 @@ The above interface eagerly reads the full response body when you make the reque
|
|
|
342
342
|
To stream the response body, use `.with_streaming_response` instead, which requires a context manager and only reads the response body once you call `.read()`, `.text()`, `.json()`, `.iter_bytes()`, `.iter_text()`, `.iter_lines()` or `.parse()`. In the async client, these are async methods.
|
|
343
343
|
|
|
344
344
|
```python
|
|
345
|
-
with client.
|
|
345
|
+
with client.v0.memories.with_streaming_response.add(
|
|
346
346
|
content="Let's discuss the technical solution for the new feature today",
|
|
347
347
|
create_time="2025-01-15T10:00:00+00:00",
|
|
348
348
|
message_id="msg_001",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
evermemos/__init__.py,sha256=KBOrZ3feocb96vpzs9P3zV9dab2W2G7Ml9ZqHLi2b4M,2692
|
|
2
2
|
evermemos/_base_client.py,sha256=LB3mlONfbWuCbGi5awq1sxDBRwmUtdVDYovCpSocpRE,73661
|
|
3
|
-
evermemos/_client.py,sha256=
|
|
3
|
+
evermemos/_client.py,sha256=CX7KfzvRed67zNh4vuyjRDQyYAOjlsYK_DPTSqktsYQ,16053
|
|
4
4
|
evermemos/_compat.py,sha256=teO44AYozpv2wFRrUi7brcZfGPpFSERQZ4fcdX6zVvs,6627
|
|
5
5
|
evermemos/_constants.py,sha256=S14PFzyN9-I31wiV7SmIlL5Ga0MLHxdvegInGdXH7tM,462
|
|
6
6
|
evermemos/_exceptions.py,sha256=XX3IGqJnn7oZAfPyS329GI4XAwJSZc5SsPnhg50cNq4,3226
|
|
@@ -11,7 +11,7 @@ evermemos/_resource.py,sha256=4q9tJ95WlH41fbOaDBFQk9arvUwP1aLFqGk4SAujrR8,1118
|
|
|
11
11
|
evermemos/_response.py,sha256=MLm_f8qKFHHe8UR0gdvp_alnLS61OqNrt3McWdBJIJA,28806
|
|
12
12
|
evermemos/_streaming.py,sha256=guEiLN0kAodVFFETj4gPE8fgof4fYFoIZRxzYDL-81Y,10233
|
|
13
13
|
evermemos/_types.py,sha256=Ue_eCWn1Lxlih_CAV4Mkx_pUiD3j29VPhHPF39l43Sg,7597
|
|
14
|
-
evermemos/_version.py,sha256=
|
|
14
|
+
evermemos/_version.py,sha256=HVeue2AOAAhCQ0TaoWP1uAPAyGUQGY4KSswHIzsarhM,162
|
|
15
15
|
evermemos/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
16
16
|
evermemos/_utils/__init__.py,sha256=7fch0GT9zpNnErbciSpUNa-SjTxxjY6kxHxKMOM4AGs,2305
|
|
17
17
|
evermemos/_utils/_compat.py,sha256=D8gtAvjJQrDWt9upS0XaG9Rr5l1QhiAx_I_1utT_tt0,1195
|
|
@@ -27,35 +27,35 @@ evermemos/_utils/_transform.py,sha256=NjCzmnfqYrsAikUHQig6N9QfuTVbKipuP3ur9mcNF-
|
|
|
27
27
|
evermemos/_utils/_typing.py,sha256=N_5PPuFNsaygbtA_npZd98SVN1LQQvFTKL6bkWPBZGU,4786
|
|
28
28
|
evermemos/_utils/_utils.py,sha256=ugfUaneOK7I8h9b3656flwf5u_kthY0gvNuqvgOLoSU,12252
|
|
29
29
|
evermemos/lib/.keep,sha256=wuNrz-5SXo3jJaJOJgz4vFHM41YH_g20F5cRQo0vLes,224
|
|
30
|
-
evermemos/resources/__init__.py,sha256=
|
|
31
|
-
evermemos/resources/
|
|
32
|
-
evermemos/resources/
|
|
33
|
-
evermemos/resources/
|
|
34
|
-
evermemos/resources/
|
|
35
|
-
evermemos/resources/
|
|
36
|
-
evermemos/resources/
|
|
37
|
-
evermemos/resources/
|
|
38
|
-
evermemos/resources/
|
|
30
|
+
evermemos/resources/__init__.py,sha256=KdZ1_fLG-VRWR8qT9sv70MGBAHAoy0lvmZEh1N-vPDM,500
|
|
31
|
+
evermemos/resources/v0/__init__.py,sha256=GZ5reoqh3bTagJD9VJkQ2RPEcQI4nSQyt6J87UFhClQ,1426
|
|
32
|
+
evermemos/resources/v0/v0.py,sha256=c-xeGYsbUuyGXnVzhu-v_cFjMBtxBnX-Zk0w-2p23ZI,4590
|
|
33
|
+
evermemos/resources/v0/memories/__init__.py,sha256=8oz2uuhvRKyX7LSyLyfjrvBCjuP3LrVmKmfn_U_WdqM,1159
|
|
34
|
+
evermemos/resources/v0/memories/conversation_meta.py,sha256=OFE7lqdF8Liygbaabf4A7FCtkI3gQngV6WIkXES9MDI,21008
|
|
35
|
+
evermemos/resources/v0/memories/memories.py,sha256=gcPLf-kZfGYzd-ilSRsM4uTpzSv6hPENHNVPfY-e4vQ,20063
|
|
36
|
+
evermemos/resources/v0/status/__init__.py,sha256=i-QV1kCmCclFwWgF1JVJsbSCdW6cSRrkyKTtV_BMTwM,1015
|
|
37
|
+
evermemos/resources/v0/status/request.py,sha256=Xj-GCKnH5_53c6DZUgD1mRdsgTsyZUQmDfAd-2D3mAg,6261
|
|
38
|
+
evermemos/resources/v0/status/status.py,sha256=N3WA3ggiWiFTTSqtOg2Meo6r2knqqO7J5YR0hQjeSWw,3638
|
|
39
39
|
evermemos/types/__init__.py,sha256=OKfJYcKb4NObdiRObqJV_dOyDQ8feXekDUge2o_4pXQ,122
|
|
40
|
-
evermemos/types/
|
|
41
|
-
evermemos/types/
|
|
42
|
-
evermemos/types/
|
|
43
|
-
evermemos/types/
|
|
44
|
-
evermemos/types/
|
|
45
|
-
evermemos/types/
|
|
46
|
-
evermemos/types/
|
|
47
|
-
evermemos/types/
|
|
48
|
-
evermemos/types/
|
|
49
|
-
evermemos/types/
|
|
50
|
-
evermemos/types/
|
|
51
|
-
evermemos/types/
|
|
52
|
-
evermemos/types/
|
|
53
|
-
evermemos/types/
|
|
54
|
-
evermemos/types/
|
|
55
|
-
evermemos/types/
|
|
56
|
-
evermemos/types/
|
|
57
|
-
evermemos/types/
|
|
58
|
-
evermemos-0.3.
|
|
59
|
-
evermemos-0.3.
|
|
60
|
-
evermemos-0.3.
|
|
61
|
-
evermemos-0.3.
|
|
40
|
+
evermemos/types/v0/__init__.py,sha256=r28bDjt7ATwvsf76oYquk2xMnwd6MKnG-Cl8pDbMjH4,663
|
|
41
|
+
evermemos/types/v0/memory_add_params.py,sha256=bIpmX-USOZjX_uOOisz3_lQ6wYmyLsR4h2fyB_2CE3Q,1556
|
|
42
|
+
evermemos/types/v0/memory_add_response.py,sha256=1UrR2mdiXFm9KPZV_bz6-v8rF99g8_iGSZxEEQ0mqoY,246
|
|
43
|
+
evermemos/types/v0/memory_delete_params.py,sha256=5zhPgDkehYv_A8q-tUie_gHH4II2C7S_metSscagc6M,639
|
|
44
|
+
evermemos/types/v0/memory_delete_response.py,sha256=bPE0iGF9ZHukKn1k4ypkVEAkw-l9YDYtxeeZ55eNXTc,638
|
|
45
|
+
evermemos/types/v0/memory_get_response.py,sha256=yzkIQLgGLA-Zit6R_0-gMxDUwtsRkdFuOyhql9ZYLXQ,3687
|
|
46
|
+
evermemos/types/v0/memory_search_response.py,sha256=YhF5IvDkkK2EK9JjhPYClabbRILuPceaR2touAXAZ7E,3790
|
|
47
|
+
evermemos/types/v0/memory_type.py,sha256=J6Ojgl45dHWxTyR668QyAt6somaquvbjjl7ooqlK0Fw,251
|
|
48
|
+
evermemos/types/v0/metadata.py,sha256=Hu-gdrsH5EZ0mfNKaJjum7xZK0tMtosgXO3X98EdRTo,430
|
|
49
|
+
evermemos/types/v0/memories/__init__.py,sha256=WAXGVPS8gSSay4bXYizkjs14kDnDNKxD-ShtVdqnEFA,662
|
|
50
|
+
evermemos/types/v0/memories/conversation_meta_create_params.py,sha256=etHj82Xl7x7accRlB-RPNVulltxvKycldq-hXNQL9Ug,4064
|
|
51
|
+
evermemos/types/v0/memories/conversation_meta_create_response.py,sha256=VPMBKVQEOlhvsO2SBl-Bbw1FPNtnSJfw2RsHR5rnqDE,2842
|
|
52
|
+
evermemos/types/v0/memories/conversation_meta_get_response.py,sha256=aFPpiwBqXxu0fQRoToatHvTSGJLqnGEZYA3FGGdFT-E,2824
|
|
53
|
+
evermemos/types/v0/memories/conversation_meta_update_params.py,sha256=UhoaF4F7R4sfxBkw5Sp_-Xw8AV2eL5Akc0Z5iE6BsuE,3182
|
|
54
|
+
evermemos/types/v0/memories/conversation_meta_update_response.py,sha256=7cZMqgo27FiTz1ihWJpg8zfeBnZqK6lwRtQKh8V97Q8,906
|
|
55
|
+
evermemos/types/v0/status/__init__.py,sha256=qLacNLO9z56iP5d5zh32BOG1ot-9ebbny5jNBBrblhc,267
|
|
56
|
+
evermemos/types/v0/status/request_get_params.py,sha256=C8PNetfgiLchG9aR8UgE819ve1oNGqQErVFlMA_6dy8,371
|
|
57
|
+
evermemos/types/v0/status/request_get_response.py,sha256=zeitvwEhGcVgVYFCJi5AXUnl4Uic_93Zmm8z1YrEmUE,500
|
|
58
|
+
evermemos-0.3.11.dist-info/METADATA,sha256=xdSY-U_PKH5qhiEHMQXLj8tiv5piqVzAhOSr3fCjQsQ,15555
|
|
59
|
+
evermemos-0.3.11.dist-info/WHEEL,sha256=C2FUgwZgiLbznR-k0b_5k3Ai_1aASOXDss3lzCUsUug,87
|
|
60
|
+
evermemos-0.3.11.dist-info/licenses/LICENSE,sha256=lTNFvvgo69z4I15AG8OiYYFHk0_wF3bMvN8eH3o7lh4,11339
|
|
61
|
+
evermemos-0.3.11.dist-info/RECORD,,
|
|
@@ -1,104 +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
|
-
from datetime import datetime
|
|
5
|
-
from typing_extensions import Literal
|
|
6
|
-
|
|
7
|
-
from .metadata import Metadata
|
|
8
|
-
from ..._models import BaseModel
|
|
9
|
-
from .memory_type import MemoryType
|
|
10
|
-
|
|
11
|
-
__all__ = ["MemorySearchResponse", "Result", "ResultMemory", "ResultPendingMessage"]
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
class ResultMemory(BaseModel):
|
|
15
|
-
memory_type: MemoryType
|
|
16
|
-
|
|
17
|
-
ori_event_id_list: List[str]
|
|
18
|
-
|
|
19
|
-
timestamp: datetime
|
|
20
|
-
|
|
21
|
-
user_id: str
|
|
22
|
-
|
|
23
|
-
id: Optional[str] = None
|
|
24
|
-
|
|
25
|
-
extend: Optional[Dict[str, object]] = None
|
|
26
|
-
|
|
27
|
-
group_id: Optional[str] = None
|
|
28
|
-
|
|
29
|
-
group_name: Optional[str] = None
|
|
30
|
-
|
|
31
|
-
keywords: Optional[List[str]] = None
|
|
32
|
-
|
|
33
|
-
linked_entities: Optional[List[str]] = None
|
|
34
|
-
|
|
35
|
-
memcell_event_id_list: Optional[List[str]] = None
|
|
36
|
-
|
|
37
|
-
participants: Optional[List[str]] = None
|
|
38
|
-
|
|
39
|
-
type: Optional[Literal["Conversation"]] = None
|
|
40
|
-
|
|
41
|
-
user_name: Optional[str] = None
|
|
42
|
-
|
|
43
|
-
vector: Optional[List[float]] = None
|
|
44
|
-
|
|
45
|
-
vector_model: Optional[str] = None
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
class ResultPendingMessage(BaseModel):
|
|
49
|
-
id: str
|
|
50
|
-
|
|
51
|
-
request_id: str
|
|
52
|
-
|
|
53
|
-
content: Optional[str] = None
|
|
54
|
-
|
|
55
|
-
created_at: Optional[str] = None
|
|
56
|
-
|
|
57
|
-
group_id: Optional[str] = None
|
|
58
|
-
|
|
59
|
-
group_name: Optional[str] = None
|
|
60
|
-
|
|
61
|
-
message_create_time: Optional[str] = None
|
|
62
|
-
|
|
63
|
-
message_id: Optional[str] = None
|
|
64
|
-
|
|
65
|
-
refer_list: Optional[List[str]] = None
|
|
66
|
-
|
|
67
|
-
sender: Optional[str] = None
|
|
68
|
-
|
|
69
|
-
sender_name: Optional[str] = None
|
|
70
|
-
|
|
71
|
-
updated_at: Optional[str] = None
|
|
72
|
-
|
|
73
|
-
user_id: Optional[str] = None
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
class Result(BaseModel):
|
|
77
|
-
"""Memory search result"""
|
|
78
|
-
|
|
79
|
-
has_more: Optional[bool] = None
|
|
80
|
-
|
|
81
|
-
memories: Optional[List[ResultMemory]] = None
|
|
82
|
-
|
|
83
|
-
metadata: Optional[Metadata] = None
|
|
84
|
-
|
|
85
|
-
original_data: Optional[List[Dict[str, object]]] = None
|
|
86
|
-
|
|
87
|
-
pending_messages: Optional[List[ResultPendingMessage]] = None
|
|
88
|
-
|
|
89
|
-
query_metadata: Optional[Metadata] = None
|
|
90
|
-
|
|
91
|
-
scores: Optional[List[float]] = None
|
|
92
|
-
|
|
93
|
-
total_count: Optional[int] = None
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
class MemorySearchResponse(BaseModel):
|
|
97
|
-
result: Result
|
|
98
|
-
"""Memory search result"""
|
|
99
|
-
|
|
100
|
-
message: Optional[str] = None
|
|
101
|
-
"""Response message"""
|
|
102
|
-
|
|
103
|
-
status: Optional[str] = None
|
|
104
|
-
"""Response status"""
|
|
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
|