LiteLLM tools
XysqLiteLLMTools gives you OpenAI-compatible tool definitions and an executor.
You run the loop; the model decides when to remember and recall.
The
vault_id is bound when you construct XysqLiteLLMTools — the model decides
when to remember and recall, never which vault.
Anthropic SDK
Same idea, in Anthropictool_use format:
XysqAgent — the batteries-included wrapper
If you don’t want to run the loop yourself,XysqAgent wraps a LiteLLM model.
The conversation itself lives in a server-side thread — not in
the Python process — so history survives restarts and is shared across
instances, and every turn is promoted into the vault’s long-term memory
automatically. On each chat() it stores your message, pulls relevant
long-term context, rebuilds the window from the server, calls the model, and
stores the reply:
recall=False skips the long-term pull, recall_limit caps injected context,
history_turns sizes the conversation window (the current message plus up to
N−1 prior turns). clear_history() ends the conversation: it flushes to
long-term memory first, then resets the working window.
Related
Vaults
The vault API the tools are built on: create, push, pull, delete
Getting started
Install the SDK and push your first vault