cortexdbai 0.7.0__tar.gz → 0.9.0__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.
- {cortexdbai-0.7.0 → cortexdbai-0.9.0}/PKG-INFO +1 -1
- {cortexdbai-0.7.0 → cortexdbai-0.9.0}/cortexdb/__init__.py +71 -71
- {cortexdbai-0.7.0 → cortexdbai-0.9.0}/cortexdb/v1/client.py +1288 -1187
- {cortexdbai-0.7.0 → cortexdbai-0.9.0}/pyproject.toml +186 -186
- {cortexdbai-0.7.0 → cortexdbai-0.9.0}/.gitignore +0 -0
- {cortexdbai-0.7.0 → cortexdbai-0.9.0}/README.md +0 -0
- {cortexdbai-0.7.0 → cortexdbai-0.9.0}/cortexdb/integrations/__init__.py +0 -0
- {cortexdbai-0.7.0 → cortexdbai-0.9.0}/cortexdb/integrations/ag2/__init__.py +0 -0
- {cortexdbai-0.7.0 → cortexdbai-0.9.0}/cortexdb/integrations/ag2/agent.py +0 -0
- {cortexdbai-0.7.0 → cortexdbai-0.9.0}/cortexdb/integrations/ag2/tools.py +0 -0
- {cortexdbai-0.7.0 → cortexdbai-0.9.0}/cortexdb/integrations/agno/__init__.py +0 -0
- {cortexdbai-0.7.0 → cortexdbai-0.9.0}/cortexdb/integrations/agno/memory.py +0 -0
- {cortexdbai-0.7.0 → cortexdbai-0.9.0}/cortexdb/integrations/agno/tools.py +0 -0
- {cortexdbai-0.7.0 → cortexdbai-0.9.0}/cortexdb/integrations/autogen/__init__.py +0 -0
- {cortexdbai-0.7.0 → cortexdbai-0.9.0}/cortexdb/integrations/autogen/agent.py +0 -0
- {cortexdbai-0.7.0 → cortexdbai-0.9.0}/cortexdb/integrations/autogen/tools.py +0 -0
- {cortexdbai-0.7.0 → cortexdbai-0.9.0}/cortexdb/integrations/beeai/__init__.py +0 -0
- {cortexdbai-0.7.0 → cortexdbai-0.9.0}/cortexdb/integrations/beeai/memory.py +0 -0
- {cortexdbai-0.7.0 → cortexdbai-0.9.0}/cortexdb/integrations/beeai/tools.py +0 -0
- {cortexdbai-0.7.0 → cortexdbai-0.9.0}/cortexdb/integrations/camel/__init__.py +0 -0
- {cortexdbai-0.7.0 → cortexdbai-0.9.0}/cortexdb/integrations/camel/memory.py +0 -0
- {cortexdbai-0.7.0 → cortexdbai-0.9.0}/cortexdb/integrations/camel/tools.py +0 -0
- {cortexdbai-0.7.0 → cortexdbai-0.9.0}/cortexdb/integrations/controlflow/__init__.py +0 -0
- {cortexdbai-0.7.0 → cortexdbai-0.9.0}/cortexdb/integrations/controlflow/memory.py +0 -0
- {cortexdbai-0.7.0 → cortexdbai-0.9.0}/cortexdb/integrations/crewai/__init__.py +0 -0
- {cortexdbai-0.7.0 → cortexdbai-0.9.0}/cortexdb/integrations/crewai/memory.py +0 -0
- {cortexdbai-0.7.0 → cortexdbai-0.9.0}/cortexdb/integrations/crewai/tools.py +0 -0
- {cortexdbai-0.7.0 → cortexdbai-0.9.0}/cortexdb/integrations/deepinfra/__init__.py +0 -0
- {cortexdbai-0.7.0 → cortexdbai-0.9.0}/cortexdb/integrations/deepinfra/config.py +0 -0
- {cortexdbai-0.7.0 → cortexdbai-0.9.0}/cortexdb/integrations/deepinfra/embeddings.py +0 -0
- {cortexdbai-0.7.0 → cortexdbai-0.9.0}/cortexdb/integrations/deepinfra/openai_compat.py +0 -0
- {cortexdbai-0.7.0 → cortexdbai-0.9.0}/cortexdb/integrations/dify/__init__.py +0 -0
- {cortexdbai-0.7.0 → cortexdbai-0.9.0}/cortexdb/integrations/dify/manifest.yaml +0 -0
- {cortexdbai-0.7.0 → cortexdbai-0.9.0}/cortexdb/integrations/dify/tool.py +0 -0
- {cortexdbai-0.7.0 → cortexdbai-0.9.0}/cortexdb/integrations/dspy/__init__.py +0 -0
- {cortexdbai-0.7.0 → cortexdbai-0.9.0}/cortexdb/integrations/dspy/memory.py +0 -0
- {cortexdbai-0.7.0 → cortexdbai-0.9.0}/cortexdb/integrations/dspy/retriever.py +0 -0
- {cortexdbai-0.7.0 → cortexdbai-0.9.0}/cortexdb/integrations/fireworks/__init__.py +0 -0
- {cortexdbai-0.7.0 → cortexdbai-0.9.0}/cortexdb/integrations/fireworks/config.py +0 -0
- {cortexdbai-0.7.0 → cortexdbai-0.9.0}/cortexdb/integrations/fireworks/embeddings.py +0 -0
- {cortexdbai-0.7.0 → cortexdbai-0.9.0}/cortexdb/integrations/fireworks/openai_compat.py +0 -0
- {cortexdbai-0.7.0 → cortexdbai-0.9.0}/cortexdb/integrations/flowise/__init__.py +0 -0
- {cortexdbai-0.7.0 → cortexdbai-0.9.0}/cortexdb/integrations/flowise/node.py +0 -0
- {cortexdbai-0.7.0 → cortexdbai-0.9.0}/cortexdb/integrations/google_adk/__init__.py +0 -0
- {cortexdbai-0.7.0 → cortexdbai-0.9.0}/cortexdb/integrations/google_adk/tools.py +0 -0
- {cortexdbai-0.7.0 → cortexdbai-0.9.0}/cortexdb/integrations/groq/__init__.py +0 -0
- {cortexdbai-0.7.0 → cortexdbai-0.9.0}/cortexdb/integrations/groq/config.py +0 -0
- {cortexdbai-0.7.0 → cortexdbai-0.9.0}/cortexdb/integrations/groq/embeddings.py +0 -0
- {cortexdbai-0.7.0 → cortexdbai-0.9.0}/cortexdb/integrations/groq/openai_compat.py +0 -0
- {cortexdbai-0.7.0 → cortexdbai-0.9.0}/cortexdb/integrations/hermes/__init__.py +0 -0
- {cortexdbai-0.7.0 → cortexdbai-0.9.0}/cortexdb/integrations/hermes/provider.py +0 -0
- {cortexdbai-0.7.0 → cortexdbai-0.9.0}/cortexdb/integrations/instructor/__init__.py +0 -0
- {cortexdbai-0.7.0 → cortexdbai-0.9.0}/cortexdb/integrations/instructor/memory.py +0 -0
- {cortexdbai-0.7.0 → cortexdbai-0.9.0}/cortexdb/integrations/langchain/__init__.py +0 -0
- {cortexdbai-0.7.0 → cortexdbai-0.9.0}/cortexdb/integrations/langchain/memory.py +0 -0
- {cortexdbai-0.7.0 → cortexdbai-0.9.0}/cortexdb/integrations/langchain/retriever.py +0 -0
- {cortexdbai-0.7.0 → cortexdbai-0.9.0}/cortexdb/integrations/langchain/tools.py +0 -0
- {cortexdbai-0.7.0 → cortexdbai-0.9.0}/cortexdb/integrations/langgraph/__init__.py +0 -0
- {cortexdbai-0.7.0 → cortexdbai-0.9.0}/cortexdb/integrations/langgraph/memory.py +0 -0
- {cortexdbai-0.7.0 → cortexdbai-0.9.0}/cortexdb/integrations/letta/__init__.py +0 -0
- {cortexdbai-0.7.0 → cortexdbai-0.9.0}/cortexdb/integrations/letta/storage.py +0 -0
- {cortexdbai-0.7.0 → cortexdbai-0.9.0}/cortexdb/integrations/llamaindex/__init__.py +0 -0
- {cortexdbai-0.7.0 → cortexdbai-0.9.0}/cortexdb/integrations/llamaindex/memory.py +0 -0
- {cortexdbai-0.7.0 → cortexdbai-0.9.0}/cortexdb/integrations/nemo_guardrails/__init__.py +0 -0
- {cortexdbai-0.7.0 → cortexdbai-0.9.0}/cortexdb/integrations/nemo_guardrails/actions.py +0 -0
- {cortexdbai-0.7.0 → cortexdbai-0.9.0}/cortexdb/integrations/nemo_guardrails/knowledge_base.py +0 -0
- {cortexdbai-0.7.0 → cortexdbai-0.9.0}/cortexdb/integrations/ollama/__init__.py +0 -0
- {cortexdbai-0.7.0 → cortexdbai-0.9.0}/cortexdb/integrations/ollama/config.py +0 -0
- {cortexdbai-0.7.0 → cortexdbai-0.9.0}/cortexdb/integrations/ollama/embeddings.py +0 -0
- {cortexdbai-0.7.0 → cortexdbai-0.9.0}/cortexdb/integrations/openai_agents/__init__.py +0 -0
- {cortexdbai-0.7.0 → cortexdbai-0.9.0}/cortexdb/integrations/openai_agents/tools.py +0 -0
- {cortexdbai-0.7.0 → cortexdbai-0.9.0}/cortexdb/integrations/prefect/__init__.py +0 -0
- {cortexdbai-0.7.0 → cortexdbai-0.9.0}/cortexdb/integrations/prefect/blocks.py +0 -0
- {cortexdbai-0.7.0 → cortexdbai-0.9.0}/cortexdb/integrations/prefect/tasks.py +0 -0
- {cortexdbai-0.7.0 → cortexdbai-0.9.0}/cortexdb/integrations/pydanticai/__init__.py +0 -0
- {cortexdbai-0.7.0 → cortexdbai-0.9.0}/cortexdb/integrations/pydanticai/dependencies.py +0 -0
- {cortexdbai-0.7.0 → cortexdbai-0.9.0}/cortexdb/integrations/pydanticai/tools.py +0 -0
- {cortexdbai-0.7.0 → cortexdbai-0.9.0}/cortexdb/integrations/smolagents/__init__.py +0 -0
- {cortexdbai-0.7.0 → cortexdbai-0.9.0}/cortexdb/integrations/smolagents/tools.py +0 -0
- {cortexdbai-0.7.0 → cortexdbai-0.9.0}/cortexdb/integrations/temporal/__init__.py +0 -0
- {cortexdbai-0.7.0 → cortexdbai-0.9.0}/cortexdb/integrations/temporal/activities.py +0 -0
- {cortexdbai-0.7.0 → cortexdbai-0.9.0}/cortexdb/integrations/temporal/interceptor.py +0 -0
- {cortexdbai-0.7.0 → cortexdbai-0.9.0}/cortexdb/integrations/together/__init__.py +0 -0
- {cortexdbai-0.7.0 → cortexdbai-0.9.0}/cortexdb/integrations/together/config.py +0 -0
- {cortexdbai-0.7.0 → cortexdbai-0.9.0}/cortexdb/integrations/together/embeddings.py +0 -0
- {cortexdbai-0.7.0 → cortexdbai-0.9.0}/cortexdb/integrations/together/openai_compat.py +0 -0
- {cortexdbai-0.7.0 → cortexdbai-0.9.0}/cortexdb/integrations/vllm/__init__.py +0 -0
- {cortexdbai-0.7.0 → cortexdbai-0.9.0}/cortexdb/integrations/vllm/config.py +0 -0
- {cortexdbai-0.7.0 → cortexdbai-0.9.0}/cortexdb/integrations/vllm/embeddings.py +0 -0
- {cortexdbai-0.7.0 → cortexdbai-0.9.0}/cortexdb/integrations/vllm/openai_compat.py +0 -0
- {cortexdbai-0.7.0 → cortexdbai-0.9.0}/cortexdb/py.typed +0 -0
- {cortexdbai-0.7.0 → cortexdbai-0.9.0}/cortexdb/v1/__init__.py +0 -0
- {cortexdbai-0.7.0 → cortexdbai-0.9.0}/cortexdb/v1/exceptions.py +0 -0
- {cortexdbai-0.7.0 → cortexdbai-0.9.0}/tests/__init__.py +0 -0
- {cortexdbai-0.7.0 → cortexdbai-0.9.0}/tests/test_conflicts.py +0 -0
|
@@ -1,71 +1,71 @@
|
|
|
1
|
-
"""CortexDB Python SDK — the long-term memory layer for AI systems.
|
|
2
|
-
|
|
3
|
-
The SDK is a thin HTTP client over the v1 API surface that cortexdb
|
|
4
|
-
exposes by default on port 3141. The top-level :class:`Cortex` class
|
|
5
|
-
(alias :class:`V1Client`) is what you should reach for.
|
|
6
|
-
|
|
7
|
-
Quick start::
|
|
8
|
-
|
|
9
|
-
from cortexdb import Cortex
|
|
10
|
-
|
|
11
|
-
# Local docker run with no auth (CORTEX_API_KEY unset on the server):
|
|
12
|
-
with Cortex("http://localhost:3141") as c:
|
|
13
|
-
c.experience("ws:demo", text="Priya at Acme signed for 200 seats.")
|
|
14
|
-
pack = c.recall("ws:demo", query="How many seats did Acme sign for?")
|
|
15
|
-
print(pack)
|
|
16
|
-
|
|
17
|
-
# Hosted / multi-tenant deployment with PASETO bearer + actor header:
|
|
18
|
-
with Cortex(
|
|
19
|
-
"https://api-v1.cortexdb.ai",
|
|
20
|
-
actor="user:alice",
|
|
21
|
-
bearer="eyJ...",
|
|
22
|
-
) as c:
|
|
23
|
-
out = c.answer(
|
|
24
|
-
"org:initech/user:alice",
|
|
25
|
-
question="What did Alice say about coffee?",
|
|
26
|
-
)
|
|
27
|
-
|
|
28
|
-
Versions ≤ 0.2.x exposed a separate ``cortexdb.Cortex`` class targeting
|
|
29
|
-
the legacy ``/v1/remember`` endpoints. That surface was retired in 0.3.0
|
|
30
|
-
because the cortexdb binary's public port now only serves the v1 API;
|
|
31
|
-
the legacy endpoints survive only as an internal bench-compat helper.
|
|
32
|
-
If you need them, pin ``cortexdbai<0.3``.
|
|
33
|
-
"""
|
|
34
|
-
|
|
35
|
-
from cortexdb.v1 import V1Client, AsyncV1Client
|
|
36
|
-
from cortexdb.v1.exceptions import (
|
|
37
|
-
V1APIError,
|
|
38
|
-
V1AuthError,
|
|
39
|
-
V1ConnectionError,
|
|
40
|
-
V1Error,
|
|
41
|
-
V1NotConfiguredError,
|
|
42
|
-
V1PolicyDeniedError,
|
|
43
|
-
V1RateLimitError,
|
|
44
|
-
V1TimeoutError,
|
|
45
|
-
)
|
|
46
|
-
from cortexdb import v1 # the explicit submodule namespace
|
|
47
|
-
|
|
48
|
-
# Ergonomic top-level aliases. New code can write either form.
|
|
49
|
-
Cortex = V1Client
|
|
50
|
-
AsyncCortex = AsyncV1Client
|
|
51
|
-
|
|
52
|
-
__version__ = "0.
|
|
53
|
-
__all__ = [
|
|
54
|
-
# Clients (preferred top-level names)
|
|
55
|
-
"Cortex",
|
|
56
|
-
"AsyncCortex",
|
|
57
|
-
# Explicit v1 names (identical classes, kept for code that pinned them)
|
|
58
|
-
"V1Client",
|
|
59
|
-
"AsyncV1Client",
|
|
60
|
-
# Submodule
|
|
61
|
-
"v1",
|
|
62
|
-
# Exceptions
|
|
63
|
-
"V1Error",
|
|
64
|
-
"V1APIError",
|
|
65
|
-
"V1AuthError",
|
|
66
|
-
"V1ConnectionError",
|
|
67
|
-
"V1TimeoutError",
|
|
68
|
-
"V1RateLimitError",
|
|
69
|
-
"V1NotConfiguredError",
|
|
70
|
-
"V1PolicyDeniedError",
|
|
71
|
-
]
|
|
1
|
+
"""CortexDB Python SDK — the long-term memory layer for AI systems.
|
|
2
|
+
|
|
3
|
+
The SDK is a thin HTTP client over the v1 API surface that cortexdb
|
|
4
|
+
exposes by default on port 3141. The top-level :class:`Cortex` class
|
|
5
|
+
(alias :class:`V1Client`) is what you should reach for.
|
|
6
|
+
|
|
7
|
+
Quick start::
|
|
8
|
+
|
|
9
|
+
from cortexdb import Cortex
|
|
10
|
+
|
|
11
|
+
# Local docker run with no auth (CORTEX_API_KEY unset on the server):
|
|
12
|
+
with Cortex("http://localhost:3141") as c:
|
|
13
|
+
c.experience("ws:demo", text="Priya at Acme signed for 200 seats.")
|
|
14
|
+
pack = c.recall("ws:demo", query="How many seats did Acme sign for?")
|
|
15
|
+
print(pack)
|
|
16
|
+
|
|
17
|
+
# Hosted / multi-tenant deployment with PASETO bearer + actor header:
|
|
18
|
+
with Cortex(
|
|
19
|
+
"https://api-v1.cortexdb.ai",
|
|
20
|
+
actor="user:alice",
|
|
21
|
+
bearer="eyJ...",
|
|
22
|
+
) as c:
|
|
23
|
+
out = c.answer(
|
|
24
|
+
"org:initech/user:alice",
|
|
25
|
+
question="What did Alice say about coffee?",
|
|
26
|
+
)
|
|
27
|
+
|
|
28
|
+
Versions ≤ 0.2.x exposed a separate ``cortexdb.Cortex`` class targeting
|
|
29
|
+
the legacy ``/v1/remember`` endpoints. That surface was retired in 0.3.0
|
|
30
|
+
because the cortexdb binary's public port now only serves the v1 API;
|
|
31
|
+
the legacy endpoints survive only as an internal bench-compat helper.
|
|
32
|
+
If you need them, pin ``cortexdbai<0.3``.
|
|
33
|
+
"""
|
|
34
|
+
|
|
35
|
+
from cortexdb.v1 import V1Client, AsyncV1Client
|
|
36
|
+
from cortexdb.v1.exceptions import (
|
|
37
|
+
V1APIError,
|
|
38
|
+
V1AuthError,
|
|
39
|
+
V1ConnectionError,
|
|
40
|
+
V1Error,
|
|
41
|
+
V1NotConfiguredError,
|
|
42
|
+
V1PolicyDeniedError,
|
|
43
|
+
V1RateLimitError,
|
|
44
|
+
V1TimeoutError,
|
|
45
|
+
)
|
|
46
|
+
from cortexdb import v1 # the explicit submodule namespace
|
|
47
|
+
|
|
48
|
+
# Ergonomic top-level aliases. New code can write either form.
|
|
49
|
+
Cortex = V1Client
|
|
50
|
+
AsyncCortex = AsyncV1Client
|
|
51
|
+
|
|
52
|
+
__version__ = "0.9.0"
|
|
53
|
+
__all__ = [
|
|
54
|
+
# Clients (preferred top-level names)
|
|
55
|
+
"Cortex",
|
|
56
|
+
"AsyncCortex",
|
|
57
|
+
# Explicit v1 names (identical classes, kept for code that pinned them)
|
|
58
|
+
"V1Client",
|
|
59
|
+
"AsyncV1Client",
|
|
60
|
+
# Submodule
|
|
61
|
+
"v1",
|
|
62
|
+
# Exceptions
|
|
63
|
+
"V1Error",
|
|
64
|
+
"V1APIError",
|
|
65
|
+
"V1AuthError",
|
|
66
|
+
"V1ConnectionError",
|
|
67
|
+
"V1TimeoutError",
|
|
68
|
+
"V1RateLimitError",
|
|
69
|
+
"V1NotConfiguredError",
|
|
70
|
+
"V1PolicyDeniedError",
|
|
71
|
+
]
|