kaibo 0.1.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.
- kaibo-0.1.0/.gitignore +6 -0
- kaibo-0.1.0/PKG-INFO +39 -0
- kaibo-0.1.0/README.md +25 -0
- kaibo-0.1.0/openapi.json +6744 -0
- kaibo-0.1.0/pyproject.toml +41 -0
- kaibo-0.1.0/src/kaibo/__init__.py +22 -0
- kaibo-0.1.0/src/kaibo/_core.py +142 -0
- kaibo-0.1.0/src/kaibo/async_client.py +453 -0
- kaibo-0.1.0/src/kaibo/client.py +578 -0
- kaibo-0.1.0/src/kaibo/errors.py +37 -0
- kaibo-0.1.0/src/kaibo/models.py +428 -0
- kaibo-0.1.0/src/kaibo/py.typed +0 -0
- kaibo-0.1.0/src/kaibo/render.py +47 -0
- kaibo-0.1.0/src/kaibo/webhooks.py +46 -0
- kaibo-0.1.0/tests/test_client.py +384 -0
- kaibo-0.1.0/tests/test_dx.py +132 -0
- kaibo-0.1.0/tests/test_live.py +29 -0
- kaibo-0.1.0/tests/test_models_match_openapi.py +85 -0
- kaibo-0.1.0/uv.lock +790 -0
kaibo-0.1.0/.gitignore
ADDED
kaibo-0.1.0/PKG-INFO
ADDED
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
Metadata-Version: 2.5
|
|
2
|
+
Name: kaibo
|
|
3
|
+
Version: 0.1.0
|
|
4
|
+
Summary: Python SDK for kaibo: memory for AI agents. remember, recall, explain, forget.
|
|
5
|
+
Project-URL: Homepage, https://github.com/egeuysall/kaibo
|
|
6
|
+
Project-URL: Repository, https://github.com/egeuysall/kaibo
|
|
7
|
+
Project-URL: Issues, https://github.com/egeuysall/kaibo/issues
|
|
8
|
+
License: MIT
|
|
9
|
+
Keywords: agents,ai,llm,mcp,memory
|
|
10
|
+
Requires-Python: >=3.10
|
|
11
|
+
Requires-Dist: httpx<1,>=0.27
|
|
12
|
+
Requires-Dist: pydantic<3,>=2.7
|
|
13
|
+
Description-Content-Type: text/markdown
|
|
14
|
+
|
|
15
|
+
# kaibo (Python)
|
|
16
|
+
|
|
17
|
+
Python client for kaibo, memory for AI agents. Same four operations as the TypeScript SDK, the CLI and the MCP server.
|
|
18
|
+
|
|
19
|
+
```python
|
|
20
|
+
import os
|
|
21
|
+
from kaibo import Kaibo
|
|
22
|
+
|
|
23
|
+
kaibo = Kaibo(api_key=os.environ["KAIBO_KEY"])
|
|
24
|
+
kaibo.remember(text="Move the release target from July 13 to July 17.", wait=True)
|
|
25
|
+
|
|
26
|
+
pack = kaibo.recall("release target")
|
|
27
|
+
print(pack.answer if pack.found else f"no answer: {pack.reason}") # do not guess
|
|
28
|
+
print(pack.sources) # the events it came from
|
|
29
|
+
```
|
|
30
|
+
|
|
31
|
+
```python
|
|
32
|
+
dry = kaibo.imports.create("mem0", open("memories.json").read(), dry_run=True) # report, writes nothing
|
|
33
|
+
for record in kaibo.exports.stream(): # events and memories; raises if the export is cut off
|
|
34
|
+
...
|
|
35
|
+
key = kaibo.keys.create("ci", ["read"]) # needs an admin key; the secret is in key.key, once
|
|
36
|
+
```
|
|
37
|
+
|
|
38
|
+
`AsyncKaibo` has the same methods as coroutines. Not published yet; install from this folder with `uv pip install -e .`.
|
|
39
|
+
The models are checked against the generated OpenAPI document (`openapi.json`) in `tests/`.
|
kaibo-0.1.0/README.md
ADDED
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
# kaibo (Python)
|
|
2
|
+
|
|
3
|
+
Python client for kaibo, memory for AI agents. Same four operations as the TypeScript SDK, the CLI and the MCP server.
|
|
4
|
+
|
|
5
|
+
```python
|
|
6
|
+
import os
|
|
7
|
+
from kaibo import Kaibo
|
|
8
|
+
|
|
9
|
+
kaibo = Kaibo(api_key=os.environ["KAIBO_KEY"])
|
|
10
|
+
kaibo.remember(text="Move the release target from July 13 to July 17.", wait=True)
|
|
11
|
+
|
|
12
|
+
pack = kaibo.recall("release target")
|
|
13
|
+
print(pack.answer if pack.found else f"no answer: {pack.reason}") # do not guess
|
|
14
|
+
print(pack.sources) # the events it came from
|
|
15
|
+
```
|
|
16
|
+
|
|
17
|
+
```python
|
|
18
|
+
dry = kaibo.imports.create("mem0", open("memories.json").read(), dry_run=True) # report, writes nothing
|
|
19
|
+
for record in kaibo.exports.stream(): # events and memories; raises if the export is cut off
|
|
20
|
+
...
|
|
21
|
+
key = kaibo.keys.create("ci", ["read"]) # needs an admin key; the secret is in key.key, once
|
|
22
|
+
```
|
|
23
|
+
|
|
24
|
+
`AsyncKaibo` has the same methods as coroutines. Not published yet; install from this folder with `uv pip install -e .`.
|
|
25
|
+
The models are checked against the generated OpenAPI document (`openapi.json`) in `tests/`.
|