cortexdbai 0.2.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.
- cortexdb/__init__.py +79 -0
- cortexdb/client.py +962 -0
- cortexdb/exceptions.py +69 -0
- cortexdb/models.py +390 -0
- cortexdb/py.typed +0 -0
- cortexdbai-0.2.0.dist-info/METADATA +236 -0
- cortexdbai-0.2.0.dist-info/RECORD +8 -0
- cortexdbai-0.2.0.dist-info/WHEEL +4 -0
cortexdb/__init__.py
ADDED
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
"""CortexDB Python SDK — The Long-Term Memory Layer for AI Systems."""
|
|
2
|
+
|
|
3
|
+
from cortexdb.client import AsyncCortex, Cortex
|
|
4
|
+
from cortexdb.exceptions import (
|
|
5
|
+
CortexAPIError,
|
|
6
|
+
CortexAuthError,
|
|
7
|
+
CortexConnectionError,
|
|
8
|
+
CortexError,
|
|
9
|
+
CortexRateLimitError,
|
|
10
|
+
CortexTimeoutError,
|
|
11
|
+
)
|
|
12
|
+
from cortexdb.models import (
|
|
13
|
+
Actor,
|
|
14
|
+
ActorType,
|
|
15
|
+
EntityRef,
|
|
16
|
+
EntityRelationship,
|
|
17
|
+
EntityResponse,
|
|
18
|
+
Episode,
|
|
19
|
+
EpisodeBrief,
|
|
20
|
+
EpisodeType,
|
|
21
|
+
ForgetRequest,
|
|
22
|
+
ForgetResponse,
|
|
23
|
+
HealthResponse,
|
|
24
|
+
IngestEpisodeRequest,
|
|
25
|
+
IngestEpisodeResponse,
|
|
26
|
+
LinkResponse,
|
|
27
|
+
ListEpisodesResponse,
|
|
28
|
+
MetricsResponse,
|
|
29
|
+
RecallRequest,
|
|
30
|
+
RecallResponse,
|
|
31
|
+
RememberRequest,
|
|
32
|
+
RememberResponse,
|
|
33
|
+
SearchResponse,
|
|
34
|
+
Source,
|
|
35
|
+
Visibility,
|
|
36
|
+
VisibilityLevel,
|
|
37
|
+
)
|
|
38
|
+
|
|
39
|
+
__version__ = "0.1.0"
|
|
40
|
+
__all__ = [
|
|
41
|
+
# Clients
|
|
42
|
+
"Cortex",
|
|
43
|
+
"AsyncCortex",
|
|
44
|
+
# Enums
|
|
45
|
+
"EpisodeType",
|
|
46
|
+
"ActorType",
|
|
47
|
+
"VisibilityLevel",
|
|
48
|
+
# Core models
|
|
49
|
+
"Actor",
|
|
50
|
+
"Source",
|
|
51
|
+
"Visibility",
|
|
52
|
+
"EntityRef",
|
|
53
|
+
"Episode",
|
|
54
|
+
# Request models
|
|
55
|
+
"IngestEpisodeRequest",
|
|
56
|
+
"RememberRequest",
|
|
57
|
+
"RecallRequest",
|
|
58
|
+
"ForgetRequest",
|
|
59
|
+
# Response models
|
|
60
|
+
"IngestEpisodeResponse",
|
|
61
|
+
"RememberResponse",
|
|
62
|
+
"RecallResponse",
|
|
63
|
+
"ForgetResponse",
|
|
64
|
+
"ListEpisodesResponse",
|
|
65
|
+
"HealthResponse",
|
|
66
|
+
"MetricsResponse",
|
|
67
|
+
"EntityResponse",
|
|
68
|
+
"EntityRelationship",
|
|
69
|
+
"EpisodeBrief",
|
|
70
|
+
"LinkResponse",
|
|
71
|
+
"SearchResponse",
|
|
72
|
+
# Exceptions
|
|
73
|
+
"CortexError",
|
|
74
|
+
"CortexAPIError",
|
|
75
|
+
"CortexConnectionError",
|
|
76
|
+
"CortexTimeoutError",
|
|
77
|
+
"CortexAuthError",
|
|
78
|
+
"CortexRateLimitError",
|
|
79
|
+
]
|