Skip to main content

maybe_auto_response

Function maybe_auto_response 

Source
pub fn maybe_auto_response(
    state: &AutonomyState,
    tool_name: &str,
    action: Option<&str>,
    output: &str,
    crp_mode: CrpMode,
    minimal_overhead: bool,
) -> String
Expand description

Applies ctx_response automatically for large outputs (guarded + bounded). Never runs on JSON outputs to avoid breaking machine-readable responses.