Skip to main content

compact_tool_result

Function compact_tool_result 

Source
fn compact_tool_result(
    contract_id: &str,
    value: &str,
    max_chars: usize,
) -> String
Expand description

Bound a tool result without turning structured JSON into an invalid prefix. Scene list contracts keep the identifiers needed for a targeted follow-up while explicitly reporting whether any records were omitted.