Ask a question to get started
Enter to send•Shift+Enter new line
Parse a single tool call.
parse_tool_call( raw_tool_call: dict[str, Any], *, partial: bool = False, strict: bool = False, return_id: bool = True ) -> dict[str, Any] | None
raw_tool_call
dict[str, Any]
The raw tool call 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.