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.0.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.0.tar.gz.
File metadata
- Download URL: basegrid_io-0.1.0.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 |
2326554af9c1d750f64eab8d3e0741b8383c2ad40c9cf6c7bcae461204142a29
|
|
| MD5 |
95d61151159fff65ea666905052aaac6
|
|
| BLAKE2b-256 |
ea1a13f440d0629143d74a783ff24289b5aad4838712f6d71c23614393f42e6d
|
File details
Details for the file basegrid_io-0.1.0-py3-none-any.whl.
File metadata
- Download URL: basegrid_io-0.1.0-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 |
4d164d831ff692892a3fad2f521bc7ea9e5850b023ee2a3506867f06bf718029
|
|
| MD5 |
36c0c8875fd4c481214d3fbf2731364e
|
|
| BLAKE2b-256 |
fa0bfd525cb092194a1cbbc965e7d7bbaae5cc4cb8720928b1ad93a39462ff30
|