Ask a question to get started
Enter to send•Shift+Enter new line
Parse a list of tool calls.
parse_tool_calls( raw_tool_calls: list[dict], *, partial: bool = False, strict: bool = False, return_id: bool = True ) -> list[dict[str, Any]]
raw_tool_calls
list[dict]
The raw tool calls to parse.
partial
bool
False
Whether to parse partial JSON.
strict
Whether to allow non-JSON-compliant strings.
return_id
True
Whether to return the tool call id.