Skip to main content

limit_content

Function limit_content 

Source
pub async fn limit_content(
    content: Vec<ContentBlock>,
) -> (Vec<ContentBlock>, Option<PathBuf>)
Expand description

Keeps model-facing text within OUTPUT_MAX_BYTES: longer text becomes one block in Codex’s format with the full text’s path, before any images.