Module output_store

Module output_store 

Source
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§

OutputInfo
Information about a stored output
SessionRef
Session registry entry - tracks what’s available for retrieval

Enums§

OutputType
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