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]"

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.2.tar.gz (4.4 MB 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.2-py3-none-any.whl (4.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: basegrid_io-0.1.2.tar.gz
  • Upload date:
  • Size: 4.4 MB
  • 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.2.tar.gz
Algorithm Hash digest
SHA256 be296406f204f0ae8ef3d41a2b6dd24833ddca72ca45f0d810f211a1b09eb1e7
MD5 d417fa20ea317c0812600d0b0421aa96
BLAKE2b-256 f56bd635d14bf838aa8743d19c8001d3c158e0298f7ae82bf324b28602d135d5

See more details on using hashes here.

File details

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

File metadata

  • Download URL: basegrid_io-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 4.9 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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 db4f791417ed646d88d22f3bb2bc811875ee4e57e2d776c3674b4f8dc60691bc
MD5 7a78876bd299786ecd850974d5709ad3
BLAKE2b-256 5435de172795ddf3e98b3bc9f58b6fe8c8fe623ff2c9db94b784cec65c04cfa0

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