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.

Parameters

string $id
string $name
array $arguments
string|null $resultId
string|null $reasoningId
array|null $reasoningSummary
string|null $reasoningEncryptedContent
string|null $thoughtSignature

at line 30
static ToolCall fromArray(array $data)

Reconstruct an instance from a previously serialized toArray() payload.

Parameters

array $data

Return Value

ToolCall

at line 47
array toArray()

Get the instance as an array.

Return Value

array

at line 64
array jsonSerialize()

Get the JSON serializable representation of the instance.

Return Value

array