final | |
|---|---|
readonly | |
implements |
Arrayable<array{id: non-empty-string, input: array<string, mixed>, name: non-empty-string, type: 'tool_use', _meta?: template-type<MetaObject, Arrayable, 'T'>}>, SamplingMessageContentBlock |
A request from the assistant to call a tool.
| Methods | ||
|---|---|---|
public
|
__construct(string $id, string $name, array<string, mixed> $input, MetaObject $meta = new MetaObject())
|
# |
public
static
|
fromArray(array<string, mixed> $data): static
|
# |
public
|
toArray(): array
|
# |
public
|
jsonSerialize(): array
|
# |
| Constants | |||
|---|---|---|---|
public
|
string |
TYPE = 'tool_use'
|
# |
| Properties | |||
|---|---|---|---|
public
|
non-empty-string
|
$id
|
# |
public
|
non-empty-string
|
$name
|
# |
public
|
array<string, mixed>
|
$input
|
# |
public
|
MetaObject
|
$meta
|
# |