Skip to main content

normalize_tool_call_fields

Function normalize_tool_call_fields 

Source
pub fn normalize_tool_call_fields(obj: Value) -> Value
Expand description

Normalize all tool call fields (both name and arguments). Combines normalize_name_field and normalize_arguments_field.

This handles formats like Cohere that use both “tool_name” and “parameters” instead of the standard “name” and “arguments”.