ToolCall
class ToolCall implements Arrayable, JsonSerializable
Methods
__construct(string $id, string $name, array $arguments, string|null $resultId = null, string|null $reasoningId = null, array|null $reasoningSummary = null, string|null $reasoningEncryptedContent = null, string|null $thoughtSignature = null)
Create a tool call.
static ToolCall
fromArray(array $data)
Reconstruct an instance from a previously serialized toArray() payload.
array
toArray()
Get the instance as an array.
array
jsonSerialize()
Get the JSON serializable representation of the instance.
Details
at line 15
__construct(string $id, string $name, array $arguments, string|null $resultId = null, string|null $reasoningId = null, array|null $reasoningSummary = null, string|null $reasoningEncryptedContent = null, string|null $thoughtSignature = null)
Create a tool call.
at line 30
static ToolCall
fromArray(array $data)
Reconstruct an instance from a previously serialized toArray() payload.
at line 47
array
toArray()
Get the instance as an array.
at line 64
array
jsonSerialize()
Get the JSON serializable representation of the instance.