Skip to main content

TOOL_CONTENT_THRESHOLD_CHARS

Constant TOOL_CONTENT_THRESHOLD_CHARS 

Source
pub(crate) const TOOL_CONTENT_THRESHOLD_CHARS: usize = 2_000;
Expand description

Maximum number of characters of text allowed in a single unprotected role: "tool" or role: "assistant" message, in either content shape, before it is eligible for replacement with TRUNCATION_PLACEHOLDER.