Skip to main content

format_tool_result

Function format_tool_result 

Source
pub fn format_tool_result(result: &Value) -> String
Expand description

Human-readable rendering of a tool result, prefixing Error: on failure. Prefer is_tool_error + extract_tool_content on execution paths that need to map failures onto a structured error type.