pub fn tool_result_json(result: &AgentToolResult) -> ValueExpand description
Serialize a tool result into the stable wire shape (content blocks, details, usage, and the batch hints).
pub fn tool_result_json(result: &AgentToolResult) -> ValueSerialize a tool result into the stable wire shape (content blocks, details, usage, and the batch hints).