pub fn extract_tool_calls(value: &Value) -> Option<Vec<ToolCall>>Expand description
Extract tool call information from a Value.
Supports two formats:
- OpenAI format:
[{"id": "...", "function": {"name": "...", "arguments": "..."}}] - Simplified format:
{"id": "...", "name": "...", "arguments": "..."}