final | |
|---|---|
readonly | |
implements |
Arrayable, SamplingMessageContentBlock |
The result of a tool use, provided by the user back to the assistant.
| Methods | ||
|---|---|---|
public
|
__construct(
string $toolUseId,
list<AudioContent|EmbeddedResource|ImageContent|ResourceLink|TextContent> $content,
?bool $isError = null,
null|array<string, mixed> $structuredContent = null,
MetaObject $meta = new MetaObject(),
)
|
# |
public
static
|
fromArray(array<string, mixed> $data): static
|
# |
public
|
toArray(): array
|
# |
public
|
jsonSerialize(): array
|
# |
| Constants | |||
|---|---|---|---|
public
|
string |
TYPE = 'tool_result'
|
# |
| Properties | |||
|---|---|---|---|
public
|
non-empty-string
|
$toolUseId
|
# |
public
|
list<AudioContent|EmbeddedResource|ImageContent|ResourceLink|TextContent>
|
$content
|
# |
public
|
?bool
|
$isError
|
# |
public
|
null|array<string, mixed>
|
$structuredContent
|
# |
public
|
MetaObject
|
$meta
|
# |