public ToolCall(id as String, name as String, arguments as Map<String, Object> = null, extraContent as Map<String, Object> = null):
Creates a tool call.
| Parameter | Description |
|---|---|
id | Provider-side call identifier. |
name | Requested tool name. |
arguments | Decoded tool arguments. |
extraContent | Provider-specific metadata that must be replayed with the assistant message. |
call = ToolCall("call_1", "listFiles", {"path": "."})
print(call.name)