Skip to main content

persist_if_large

Function persist_if_large 

Source
pub fn persist_if_large(
    content: &str,
    tool_name: &str,
    tool_use_id: &str,
) -> String
Expand description

Persist large output to disk and return a summary reference.

If the content is under the threshold, returns it unchanged. Otherwise, writes to the output store and returns a truncated version with a file path reference.