Expand description
RAG Storage Layer for Tool Outputs
Stores full tool outputs to disk for later retrieval by the agent. Implements the storage part of the RAG (Retrieval-Augmented Generation) pattern.
§Session Tracking
All stored outputs are tracked in a session registry, so the agent always knows what data is available for retrieval. Every compressed output includes the full list of available refs.
Structs§
- Output
Info - Information about a stored output
- Session
Ref - Session registry entry - tracks what’s available for retrieval
Enums§
- Output
Type - Output type detection for smart retrieval
Functions§
- cleanup_
old_ outputs - Clean up old stored outputs
- cleanup_
session_ registry - Clear old entries from session registry (called periodically)
- detect_
output_ type - Detect the output type for smart retrieval routing
- format_
session_ refs_ for_ agent - Format session refs as a user-friendly string for the agent
- get_
session_ refs - Get all session refs for inclusion in compressed outputs
- list_
outputs - List all stored outputs
- register_
session_ ref - Register a new output in the session registry
- retrieve_
analyze_ project - Smart retrieval for analyze_project outputs Supports queries like:
- retrieve_
filtered - Retrieve and filter output by query
- retrieve_
output - Retrieve stored output by reference ID
- store_
output - Store output to disk and return reference ID