pub fn tool_result_output(
call: CallId,
name: ToolName,
result: &ToolResult,
) -> UserContentExpand description
Shape a tool’s result as the tool result the model reads, without reparsing text. Anything but a success is an error result.