agenticmem 0.1.2.2__py3-none-any.whl → 0.1.2.4__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.

Potentially problematic release.


This version of agenticmem might be problematic. Click here for more details.

agenticmem/__init__.py CHANGED
@@ -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
  ]
agenticmem/client.py CHANGED
@@ -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
  Metadata-Version: 2.3
2
2
  Name: agenticmem
3
- Version: 0.1.2.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.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)
@@ -0,0 +1,6 @@
1
+ agenticmem/__init__.py,sha256=g5Xq7CEO4d7jIxkGRQg4z71MFQmL2UMeJtnP9GoMzAY,1714
2
+ agenticmem/client.py,sha256=xz7eG4o0JrMq0LjvHlAIHjZnjuaOq2k5wsqixi8cLuk,12007
3
+ agenticmem/client_utils.py,sha256=kWTWlyO7s768v38ef41nRDq87Qmb60NX2vmZTVlCB6g,297
4
+ agenticmem-0.1.2.4.dist-info/METADATA,sha256=swSTv3f58QaaSZm-MbKQdjgbDDrJ9lFIW2ZgaLL_eSg,4461
5
+ agenticmem-0.1.2.4.dist-info/WHEEL,sha256=fGIA9gx4Qxk2KDKeNJCbOEwSrmLtjWCwzBz351GyrPQ,88
6
+ agenticmem-0.1.2.4.dist-info/RECORD,,
@@ -1,6 +0,0 @@
1
- agenticmem/__init__.py,sha256=zjj8VIn65S5NzJZV64IUG8G1p0J-9SYBJJMSof8mDU8,1229
2
- agenticmem/client.py,sha256=lCRxsRZYfz29Kz44n-ebaFigq7pWhSS5LTI48_c_-vM,9424
3
- agenticmem/client_utils.py,sha256=kWTWlyO7s768v38ef41nRDq87Qmb60NX2vmZTVlCB6g,297
4
- agenticmem-0.1.2.2.dist-info/METADATA,sha256=lh9d1fllOF57avvH3W0nBh4Oc_it1NvKWoBO_zkuqME,4461
5
- agenticmem-0.1.2.2.dist-info/WHEEL,sha256=fGIA9gx4Qxk2KDKeNJCbOEwSrmLtjWCwzBz351GyrPQ,88
6
- agenticmem-0.1.2.2.dist-info/RECORD,,