Official Python SDK for BaseGrid - Memory Infrastructure for AI Agents
Project description
BaseGrid Python SDK
The official Python client for BaseGrid, the memory infrastructure for AI agents.
Installation
pip install basegrid-io
Usage
from basegrid import BaseGrid
# Initialize client
client = BaseGrid(api_key="bg_...")
# Add a memory
client.memories.add(
agent_id="agent-123",
content="User prefers dark mode and heavily indented code.",
metadata={"category": "preference"}
)
# Search memories
results = client.memories.search(
agent_id="agent-123",
query="What are the user's coding preferences?"
)
for memory in results:
print(memory.content)
Integrations
LangChain
pip install "basegrid[langchain]"
LlamaIndex
pip install "basegrid[llamaindex]"
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
basegrid_io-0.1.1.tar.gz
(4.3 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file basegrid_io-0.1.1.tar.gz.
File metadata
- Download URL: basegrid_io-0.1.1.tar.gz
- Upload date:
- Size: 4.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.9.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
12fcd001f502f4f39f0e56f9d88b4516b3d66925e836d9114e9e029cb1b0569a
|
|
| MD5 |
dc38b0f8b208742273393d9ab528dff8
|
|
| BLAKE2b-256 |
19ea904d49ae119f34beee0fc45e60c61e6bd9e09e261daf6f079d56cbe523da
|
File details
Details for the file basegrid_io-0.1.1-py3-none-any.whl.
File metadata
- Download URL: basegrid_io-0.1.1-py3-none-any.whl
- Upload date:
- Size: 5.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.9.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2fd8da05c22f844a2809a60ec375b9b50cd0cec2bb942e1e0d8b2c1f145d20c7
|
|
| MD5 |
d4f889fc272f86af0e9f06337284a410
|
|
| BLAKE2b-256 |
3416e4d5687c24b46fb782f42ec3758b3a6c1ddf0876adca32ebba0daf6343ed
|