Skip to main content

MAX_TOOL_OUTPUT_BYTES

Constant MAX_TOOL_OUTPUT_BYTES 

Source
const MAX_TOOL_OUTPUT_BYTES: usize = 100_000;
Expand description

The most a single tool output may carry, wrapper and instructions included.

Postgres counts VARCHAR(131072) in characters and this is a byte budget, so staying under the column is guaranteed rather than merely likely. The gap to the column is also the headroom that keeps one result from eating a turn’s whole context window.