Skip to main content

The official Python client for BaseGrid, the 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-io[langchain]"

LlamaIndex

pip install "basegrid-io[llamaindex]"

Configuration

client = BaseGrid(
    api_key="bg_...",                                      # Required
    api_url="https://basegrid-production.up.railway.app"   # Optional (default)
)

Troubleshooting

Connection Refused Error

If you see ConnectionError: Connection refused, ensure you're using SDK version 0.1.3 or later:

pip install --upgrade basegrid-io

Versions before 0.1.3 incorrectly defaulted to localhost:3000 instead of the production API.

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.4.tar.gz (13.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

basegrid_io-0.1.4-py3-none-any.whl (6.0 kB view details)

Uploaded Python 3

File details

Details for the file basegrid_io-0.1.4.tar.gz.

File metadata

  • Download URL: basegrid_io-0.1.4.tar.gz
  • Upload date:
  • Size: 13.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.9.6

File hashes

Hashes for basegrid_io-0.1.4.tar.gz
Algorithm Hash digest
SHA256 51a750e949b0f0a1d6ea30a4a7c993366c6cc113d3b055d7237b1a4612d378c7
MD5 09c42150ebc55a601d82f4cfe643987f
BLAKE2b-256 4b79111e86af9677403d74072953091a440274ccb62123e80d09c92d56919dcb

See more details on using hashes here.

File details

Details for the file basegrid_io-0.1.4-py3-none-any.whl.

File metadata

  • Download URL: basegrid_io-0.1.4-py3-none-any.whl
  • Upload date:
  • Size: 6.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.9.6

File hashes

Hashes for basegrid_io-0.1.4-py3-none-any.whl
Algorithm Hash digest
SHA256 6205ab5840686329e3f4323ce262157349b3653f541c918ff7fa4c1b9084cd0c
MD5 7870d38f0da3212558865f487e6f62a1
BLAKE2b-256 acd80c96f54d2b2debc85772db7c2f70f92a3431e9c6d8a1c580a727d671fe5c

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page