Skip to main content

tool_result

Function tool_result 

Source
pub fn tool_result(answer: &Value, png: Option<String>) -> Value
Expand description

A tool’s MCP result: the answer as text and as structured content, the picture if there is one, and an error result unless the answer is ok.