parse_tool_response

Function parse_tool_response 

Source
pub fn parse_tool_response<T: StructuredOutput>(
    tool_call: &ToolCall,
) -> Result<T>
Expand description

Parse a tool call response into a structured type

This validates the tool call arguments against the expected schema and deserializes them into the target type.