Represents an AI's request to call a tool.
public class ToolCallRepresents an AI's request to call a tool. 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'`.
server responded with an unexpected value)..
unexpectedly missing or null (e.g.
server responded with an unexpected value)..
Returns the raw JSON value of [id].
Returns the raw JSON value of [name].
Returns the raw JSON value of [type].
Returns a mutable builder for constructing an instance of [ToolCall].
server responded with an unexpected value)..
server responded with an unexpected value)..
server responded with an unexpected value)..
unexpectedly missing or null (e.g.
unexpectedly missing or null (e.g.
server responded with an unexpected value)..
server responded with an unexpected value)..
Returns an immutable instance of [ToolCall].
Returns an enum member corresponding to this class instance's value, or [Value._UNKNOWN] if the class was instantiated with an unknown value.
Returns an enum member corresponding to this class instance's value.
Returns this class instance's primitive wire representation.