Skip to main content

MAX_REPLACEMENT_LEN

Constant MAX_REPLACEMENT_LEN 

Source
pub const MAX_REPLACEMENT_LEN: usize = _; // 65_536usize
Expand description

Maximum length of an operator-supplied DenyWithEdit / ReplaceWith replacement, in bytes. The replacement is operator-authored but still untrusted input that becomes a tool result fed back to the model — cap it so a runaway paste can’t blow up the context window.