Represents an AI's request to call a tool.
ToolCall()Example:
{"name": "foo", "args": {"a": 1}, "id": "123"}
This represents a request to call the tool named 'foo' with arguments
{"a": 1} and an identifier of '123'.
tool_call may also be used as a factory to create a ToolCall. Benefits
include:
The name of the tool to be called.
The arguments to the tool call as a dictionary.
An identifier associated with the tool call.
An identifier is needed to associate a tool call request with a tool call result in events when multiple concurrent tool calls are made.
Used for discrimination.