Skip to main content

tool_result

Function tool_result 

Source
fn tool_result(outcome: &Result<Answer, String>) -> Value
Expand description

A tool’s answer as MCP’s CallToolResult: its text, its data, and whether it failed. A failure is said in the result, not as a protocol error, so the agent can correct itself.