Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.thrindex.com/llms.txt

Use this file to discover all available pages before exploring further.

pip install thrindex
from thrindex import Client

client = Client(api_key="mk_live_...")
Use os.environ["THRINDEX_API_KEY"] in production. Default base URL: https://api.thrindex.com.

Methods

add(content, agent_id, user_id, confidence=None, metadata=None) → memory id search(query, agent_id, user_id, k=10, task_context=None, level=None) → list of hits get(memory_id) → full record dict delete(memory_id, hard=False) → nothing batch_add(memories, agent_id, user_id) → list of ids

Context manager

with Client(api_key="mk_live_...") as client:
    client.add(...)

Errors

ExceptionHTTP
AuthError401
NotFoundError404
RateLimitError429
ThrindexErrorother
Retries on 5xx and network failures are built in.