agenticmem 0.1.2.2__tar.gz → 0.1.2.4__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.
Potentially problematic release.
This version of agenticmem might be problematic. Click here for more details.
- {agenticmem-0.1.2.2 → agenticmem-0.1.2.4}/PKG-INFO +2 -2
- {agenticmem-0.1.2.2 → agenticmem-0.1.2.4}/agenticmem/__init__.py +20 -0
- {agenticmem-0.1.2.2 → agenticmem-0.1.2.4}/agenticmem/client.py +81 -0
- {agenticmem-0.1.2.2 → agenticmem-0.1.2.4}/pyproject.toml +2 -2
- {agenticmem-0.1.2.2 → agenticmem-0.1.2.4}/README.md +0 -0
- {agenticmem-0.1.2.2 → agenticmem-0.1.2.4}/agenticmem/client_utils.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.3
|
|
2
2
|
Name: agenticmem
|
|
3
|
-
Version: 0.1.2.
|
|
3
|
+
Version: 0.1.2.4
|
|
4
4
|
Summary: A Python client for the AgenticMem API
|
|
5
5
|
License: MIT
|
|
6
6
|
Author: AgenticMem Team
|
|
@@ -11,7 +11,7 @@ Classifier: Programming Language :: Python :: 3.10
|
|
|
11
11
|
Classifier: Programming Language :: Python :: 3.11
|
|
12
12
|
Classifier: Programming Language :: Python :: 3.12
|
|
13
13
|
Classifier: Programming Language :: Python :: 3.13
|
|
14
|
-
Requires-Dist: agenticmem-commons (==0.1.3.
|
|
14
|
+
Requires-Dist: agenticmem-commons (==0.1.3.6)
|
|
15
15
|
Requires-Dist: aiohttp (>=3.12.9,<4.0.0)
|
|
16
16
|
Requires-Dist: griffe (==0.48.0)
|
|
17
17
|
Requires-Dist: mkdocstrings[python] (>=0.18.0)
|
|
@@ -22,6 +22,17 @@ from agenticmem_commons.api_schema.retriever_schema import (
|
|
|
22
22
|
SearchInteractionResponse,
|
|
23
23
|
SearchUserProfileResponse,
|
|
24
24
|
)
|
|
25
|
+
from agenticmem_commons.config_schema import (
|
|
26
|
+
StorageConfigTest,
|
|
27
|
+
StorageConfigLocal,
|
|
28
|
+
StorageConfigS3,
|
|
29
|
+
StorageConfigSupabase,
|
|
30
|
+
StorageConfig,
|
|
31
|
+
ProfileExtractorConfig,
|
|
32
|
+
FeedbackAggregatorConfig,
|
|
33
|
+
AgentFeedbackConfig,
|
|
34
|
+
Config,
|
|
35
|
+
)
|
|
25
36
|
|
|
26
37
|
debug = False
|
|
27
38
|
log = None # Set to either 'debug' or 'info', controls console logging
|
|
@@ -44,4 +55,13 @@ __all__ = [
|
|
|
44
55
|
"SearchUserProfileRequest",
|
|
45
56
|
"SearchInteractionResponse",
|
|
46
57
|
"SearchUserProfileResponse",
|
|
58
|
+
"StorageConfigTest",
|
|
59
|
+
"StorageConfigLocal",
|
|
60
|
+
"StorageConfigS3",
|
|
61
|
+
"StorageConfigSupabase",
|
|
62
|
+
"StorageConfig",
|
|
63
|
+
"ProfileExtractorConfig",
|
|
64
|
+
"FeedbackAggregatorConfig",
|
|
65
|
+
"AgentFeedbackConfig",
|
|
66
|
+
"Config",
|
|
47
67
|
]
|
|
@@ -12,6 +12,10 @@ from agenticmem_commons.api_schema.retriever_schema import (
|
|
|
12
12
|
GetInteractionsResponse,
|
|
13
13
|
GetUserProfilesRequest,
|
|
14
14
|
GetUserProfilesResponse,
|
|
15
|
+
GetRawFeedbacksRequest,
|
|
16
|
+
GetRawFeedbacksResponse,
|
|
17
|
+
GetFeedbacksRequest,
|
|
18
|
+
GetFeedbacksResponse,
|
|
15
19
|
)
|
|
16
20
|
|
|
17
21
|
if IS_TEST_ENV:
|
|
@@ -30,6 +34,7 @@ from agenticmem_commons.api_schema.service_schemas import (
|
|
|
30
34
|
DeleteUserInteractionResponse,
|
|
31
35
|
)
|
|
32
36
|
from agenticmem_commons.api_schema.login_schema import Token
|
|
37
|
+
from agenticmem_commons.config_schema import Config
|
|
33
38
|
|
|
34
39
|
|
|
35
40
|
class AgenticMemClient:
|
|
@@ -276,3 +281,79 @@ class AgenticMemClient:
|
|
|
276
281
|
json=request.model_dump(),
|
|
277
282
|
)
|
|
278
283
|
return GetUserProfilesResponse(**response)
|
|
284
|
+
|
|
285
|
+
async def set_config(self, config: Union[Config, dict]) -> dict:
|
|
286
|
+
"""Set configuration for the organization.
|
|
287
|
+
|
|
288
|
+
Args:
|
|
289
|
+
config (Union[Config, dict]): The configuration to set
|
|
290
|
+
|
|
291
|
+
Returns:
|
|
292
|
+
dict: Response containing success status and message
|
|
293
|
+
"""
|
|
294
|
+
if isinstance(config, dict):
|
|
295
|
+
config = Config(**config)
|
|
296
|
+
response = await self._make_async_request(
|
|
297
|
+
"POST",
|
|
298
|
+
"/api/set_config",
|
|
299
|
+
json=config.model_dump(),
|
|
300
|
+
)
|
|
301
|
+
return response
|
|
302
|
+
|
|
303
|
+
async def get_config(self) -> Config:
|
|
304
|
+
"""Get configuration for the organization.
|
|
305
|
+
|
|
306
|
+
Returns:
|
|
307
|
+
Config: The current configuration
|
|
308
|
+
"""
|
|
309
|
+
response = await self._make_async_request(
|
|
310
|
+
"GET",
|
|
311
|
+
"/api/get_config",
|
|
312
|
+
)
|
|
313
|
+
return Config(**response)
|
|
314
|
+
|
|
315
|
+
async def get_raw_feedbacks(
|
|
316
|
+
self,
|
|
317
|
+
request: Optional[Union[GetRawFeedbacksRequest, dict]] = None,
|
|
318
|
+
) -> GetRawFeedbacksResponse:
|
|
319
|
+
"""Get raw feedbacks.
|
|
320
|
+
|
|
321
|
+
Args:
|
|
322
|
+
request (Optional[Union[GetRawFeedbacksRequest, dict]]): The get request, defaults to empty request if None
|
|
323
|
+
|
|
324
|
+
Returns:
|
|
325
|
+
GetRawFeedbacksResponse: Response containing raw feedbacks
|
|
326
|
+
"""
|
|
327
|
+
if request is None:
|
|
328
|
+
request = GetRawFeedbacksRequest()
|
|
329
|
+
elif isinstance(request, dict):
|
|
330
|
+
request = GetRawFeedbacksRequest(**request)
|
|
331
|
+
response = await self._make_async_request(
|
|
332
|
+
"POST",
|
|
333
|
+
"/api/get_raw_feedbacks",
|
|
334
|
+
json=request.model_dump(),
|
|
335
|
+
)
|
|
336
|
+
return GetRawFeedbacksResponse(**response)
|
|
337
|
+
|
|
338
|
+
async def get_feedbacks(
|
|
339
|
+
self,
|
|
340
|
+
request: Optional[Union[GetFeedbacksRequest, dict]] = None,
|
|
341
|
+
) -> GetFeedbacksResponse:
|
|
342
|
+
"""Get feedbacks.
|
|
343
|
+
|
|
344
|
+
Args:
|
|
345
|
+
request (Optional[Union[GetFeedbacksRequest, dict]]): The get request, defaults to empty request if None
|
|
346
|
+
|
|
347
|
+
Returns:
|
|
348
|
+
GetFeedbacksResponse: Response containing feedbacks
|
|
349
|
+
"""
|
|
350
|
+
if request is None:
|
|
351
|
+
request = GetFeedbacksRequest()
|
|
352
|
+
elif isinstance(request, dict):
|
|
353
|
+
request = GetFeedbacksRequest(**request)
|
|
354
|
+
response = await self._make_async_request(
|
|
355
|
+
"POST",
|
|
356
|
+
"/api/get_feedbacks",
|
|
357
|
+
json=request.model_dump(),
|
|
358
|
+
)
|
|
359
|
+
return GetFeedbacksResponse(**response)
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
[tool.poetry]
|
|
2
2
|
name = "agenticmem"
|
|
3
|
-
version = "0.1.2.
|
|
3
|
+
version = "0.1.2.4"
|
|
4
4
|
description = "A Python client for the AgenticMem API"
|
|
5
5
|
authors = ["AgenticMem Team"]
|
|
6
6
|
readme = "README.md"
|
|
@@ -12,7 +12,7 @@ python = "^3.10"
|
|
|
12
12
|
requests = "^2.25.0"
|
|
13
13
|
pydantic = "^2.0.0"
|
|
14
14
|
python-dateutil = "^2.8.0"
|
|
15
|
-
agenticmem-commons = "0.1.3.
|
|
15
|
+
agenticmem-commons = "0.1.3.6"
|
|
16
16
|
mkdocstrings = {version = ">=0.18.0", extras = ["python"]}
|
|
17
17
|
griffe = "0.48.0"
|
|
18
18
|
aiohttp = "^3.12.9"
|
|
File without changes
|
|
File without changes
|