usecortex-ai 0.2.2__py3-none-any.whl → 0.3.0__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.
- usecortex_ai/client.py +80 -6
- usecortex_ai/core/client_wrapper.py +8 -6
- usecortex_ai/document/client.py +4 -4
- usecortex_ai/document/raw_client.py +2 -2
- usecortex_ai/embeddings/client.py +14 -14
- usecortex_ai/embeddings/raw_client.py +10 -10
- usecortex_ai/fetch/client.py +2 -12
- usecortex_ai/fetch/raw_client.py +0 -10
- usecortex_ai/raw_client.py +90 -0
- usecortex_ai/search/client.py +22 -12
- usecortex_ai/search/raw_client.py +16 -6
- usecortex_ai/sources/client.py +18 -94
- usecortex_ai/sources/raw_client.py +14 -262
- usecortex_ai/tenant/client.py +8 -8
- usecortex_ai/tenant/raw_client.py +2 -2
- usecortex_ai/types/delete_memory_request.py +1 -1
- usecortex_ai/types/markdown_upload_request.py +5 -0
- usecortex_ai/types/sub_tenant_ids_data.py +5 -0
- usecortex_ai/types/tenant_stats.py +2 -2
- usecortex_ai/upload/client.py +122 -62
- usecortex_ai/upload/raw_client.py +90 -30
- usecortex_ai/user/client.py +16 -4
- usecortex_ai/user/raw_client.py +8 -0
- usecortex_ai/user_memory/client.py +36 -26
- usecortex_ai/user_memory/raw_client.py +26 -16
- {usecortex_ai-0.2.2.dist-info → usecortex_ai-0.3.0.dist-info}/METADATA +1 -1
- {usecortex_ai-0.2.2.dist-info → usecortex_ai-0.3.0.dist-info}/RECORD +30 -29
- {usecortex_ai-0.2.2.dist-info → usecortex_ai-0.3.0.dist-info}/WHEEL +0 -0
- {usecortex_ai-0.2.2.dist-info → usecortex_ai-0.3.0.dist-info}/licenses/LICENSE +0 -0
- {usecortex_ai-0.2.2.dist-info → usecortex_ai-0.3.0.dist-info}/top_level.txt +0 -0
|
@@ -52,7 +52,7 @@ class UserMemoryClient:
|
|
|
52
52
|
Unique identifier for the tenant/organization
|
|
53
53
|
|
|
54
54
|
sub_tenant_id : typing.Optional[str]
|
|
55
|
-
Optional sub-tenant identifier
|
|
55
|
+
Optional sub-tenant identifier used to organize data within a tenant. If omitted, the default sub-tenant created during tenant setup will be used.
|
|
56
56
|
|
|
57
57
|
request_options : typing.Optional[RequestOptions]
|
|
58
58
|
Request-specific configuration.
|
|
@@ -67,7 +67,7 @@ class UserMemoryClient:
|
|
|
67
67
|
from usecortex-ai import CortexAI
|
|
68
68
|
|
|
69
69
|
client = CortexAI(token="YOUR_TOKEN", )
|
|
70
|
-
client.user_memory.list_user_memories(tenant_id='
|
|
70
|
+
client.user_memory.list_user_memories(tenant_id='tenant_1234', sub_tenant_id='sub_tenant_4567', )
|
|
71
71
|
"""
|
|
72
72
|
_response = self._raw_client.list_user_memories(
|
|
73
73
|
tenant_id=tenant_id, sub_tenant_id=sub_tenant_id, request_options=request_options
|
|
@@ -100,7 +100,7 @@ class UserMemoryClient:
|
|
|
100
100
|
Unique identifier of the memory to delete
|
|
101
101
|
|
|
102
102
|
sub_tenant_id : typing.Optional[str]
|
|
103
|
-
Optional sub-tenant identifier
|
|
103
|
+
Optional sub-tenant identifier used to organize data within a tenant. If omitted, the default sub-tenant created during tenant setup will be used.
|
|
104
104
|
|
|
105
105
|
request_options : typing.Optional[RequestOptions]
|
|
106
106
|
Request-specific configuration.
|
|
@@ -115,7 +115,7 @@ class UserMemoryClient:
|
|
|
115
115
|
from usecortex-ai import CortexAI
|
|
116
116
|
|
|
117
117
|
client = CortexAI(token="YOUR_TOKEN", )
|
|
118
|
-
client.user_memory.delete_user_memory(tenant_id='
|
|
118
|
+
client.user_memory.delete_user_memory(tenant_id='tenant_1234', memory_id='memory_1234', sub_tenant_id='sub_tenant_4567', )
|
|
119
119
|
"""
|
|
120
120
|
_response = self._raw_client.delete_user_memory(
|
|
121
121
|
tenant_id=tenant_id, memory_id=memory_id, sub_tenant_id=sub_tenant_id, request_options=request_options
|
|
@@ -129,6 +129,7 @@ class UserMemoryClient:
|
|
|
129
129
|
query: str,
|
|
130
130
|
sub_tenant_id: typing.Optional[str] = None,
|
|
131
131
|
max_count: typing.Optional[int] = None,
|
|
132
|
+
user_name: typing.Optional[str] = OMIT,
|
|
132
133
|
request_options: typing.Optional[RequestOptions] = None,
|
|
133
134
|
) -> RetrieveUserMemoryResponse:
|
|
134
135
|
"""
|
|
@@ -150,11 +151,14 @@ class UserMemoryClient:
|
|
|
150
151
|
Search query to find relevant user memories
|
|
151
152
|
|
|
152
153
|
sub_tenant_id : typing.Optional[str]
|
|
153
|
-
Optional sub-tenant identifier
|
|
154
|
+
Optional sub-tenant identifier used to organize data within a tenant. If omitted, the default sub-tenant created during tenant setup will be used.
|
|
154
155
|
|
|
155
156
|
max_count : typing.Optional[int]
|
|
156
157
|
Maximum number of memories to return (default: 5)
|
|
157
158
|
|
|
159
|
+
user_name : typing.Optional[str]
|
|
160
|
+
User's name to enhance personalisation
|
|
161
|
+
|
|
158
162
|
request_options : typing.Optional[RequestOptions]
|
|
159
163
|
Request-specific configuration.
|
|
160
164
|
|
|
@@ -168,13 +172,14 @@ class UserMemoryClient:
|
|
|
168
172
|
from usecortex-ai import CortexAI
|
|
169
173
|
|
|
170
174
|
client = CortexAI(token="YOUR_TOKEN", )
|
|
171
|
-
client.user_memory.retrieve_user_memory(tenant_id='
|
|
175
|
+
client.user_memory.retrieve_user_memory(tenant_id='tenant_1234', sub_tenant_id='sub_tenant_4567', max_count=5, query='Which mode does user prefer', )
|
|
172
176
|
"""
|
|
173
177
|
_response = self._raw_client.retrieve_user_memory(
|
|
174
178
|
tenant_id=tenant_id,
|
|
175
179
|
query=query,
|
|
176
180
|
sub_tenant_id=sub_tenant_id,
|
|
177
181
|
max_count=max_count,
|
|
182
|
+
user_name=user_name,
|
|
178
183
|
request_options=request_options,
|
|
179
184
|
)
|
|
180
185
|
return _response.data
|
|
@@ -183,7 +188,7 @@ class UserMemoryClient:
|
|
|
183
188
|
self,
|
|
184
189
|
*,
|
|
185
190
|
tenant_id: str,
|
|
186
|
-
|
|
191
|
+
user_message: str,
|
|
187
192
|
user_name: str,
|
|
188
193
|
sub_tenant_id: typing.Optional[str] = None,
|
|
189
194
|
request_options: typing.Optional[RequestOptions] = None,
|
|
@@ -203,14 +208,14 @@ class UserMemoryClient:
|
|
|
203
208
|
tenant_id : str
|
|
204
209
|
Unique identifier for the tenant/organization
|
|
205
210
|
|
|
206
|
-
|
|
211
|
+
user_message : str
|
|
207
212
|
Your query or context for AI memory generation
|
|
208
213
|
|
|
209
214
|
user_name : str
|
|
210
215
|
Your name to personalize the generated memories
|
|
211
216
|
|
|
212
217
|
sub_tenant_id : typing.Optional[str]
|
|
213
|
-
Optional sub-tenant identifier
|
|
218
|
+
Optional sub-tenant identifier used to organize data within a tenant. If omitted, the default sub-tenant created during tenant setup will be used.
|
|
214
219
|
|
|
215
220
|
request_options : typing.Optional[RequestOptions]
|
|
216
221
|
Request-specific configuration.
|
|
@@ -225,11 +230,11 @@ class UserMemoryClient:
|
|
|
225
230
|
from usecortex-ai import CortexAI
|
|
226
231
|
|
|
227
232
|
client = CortexAI(token="YOUR_TOKEN", )
|
|
228
|
-
client.user_memory.generate_user_memory(tenant_id='
|
|
233
|
+
client.user_memory.generate_user_memory(tenant_id='tenant_1234', sub_tenant_id='sub_tenant_4567', user_message='I prefer detailed technical explanations and works in the Pacific timezone', user_name='John Doe', )
|
|
229
234
|
"""
|
|
230
235
|
_response = self._raw_client.generate_user_memory(
|
|
231
236
|
tenant_id=tenant_id,
|
|
232
|
-
|
|
237
|
+
user_message=user_message,
|
|
233
238
|
user_name=user_name,
|
|
234
239
|
sub_tenant_id=sub_tenant_id,
|
|
235
240
|
request_options=request_options,
|
|
@@ -263,7 +268,7 @@ class UserMemoryClient:
|
|
|
263
268
|
The memory content to store for future reference
|
|
264
269
|
|
|
265
270
|
sub_tenant_id : typing.Optional[str]
|
|
266
|
-
Optional sub-tenant identifier
|
|
271
|
+
Optional sub-tenant identifier used to organize data within a tenant. If omitted, the default sub-tenant created during tenant setup will be used.
|
|
267
272
|
|
|
268
273
|
request_options : typing.Optional[RequestOptions]
|
|
269
274
|
Request-specific configuration.
|
|
@@ -278,7 +283,7 @@ class UserMemoryClient:
|
|
|
278
283
|
from usecortex-ai import CortexAI
|
|
279
284
|
|
|
280
285
|
client = CortexAI(token="YOUR_TOKEN", )
|
|
281
|
-
client.user_memory.add_user_memory(tenant_id='
|
|
286
|
+
client.user_memory.add_user_memory(tenant_id='tenant_1234', sub_tenant_id='sub_tenant_4567', user_memory='I prefer detailed technical explanations and works in the Pacific timezone', )
|
|
282
287
|
"""
|
|
283
288
|
_response = self._raw_client.add_user_memory(
|
|
284
289
|
tenant_id=tenant_id, user_memory=user_memory, sub_tenant_id=sub_tenant_id, request_options=request_options
|
|
@@ -323,7 +328,7 @@ class AsyncUserMemoryClient:
|
|
|
323
328
|
Unique identifier for the tenant/organization
|
|
324
329
|
|
|
325
330
|
sub_tenant_id : typing.Optional[str]
|
|
326
|
-
Optional sub-tenant identifier
|
|
331
|
+
Optional sub-tenant identifier used to organize data within a tenant. If omitted, the default sub-tenant created during tenant setup will be used.
|
|
327
332
|
|
|
328
333
|
request_options : typing.Optional[RequestOptions]
|
|
329
334
|
Request-specific configuration.
|
|
@@ -341,7 +346,7 @@ class AsyncUserMemoryClient:
|
|
|
341
346
|
|
|
342
347
|
client = AsyncCortexAI(token="YOUR_TOKEN", )
|
|
343
348
|
async def main() -> None:
|
|
344
|
-
await client.user_memory.list_user_memories(tenant_id='
|
|
349
|
+
await client.user_memory.list_user_memories(tenant_id='tenant_1234', sub_tenant_id='sub_tenant_4567', )
|
|
345
350
|
asyncio.run(main())
|
|
346
351
|
"""
|
|
347
352
|
_response = await self._raw_client.list_user_memories(
|
|
@@ -375,7 +380,7 @@ class AsyncUserMemoryClient:
|
|
|
375
380
|
Unique identifier of the memory to delete
|
|
376
381
|
|
|
377
382
|
sub_tenant_id : typing.Optional[str]
|
|
378
|
-
Optional sub-tenant identifier
|
|
383
|
+
Optional sub-tenant identifier used to organize data within a tenant. If omitted, the default sub-tenant created during tenant setup will be used.
|
|
379
384
|
|
|
380
385
|
request_options : typing.Optional[RequestOptions]
|
|
381
386
|
Request-specific configuration.
|
|
@@ -393,7 +398,7 @@ class AsyncUserMemoryClient:
|
|
|
393
398
|
|
|
394
399
|
client = AsyncCortexAI(token="YOUR_TOKEN", )
|
|
395
400
|
async def main() -> None:
|
|
396
|
-
await client.user_memory.delete_user_memory(tenant_id='
|
|
401
|
+
await client.user_memory.delete_user_memory(tenant_id='tenant_1234', memory_id='memory_1234', sub_tenant_id='sub_tenant_4567', )
|
|
397
402
|
asyncio.run(main())
|
|
398
403
|
"""
|
|
399
404
|
_response = await self._raw_client.delete_user_memory(
|
|
@@ -408,6 +413,7 @@ class AsyncUserMemoryClient:
|
|
|
408
413
|
query: str,
|
|
409
414
|
sub_tenant_id: typing.Optional[str] = None,
|
|
410
415
|
max_count: typing.Optional[int] = None,
|
|
416
|
+
user_name: typing.Optional[str] = OMIT,
|
|
411
417
|
request_options: typing.Optional[RequestOptions] = None,
|
|
412
418
|
) -> RetrieveUserMemoryResponse:
|
|
413
419
|
"""
|
|
@@ -429,11 +435,14 @@ class AsyncUserMemoryClient:
|
|
|
429
435
|
Search query to find relevant user memories
|
|
430
436
|
|
|
431
437
|
sub_tenant_id : typing.Optional[str]
|
|
432
|
-
Optional sub-tenant identifier
|
|
438
|
+
Optional sub-tenant identifier used to organize data within a tenant. If omitted, the default sub-tenant created during tenant setup will be used.
|
|
433
439
|
|
|
434
440
|
max_count : typing.Optional[int]
|
|
435
441
|
Maximum number of memories to return (default: 5)
|
|
436
442
|
|
|
443
|
+
user_name : typing.Optional[str]
|
|
444
|
+
User's name to enhance personalisation
|
|
445
|
+
|
|
437
446
|
request_options : typing.Optional[RequestOptions]
|
|
438
447
|
Request-specific configuration.
|
|
439
448
|
|
|
@@ -450,7 +459,7 @@ class AsyncUserMemoryClient:
|
|
|
450
459
|
|
|
451
460
|
client = AsyncCortexAI(token="YOUR_TOKEN", )
|
|
452
461
|
async def main() -> None:
|
|
453
|
-
await client.user_memory.retrieve_user_memory(tenant_id='
|
|
462
|
+
await client.user_memory.retrieve_user_memory(tenant_id='tenant_1234', sub_tenant_id='sub_tenant_4567', max_count=5, query='Which mode does user prefer', )
|
|
454
463
|
asyncio.run(main())
|
|
455
464
|
"""
|
|
456
465
|
_response = await self._raw_client.retrieve_user_memory(
|
|
@@ -458,6 +467,7 @@ class AsyncUserMemoryClient:
|
|
|
458
467
|
query=query,
|
|
459
468
|
sub_tenant_id=sub_tenant_id,
|
|
460
469
|
max_count=max_count,
|
|
470
|
+
user_name=user_name,
|
|
461
471
|
request_options=request_options,
|
|
462
472
|
)
|
|
463
473
|
return _response.data
|
|
@@ -466,7 +476,7 @@ class AsyncUserMemoryClient:
|
|
|
466
476
|
self,
|
|
467
477
|
*,
|
|
468
478
|
tenant_id: str,
|
|
469
|
-
|
|
479
|
+
user_message: str,
|
|
470
480
|
user_name: str,
|
|
471
481
|
sub_tenant_id: typing.Optional[str] = None,
|
|
472
482
|
request_options: typing.Optional[RequestOptions] = None,
|
|
@@ -486,14 +496,14 @@ class AsyncUserMemoryClient:
|
|
|
486
496
|
tenant_id : str
|
|
487
497
|
Unique identifier for the tenant/organization
|
|
488
498
|
|
|
489
|
-
|
|
499
|
+
user_message : str
|
|
490
500
|
Your query or context for AI memory generation
|
|
491
501
|
|
|
492
502
|
user_name : str
|
|
493
503
|
Your name to personalize the generated memories
|
|
494
504
|
|
|
495
505
|
sub_tenant_id : typing.Optional[str]
|
|
496
|
-
Optional sub-tenant identifier
|
|
506
|
+
Optional sub-tenant identifier used to organize data within a tenant. If omitted, the default sub-tenant created during tenant setup will be used.
|
|
497
507
|
|
|
498
508
|
request_options : typing.Optional[RequestOptions]
|
|
499
509
|
Request-specific configuration.
|
|
@@ -511,12 +521,12 @@ class AsyncUserMemoryClient:
|
|
|
511
521
|
|
|
512
522
|
client = AsyncCortexAI(token="YOUR_TOKEN", )
|
|
513
523
|
async def main() -> None:
|
|
514
|
-
await client.user_memory.generate_user_memory(tenant_id='
|
|
524
|
+
await client.user_memory.generate_user_memory(tenant_id='tenant_1234', sub_tenant_id='sub_tenant_4567', user_message='I prefer detailed technical explanations and works in the Pacific timezone', user_name='John Doe', )
|
|
515
525
|
asyncio.run(main())
|
|
516
526
|
"""
|
|
517
527
|
_response = await self._raw_client.generate_user_memory(
|
|
518
528
|
tenant_id=tenant_id,
|
|
519
|
-
|
|
529
|
+
user_message=user_message,
|
|
520
530
|
user_name=user_name,
|
|
521
531
|
sub_tenant_id=sub_tenant_id,
|
|
522
532
|
request_options=request_options,
|
|
@@ -550,7 +560,7 @@ class AsyncUserMemoryClient:
|
|
|
550
560
|
The memory content to store for future reference
|
|
551
561
|
|
|
552
562
|
sub_tenant_id : typing.Optional[str]
|
|
553
|
-
Optional sub-tenant identifier
|
|
563
|
+
Optional sub-tenant identifier used to organize data within a tenant. If omitted, the default sub-tenant created during tenant setup will be used.
|
|
554
564
|
|
|
555
565
|
request_options : typing.Optional[RequestOptions]
|
|
556
566
|
Request-specific configuration.
|
|
@@ -568,7 +578,7 @@ class AsyncUserMemoryClient:
|
|
|
568
578
|
|
|
569
579
|
client = AsyncCortexAI(token="YOUR_TOKEN", )
|
|
570
580
|
async def main() -> None:
|
|
571
|
-
await client.user_memory.add_user_memory(tenant_id='
|
|
581
|
+
await client.user_memory.add_user_memory(tenant_id='tenant_1234', sub_tenant_id='sub_tenant_4567', user_memory='I prefer detailed technical explanations and works in the Pacific timezone', )
|
|
572
582
|
asyncio.run(main())
|
|
573
583
|
"""
|
|
574
584
|
_response = await self._raw_client.add_user_memory(
|
|
@@ -52,7 +52,7 @@ class RawUserMemoryClient:
|
|
|
52
52
|
Unique identifier for the tenant/organization
|
|
53
53
|
|
|
54
54
|
sub_tenant_id : typing.Optional[str]
|
|
55
|
-
Optional sub-tenant identifier
|
|
55
|
+
Optional sub-tenant identifier used to organize data within a tenant. If omitted, the default sub-tenant created during tenant setup will be used.
|
|
56
56
|
|
|
57
57
|
request_options : typing.Optional[RequestOptions]
|
|
58
58
|
Request-specific configuration.
|
|
@@ -189,7 +189,7 @@ class RawUserMemoryClient:
|
|
|
189
189
|
Unique identifier of the memory to delete
|
|
190
190
|
|
|
191
191
|
sub_tenant_id : typing.Optional[str]
|
|
192
|
-
Optional sub-tenant identifier
|
|
192
|
+
Optional sub-tenant identifier used to organize data within a tenant. If omitted, the default sub-tenant created during tenant setup will be used.
|
|
193
193
|
|
|
194
194
|
request_options : typing.Optional[RequestOptions]
|
|
195
195
|
Request-specific configuration.
|
|
@@ -308,6 +308,7 @@ class RawUserMemoryClient:
|
|
|
308
308
|
query: str,
|
|
309
309
|
sub_tenant_id: typing.Optional[str] = None,
|
|
310
310
|
max_count: typing.Optional[int] = None,
|
|
311
|
+
user_name: typing.Optional[str] = OMIT,
|
|
311
312
|
request_options: typing.Optional[RequestOptions] = None,
|
|
312
313
|
) -> HttpResponse[RetrieveUserMemoryResponse]:
|
|
313
314
|
"""
|
|
@@ -329,11 +330,14 @@ class RawUserMemoryClient:
|
|
|
329
330
|
Search query to find relevant user memories
|
|
330
331
|
|
|
331
332
|
sub_tenant_id : typing.Optional[str]
|
|
332
|
-
Optional sub-tenant identifier
|
|
333
|
+
Optional sub-tenant identifier used to organize data within a tenant. If omitted, the default sub-tenant created during tenant setup will be used.
|
|
333
334
|
|
|
334
335
|
max_count : typing.Optional[int]
|
|
335
336
|
Maximum number of memories to return (default: 5)
|
|
336
337
|
|
|
338
|
+
user_name : typing.Optional[str]
|
|
339
|
+
User's name to enhance personalisation
|
|
340
|
+
|
|
337
341
|
request_options : typing.Optional[RequestOptions]
|
|
338
342
|
Request-specific configuration.
|
|
339
343
|
|
|
@@ -352,6 +356,7 @@ class RawUserMemoryClient:
|
|
|
352
356
|
},
|
|
353
357
|
json={
|
|
354
358
|
"query": query,
|
|
359
|
+
"user_name": user_name,
|
|
355
360
|
},
|
|
356
361
|
headers={
|
|
357
362
|
"content-type": "application/json",
|
|
@@ -455,7 +460,7 @@ class RawUserMemoryClient:
|
|
|
455
460
|
self,
|
|
456
461
|
*,
|
|
457
462
|
tenant_id: str,
|
|
458
|
-
|
|
463
|
+
user_message: str,
|
|
459
464
|
user_name: str,
|
|
460
465
|
sub_tenant_id: typing.Optional[str] = None,
|
|
461
466
|
request_options: typing.Optional[RequestOptions] = None,
|
|
@@ -475,14 +480,14 @@ class RawUserMemoryClient:
|
|
|
475
480
|
tenant_id : str
|
|
476
481
|
Unique identifier for the tenant/organization
|
|
477
482
|
|
|
478
|
-
|
|
483
|
+
user_message : str
|
|
479
484
|
Your query or context for AI memory generation
|
|
480
485
|
|
|
481
486
|
user_name : str
|
|
482
487
|
Your name to personalize the generated memories
|
|
483
488
|
|
|
484
489
|
sub_tenant_id : typing.Optional[str]
|
|
485
|
-
Optional sub-tenant identifier
|
|
490
|
+
Optional sub-tenant identifier used to organize data within a tenant. If omitted, the default sub-tenant created during tenant setup will be used.
|
|
486
491
|
|
|
487
492
|
request_options : typing.Optional[RequestOptions]
|
|
488
493
|
Request-specific configuration.
|
|
@@ -500,7 +505,7 @@ class RawUserMemoryClient:
|
|
|
500
505
|
"sub_tenant_id": sub_tenant_id,
|
|
501
506
|
},
|
|
502
507
|
json={
|
|
503
|
-
"
|
|
508
|
+
"user_message": user_message,
|
|
504
509
|
"user_name": user_name,
|
|
505
510
|
},
|
|
506
511
|
headers={
|
|
@@ -628,7 +633,7 @@ class RawUserMemoryClient:
|
|
|
628
633
|
The memory content to store for future reference
|
|
629
634
|
|
|
630
635
|
sub_tenant_id : typing.Optional[str]
|
|
631
|
-
Optional sub-tenant identifier
|
|
636
|
+
Optional sub-tenant identifier used to organize data within a tenant. If omitted, the default sub-tenant created during tenant setup will be used.
|
|
632
637
|
|
|
633
638
|
request_options : typing.Optional[RequestOptions]
|
|
634
639
|
Request-specific configuration.
|
|
@@ -773,7 +778,7 @@ class AsyncRawUserMemoryClient:
|
|
|
773
778
|
Unique identifier for the tenant/organization
|
|
774
779
|
|
|
775
780
|
sub_tenant_id : typing.Optional[str]
|
|
776
|
-
Optional sub-tenant identifier
|
|
781
|
+
Optional sub-tenant identifier used to organize data within a tenant. If omitted, the default sub-tenant created during tenant setup will be used.
|
|
777
782
|
|
|
778
783
|
request_options : typing.Optional[RequestOptions]
|
|
779
784
|
Request-specific configuration.
|
|
@@ -910,7 +915,7 @@ class AsyncRawUserMemoryClient:
|
|
|
910
915
|
Unique identifier of the memory to delete
|
|
911
916
|
|
|
912
917
|
sub_tenant_id : typing.Optional[str]
|
|
913
|
-
Optional sub-tenant identifier
|
|
918
|
+
Optional sub-tenant identifier used to organize data within a tenant. If omitted, the default sub-tenant created during tenant setup will be used.
|
|
914
919
|
|
|
915
920
|
request_options : typing.Optional[RequestOptions]
|
|
916
921
|
Request-specific configuration.
|
|
@@ -1029,6 +1034,7 @@ class AsyncRawUserMemoryClient:
|
|
|
1029
1034
|
query: str,
|
|
1030
1035
|
sub_tenant_id: typing.Optional[str] = None,
|
|
1031
1036
|
max_count: typing.Optional[int] = None,
|
|
1037
|
+
user_name: typing.Optional[str] = OMIT,
|
|
1032
1038
|
request_options: typing.Optional[RequestOptions] = None,
|
|
1033
1039
|
) -> AsyncHttpResponse[RetrieveUserMemoryResponse]:
|
|
1034
1040
|
"""
|
|
@@ -1050,11 +1056,14 @@ class AsyncRawUserMemoryClient:
|
|
|
1050
1056
|
Search query to find relevant user memories
|
|
1051
1057
|
|
|
1052
1058
|
sub_tenant_id : typing.Optional[str]
|
|
1053
|
-
Optional sub-tenant identifier
|
|
1059
|
+
Optional sub-tenant identifier used to organize data within a tenant. If omitted, the default sub-tenant created during tenant setup will be used.
|
|
1054
1060
|
|
|
1055
1061
|
max_count : typing.Optional[int]
|
|
1056
1062
|
Maximum number of memories to return (default: 5)
|
|
1057
1063
|
|
|
1064
|
+
user_name : typing.Optional[str]
|
|
1065
|
+
User's name to enhance personalisation
|
|
1066
|
+
|
|
1058
1067
|
request_options : typing.Optional[RequestOptions]
|
|
1059
1068
|
Request-specific configuration.
|
|
1060
1069
|
|
|
@@ -1073,6 +1082,7 @@ class AsyncRawUserMemoryClient:
|
|
|
1073
1082
|
},
|
|
1074
1083
|
json={
|
|
1075
1084
|
"query": query,
|
|
1085
|
+
"user_name": user_name,
|
|
1076
1086
|
},
|
|
1077
1087
|
headers={
|
|
1078
1088
|
"content-type": "application/json",
|
|
@@ -1176,7 +1186,7 @@ class AsyncRawUserMemoryClient:
|
|
|
1176
1186
|
self,
|
|
1177
1187
|
*,
|
|
1178
1188
|
tenant_id: str,
|
|
1179
|
-
|
|
1189
|
+
user_message: str,
|
|
1180
1190
|
user_name: str,
|
|
1181
1191
|
sub_tenant_id: typing.Optional[str] = None,
|
|
1182
1192
|
request_options: typing.Optional[RequestOptions] = None,
|
|
@@ -1196,14 +1206,14 @@ class AsyncRawUserMemoryClient:
|
|
|
1196
1206
|
tenant_id : str
|
|
1197
1207
|
Unique identifier for the tenant/organization
|
|
1198
1208
|
|
|
1199
|
-
|
|
1209
|
+
user_message : str
|
|
1200
1210
|
Your query or context for AI memory generation
|
|
1201
1211
|
|
|
1202
1212
|
user_name : str
|
|
1203
1213
|
Your name to personalize the generated memories
|
|
1204
1214
|
|
|
1205
1215
|
sub_tenant_id : typing.Optional[str]
|
|
1206
|
-
Optional sub-tenant identifier
|
|
1216
|
+
Optional sub-tenant identifier used to organize data within a tenant. If omitted, the default sub-tenant created during tenant setup will be used.
|
|
1207
1217
|
|
|
1208
1218
|
request_options : typing.Optional[RequestOptions]
|
|
1209
1219
|
Request-specific configuration.
|
|
@@ -1221,7 +1231,7 @@ class AsyncRawUserMemoryClient:
|
|
|
1221
1231
|
"sub_tenant_id": sub_tenant_id,
|
|
1222
1232
|
},
|
|
1223
1233
|
json={
|
|
1224
|
-
"
|
|
1234
|
+
"user_message": user_message,
|
|
1225
1235
|
"user_name": user_name,
|
|
1226
1236
|
},
|
|
1227
1237
|
headers={
|
|
@@ -1349,7 +1359,7 @@ class AsyncRawUserMemoryClient:
|
|
|
1349
1359
|
The memory content to store for future reference
|
|
1350
1360
|
|
|
1351
1361
|
sub_tenant_id : typing.Optional[str]
|
|
1352
|
-
Optional sub-tenant identifier
|
|
1362
|
+
Optional sub-tenant identifier used to organize data within a tenant. If omitted, the default sub-tenant created during tenant setup will be used.
|
|
1353
1363
|
|
|
1354
1364
|
request_options : typing.Optional[RequestOptions]
|
|
1355
1365
|
Request-specific configuration.
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
usecortex_ai/__init__.py,sha256=tBzCBzMXAryjOScjDm-x6rrtntfm64vtwPxctKilwLY,2934
|
|
2
|
-
usecortex_ai/client.py,sha256=
|
|
2
|
+
usecortex_ai/client.py,sha256=i-1RW54MMmplowh9sDAm3W-Nw_mlQyBWHSFmc4XsOKA,9865
|
|
3
3
|
usecortex_ai/environment.py,sha256=IZ0X7CTz4V0TzNaMrw6E5GJklcTLxGJmrWEyH-LtYsc,162
|
|
4
|
+
usecortex_ai/raw_client.py,sha256=Z2zedJhFwHoO_Zmm2enC_s-gd8SM_itaWZOfL0rSobE,3532
|
|
4
5
|
usecortex_ai/core/__init__.py,sha256=lTcqUPXcx4112yLDd70RAPeqq6tu3eFMe1pKOqkW9JQ,1562
|
|
5
6
|
usecortex_ai/core/api_error.py,sha256=44vPoTyWN59gonCIZMdzw7M1uspygiLnr3GNFOoVL2Q,614
|
|
6
|
-
usecortex_ai/core/client_wrapper.py,sha256=
|
|
7
|
+
usecortex_ai/core/client_wrapper.py,sha256=50sko9nNjHmtUmiWiGjJZ3cT9RITCKzfOgvJ55QlwQQ,2681
|
|
7
8
|
usecortex_ai/core/datetime_utils.py,sha256=nBys2IsYrhPdszxGKCNRPSOCwa-5DWOHG95FB8G9PKo,1047
|
|
8
9
|
usecortex_ai/core/file.py,sha256=d4NNbX8XvXP32z8KpK2Xovv33nFfruIrpz0QWxlgpZk,2663
|
|
9
10
|
usecortex_ai/core/force_multipart.py,sha256=cH981xLy0kZVKiZZkFoeUjgJ2Zuq7KXB2aRAnmHzRDc,477
|
|
@@ -16,11 +17,11 @@ usecortex_ai/core/remove_none_from_dict.py,sha256=EU9SGgYidWq7SexuJbNs4-PZ-5Bl3V
|
|
|
16
17
|
usecortex_ai/core/request_options.py,sha256=h0QUNCFVdCW_7GclVySCAY2w4NhtXVBUCmHgmzaxpcg,1681
|
|
17
18
|
usecortex_ai/core/serialization.py,sha256=ECL3bvv_0i7U4uvPidZCNel--MUbA0iq0aGcNKi3kws,9818
|
|
18
19
|
usecortex_ai/document/__init__.py,sha256=_VhToAyIt_5axN6CLJwtxg3-CO7THa_23pbUzqhXJa4,85
|
|
19
|
-
usecortex_ai/document/client.py,sha256=
|
|
20
|
-
usecortex_ai/document/raw_client.py,sha256=
|
|
20
|
+
usecortex_ai/document/client.py,sha256=byPqef0y0txIaXxFje8eoBkqsU1SkWrvCmPBae1uL5M,4757
|
|
21
|
+
usecortex_ai/document/raw_client.py,sha256=VsnkEH-HGz3u2c6tSbQyyz-28LzpnCmakLiR1RGXXN8,12555
|
|
21
22
|
usecortex_ai/embeddings/__init__.py,sha256=_VhToAyIt_5axN6CLJwtxg3-CO7THa_23pbUzqhXJa4,85
|
|
22
|
-
usecortex_ai/embeddings/client.py,sha256=
|
|
23
|
-
usecortex_ai/embeddings/raw_client.py,sha256=
|
|
23
|
+
usecortex_ai/embeddings/client.py,sha256=LWX1zzZjicVb2vYTa-HJJc0VRFY8DSXLfqCPy2hH80Y,13585
|
|
24
|
+
usecortex_ai/embeddings/raw_client.py,sha256=YEWMcsWyLOXM3NRKvEAIarSlqumZgAK9QLY1WZZzG-w,44614
|
|
24
25
|
usecortex_ai/errors/__init__.py,sha256=PS842uUNhpA1vS6eb6QYEAPq3tbg4_pLujUebJu3dLk,648
|
|
25
26
|
usecortex_ai/errors/bad_request_error.py,sha256=VdKbyoKQhQoaKa0UvQz-9_xMvvI1wVgpghH975VS0Tk,392
|
|
26
27
|
usecortex_ai/errors/forbidden_error.py,sha256=OFKc3DYjz7Ybiu2MTHhGFfe6PRawyVqKV1qKWAf_iMI,391
|
|
@@ -30,19 +31,19 @@ usecortex_ai/errors/service_unavailable_error.py,sha256=SPY3eX47JsLLSrYse65vxdYg
|
|
|
30
31
|
usecortex_ai/errors/unauthorized_error.py,sha256=bWAey6G90kY_sxDwz39g6z293zRKW_gAVOjQLlfcn-M,394
|
|
31
32
|
usecortex_ai/errors/unprocessable_entity_error.py,sha256=JqxtzIhvjkpQDqbT9Q-go1n-gyv9PsYqq0ng_ZYyBMo,347
|
|
32
33
|
usecortex_ai/fetch/__init__.py,sha256=_VhToAyIt_5axN6CLJwtxg3-CO7THa_23pbUzqhXJa4,85
|
|
33
|
-
usecortex_ai/fetch/client.py,sha256=
|
|
34
|
-
usecortex_ai/fetch/raw_client.py,sha256=
|
|
34
|
+
usecortex_ai/fetch/client.py,sha256=fWj3cWX5hoiBC1iXXLb3LG5-6YROxwOrZGYJI0-b8co,3970
|
|
35
|
+
usecortex_ai/fetch/raw_client.py,sha256=FCBFr34T4yIzudw3FBDWPZ2FdV1yWMsORrrjkLVyLTg,11734
|
|
35
36
|
usecortex_ai/search/__init__.py,sha256=iA8ksy3OzGPGNq_g8cVXsEiZuWyAEAnKI6fHUFWEE-A,131
|
|
36
|
-
usecortex_ai/search/client.py,sha256=
|
|
37
|
-
usecortex_ai/search/raw_client.py,sha256=
|
|
37
|
+
usecortex_ai/search/client.py,sha256=yqMyIo1aRxwPCEeECdfmSEgRSHBklUSUyea29d-kcso,20725
|
|
38
|
+
usecortex_ai/search/raw_client.py,sha256=N6v4Ds6AO9R2A0D_wRUnA1xub_y8_ppec6HxPC0P7es,44827
|
|
38
39
|
usecortex_ai/search/types/__init__.py,sha256=T0zQrrDzfvgmw2Deo_iYanUoxcVhZ9jDO_fS3CpSU9M,131
|
|
39
40
|
usecortex_ai/search/types/alpha.py,sha256=afIpOT9uMdYdUZB_biXoggzRnZlnr00miVPDgxDRFIA,113
|
|
40
41
|
usecortex_ai/sources/__init__.py,sha256=_VhToAyIt_5axN6CLJwtxg3-CO7THa_23pbUzqhXJa4,85
|
|
41
|
-
usecortex_ai/sources/client.py,sha256=
|
|
42
|
-
usecortex_ai/sources/raw_client.py,sha256=
|
|
42
|
+
usecortex_ai/sources/client.py,sha256=ygaYPHZwUxoW8UW12Q0Np53N7TwMUYK51UJWWg_qAE4,4808
|
|
43
|
+
usecortex_ai/sources/raw_client.py,sha256=EtfB1yA7Lqm3krZwfoP9abUL_R2CeqcPN9INDn5Ejf4,12638
|
|
43
44
|
usecortex_ai/tenant/__init__.py,sha256=_VhToAyIt_5axN6CLJwtxg3-CO7THa_23pbUzqhXJa4,85
|
|
44
|
-
usecortex_ai/tenant/client.py,sha256=
|
|
45
|
-
usecortex_ai/tenant/raw_client.py,sha256=
|
|
45
|
+
usecortex_ai/tenant/client.py,sha256=IhVoy4lN2UTO8nvkT5NJXhExb6DrqP7CG51mm647akA,8764
|
|
46
|
+
usecortex_ai/tenant/raw_client.py,sha256=aUBX_Fk09hHga_ezEr6iMD5G1xTnBO0RR4RYksGHZdw,31494
|
|
46
47
|
usecortex_ai/types/__init__.py,sha256=CfNTis7G5s1-v-_Gd2OqczZxAqizVQXhQxxqs2kJ1kI,3291
|
|
47
48
|
usecortex_ai/types/actual_error_response.py,sha256=EBit_JO3u0FQrVAXDg0UXQktlULLPLtX8FF8J9mZSvY,580
|
|
48
49
|
usecortex_ai/types/add_user_memory_response.py,sha256=ujoAApV_HEUkRUaRq3BhWhldHLo432In0OablXJ7etc,977
|
|
@@ -53,7 +54,7 @@ usecortex_ai/types/bm_25_operator_type.py,sha256=wiromvB4YjgxKQcS1-1BNBZ7MqKP1Jz
|
|
|
53
54
|
usecortex_ai/types/body_scrape_webpage_upload_scrape_webpage_post.py,sha256=7mnML_5krrZ8obOW_2HavWAjP2rxYQ-pETP0GnKsfDI,532
|
|
54
55
|
usecortex_ai/types/body_update_scrape_job_upload_update_webpage_patch.py,sha256=7WtD74CYa-RkkuqluiBzoQjWqvbzUcK2p1cZZr0YgWo,535
|
|
55
56
|
usecortex_ai/types/content_model.py,sha256=7KsEMncTZK90gWsjjVfrmOxOndM2HODIOUHclQU6ysE,1738
|
|
56
|
-
usecortex_ai/types/delete_memory_request.py,sha256=
|
|
57
|
+
usecortex_ai/types/delete_memory_request.py,sha256=4IoGwsZcGLg4_cJ_HqMsBseSk13exDnXMxpVFb5_PWo,957
|
|
57
58
|
usecortex_ai/types/delete_sources.py,sha256=3Kl4YxQmiCNLiR1O7ZHP0xZgaQ54JTuyofbYS-MWjeM,589
|
|
58
59
|
usecortex_ai/types/delete_sub_tenant_data.py,sha256=QrXEimInAWCgOzkgUTP8M6oKVVqoJZ50SBHsMkjamJw,1104
|
|
59
60
|
usecortex_ai/types/delete_user_memory_response.py,sha256=GuqmekTZu6P3xk6L5tSwLbHXYF3CDh2eie8vIMjDWsE,833
|
|
@@ -69,7 +70,7 @@ usecortex_ai/types/generate_user_memory_response.py,sha256=jvpsN_RDg82d-SJ39jAzQ
|
|
|
69
70
|
usecortex_ai/types/http_validation_error.py,sha256=NNTK9AbbHXm0n9m1YcsG5zEaSn1n6RghohUX5R8LGzw,623
|
|
70
71
|
usecortex_ai/types/list_sources_response.py,sha256=ybvnupTDVoZfDRsS3YdzbLemmqQqf4F31ODP-Fcj0n4,930
|
|
71
72
|
usecortex_ai/types/list_user_memories_response.py,sha256=gsx9pxp2Rsaz0tX2pbGqFFThYF_20XpzwF7BWwOXAGA,906
|
|
72
|
-
usecortex_ai/types/markdown_upload_request.py,sha256=
|
|
73
|
+
usecortex_ai/types/markdown_upload_request.py,sha256=I1Mot_08BgSQyNzgplPHypb_dBKeGKoMuA9MXBqfL7M,1477
|
|
73
74
|
usecortex_ai/types/processing_status.py,sha256=bt4XLeE7nztdHbkx_YvbRsVw11S2FC23mE_JZi8Xvtc,963
|
|
74
75
|
usecortex_ai/types/related_chunk.py,sha256=Ed7pzlEbycX5kmjvzF5-c9QvwOzyGozTsX9uAQMsDCI,613
|
|
75
76
|
usecortex_ai/types/relations.py,sha256=wcnG2_3dfypUkBLSMRxM4ACaQvVA1KhmOY4YwBbJu24,863
|
|
@@ -78,23 +79,23 @@ usecortex_ai/types/search_chunk.py,sha256=gXRFnNRMrH2VdZc6JEt1XndxA1Ro-FdmTSEfOZ
|
|
|
78
79
|
usecortex_ai/types/single_upload_data.py,sha256=VmuWSY_9zeKrtbj5_WPOZXIJDmqvWqL0Iz7bdq5n6w8,785
|
|
79
80
|
usecortex_ai/types/source.py,sha256=z8RQ4q-ZweoMJ6DR1dGa4YBlXHjMX7-tfk6l_R3EFMw,1411
|
|
80
81
|
usecortex_ai/types/source_model.py,sha256=HM5jA8UmLDQk8UfPt3J3ZNAA3eT6k19WwZ20m-TzWOk,2874
|
|
81
|
-
usecortex_ai/types/sub_tenant_ids_data.py,sha256=
|
|
82
|
+
usecortex_ai/types/sub_tenant_ids_data.py,sha256=D8uiE1JwPx8KJd-Y_tm6FVooSM_QO9JQBBDpz_Lnz8o,1271
|
|
82
83
|
usecortex_ai/types/tenant_create_data.py,sha256=wpg53JzFfquwtNAsz0B4eG3NP39jmGvVZ0SiBwk2_n4,988
|
|
83
|
-
usecortex_ai/types/tenant_stats.py,sha256=
|
|
84
|
+
usecortex_ai/types/tenant_stats.py,sha256=NMjla1aHriQIB7qiOa5amL9WYFz4vwDFWHHHpyA1ndg,1156
|
|
84
85
|
usecortex_ai/types/user_memory.py,sha256=_lAM0qXL5cAwfLeeWs4_m8VZ2BtkFrGBYk5dip7k7KI,778
|
|
85
86
|
usecortex_ai/types/validation_error.py,sha256=Ou-GSQTdmDFWIFlP_y9ka_EUAavqFEFLonU9srAkJdc,642
|
|
86
87
|
usecortex_ai/types/validation_error_loc_item.py,sha256=LAtjCHIllWRBFXvAZ5QZpp7CPXjdtN9EB7HrLVo6EP0,128
|
|
87
88
|
usecortex_ai/upload/__init__.py,sha256=_VhToAyIt_5axN6CLJwtxg3-CO7THa_23pbUzqhXJa4,85
|
|
88
|
-
usecortex_ai/upload/client.py,sha256=
|
|
89
|
-
usecortex_ai/upload/raw_client.py,sha256=
|
|
89
|
+
usecortex_ai/upload/client.py,sha256=7HSXBR_E1_8z1W_GUshPtH65WMKzLkfvkLDKrYKWhNc,79877
|
|
90
|
+
usecortex_ai/upload/raw_client.py,sha256=C7vQIus2dW8kgpUBFJyqRwNcruuPo_4zhSh8O9f4iAg,194015
|
|
90
91
|
usecortex_ai/user/__init__.py,sha256=_VhToAyIt_5axN6CLJwtxg3-CO7THa_23pbUzqhXJa4,85
|
|
91
|
-
usecortex_ai/user/client.py,sha256=
|
|
92
|
-
usecortex_ai/user/raw_client.py,sha256=
|
|
92
|
+
usecortex_ai/user/client.py,sha256=w11KTvMzLB862OY46FgoRhVde5SvcaXLbEmnxxryk80,4802
|
|
93
|
+
usecortex_ai/user/raw_client.py,sha256=RnloKJVojvAknaylQknMUY9kS0HwP6_QjcmMuFvviAs,12740
|
|
93
94
|
usecortex_ai/user_memory/__init__.py,sha256=_VhToAyIt_5axN6CLJwtxg3-CO7THa_23pbUzqhXJa4,85
|
|
94
|
-
usecortex_ai/user_memory/client.py,sha256=
|
|
95
|
-
usecortex_ai/user_memory/raw_client.py,sha256=
|
|
96
|
-
usecortex_ai-0.
|
|
97
|
-
usecortex_ai-0.
|
|
98
|
-
usecortex_ai-0.
|
|
99
|
-
usecortex_ai-0.
|
|
100
|
-
usecortex_ai-0.
|
|
95
|
+
usecortex_ai/user_memory/client.py,sha256=tvRx5U_x8VtE7hUN52AMlMMVsWOgUcEK4rzXrVUNHXM,21299
|
|
96
|
+
usecortex_ai/user_memory/raw_client.py,sha256=XVsgzClh57SQWtUXc2ikaywbYRME6zA25PSIu7-9m4M,59521
|
|
97
|
+
usecortex_ai-0.3.0.dist-info/licenses/LICENSE,sha256=ExSrDLXpv6Bq3AiBk9VwLfysI9Fj-L3LqJNGKqbxNzw,1256
|
|
98
|
+
usecortex_ai-0.3.0.dist-info/METADATA,sha256=U20TUz47y-VEDo3858UkISDDLiPcpLmUSiaf_kwwp5U,6242
|
|
99
|
+
usecortex_ai-0.3.0.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
100
|
+
usecortex_ai-0.3.0.dist-info/top_level.txt,sha256=TQ77el6hL0CvN7BTXJVFTqZ5ot1_kHKo2ZnEcOvZsjo,13
|
|
101
|
+
usecortex_ai-0.3.0.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|