Metadata-Version: 2.4
Name: basegrid-io
Version: 0.1.0
Summary: Official Python SDK for BaseGrid - Memory Infrastructure for AI Agents
Author-email: Navil Shah <navil.shah@neoniche.com>
Project-URL: Homepage, https://github.com/navilshah-cmd/basegrid
Project-URL: Bug Tracker, https://github.com/navilshah-cmd/basegrid/issues
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Requires-Python: >=3.8
Description-Content-Type: text/markdown
Requires-Dist: requests>=2.25.0
Requires-Dist: pydantic>=2.0.0
Provides-Extra: langchain
Requires-Dist: langchain>=0.1.0; extra == "langchain"
Provides-Extra: llamaindex
Requires-Dist: llama-index>=0.9.0; extra == "llamaindex"

# BaseGrid Python SDK

The official Python client for [BaseGrid](https://basegrid.com), the memory infrastructure for AI agents.

## Installation

```bash
pip install basegrid-io
```

## Usage

```python
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
```bash
pip install "basegrid[langchain]"
```

### LlamaIndex
```bash
pip install "basegrid[llamaindex]"
```
