Skip to content

Read-only vault query agent

State: open/building · Kind: module · Audience: system

  • Answers a question about a notes vault by running a model tool loop over read-only vault tools.
  • Works with a local Ollama daemon by default, or the Anthropic Messages API.

Given a question and prior text turns, the crate runs a model tool loop and returns the finished answer, the ordered steps (thinking and tool calls) and token usage. Every tool is a read: list, read and search notes, tag census, backlinks and outgoing links, and recent notes by mtime. The vault is never written, and model-supplied paths are resolved inside the vault so they cannot escape it. AGENT_CHAT_PROVIDER selects the provider and AGENT_CHAT_MODEL overrides the model.

  • run_query: one entry point returning answer, steps and token usage
  • active_config: reports the active provider and model
  • Eight read-only vault tools with JSON tool definitions
  • Ollama and Anthropic Messages clients behind one provider seam
  • solutions/determined/crates/determined-agent/src/agent.rs runs the loop and picks the provider
  • solutions/determined/crates/determined-agent/src/tools.rs implements the vault read tools on determined-vault
  • solutions/determined/crates/determined-agent/src/anthropic.rs and ollama.rs are the provider clients
  • solutions/determined/crates/determined-agent/
  • solutions/determined/crates/determined-agent/src/agent.rs#run_query
  • solutions/determined/crates/determined-agent/src/tools.rs
  • solutions/determined/crates/determined-agent/src/anthropic.rs
  • solutions/determined/crates/determined-agent/src/ollama.rs

← Back to Capabilities