Skip to main content

Module output_store

Module output_store 

Source
Expand description

Output persistence for large tool results.

When a tool produces output larger than the inline threshold, it’s persisted to disk and a reference is returned instead. This prevents large outputs from bloating the context window.

Functions§

cleanup_old_outputs
Clean up old persisted outputs (older than 24 hours).
persist_if_large
Persist large output to disk and return a summary reference.
read_persisted
Read a persisted output by tool_use_id.