final | |
|---|---|
readonly | |
implements |
Arrayable<array{title?: non-empty-string, readOnlyHint?: bool, destructiveHint?: bool, idempotentHint?: bool, openWorldHint?: bool}> |
Additional properties describing a Tool to clients. NOTE: all properties in ToolAnnotations are hints.
They are not guaranteed to provide a faithful description of
tool behavior (including descriptive properties like title). Clients should never make tool use decisions based on ToolAnnotations
received from untrusted servers.
| Methods | ||
|---|---|---|
public
|
__construct(
?string $title = null,
?bool $readOnlyHint = null,
?bool $destructiveHint = null,
?bool $idempotentHint = null,
?bool $openWorldHint = null,
)
|
# |
public
static
|
fromArray(array<string, mixed> $data): static
|
# |
public
|
toArray(): array
|
# |
public
|
jsonSerialize(): array|stdClass
|
# |
| Properties | |||
|---|---|---|---|
public
|
null|non-empty-string
|
$title
|
# |
public
|
?bool
|
$readOnlyHint
|
# |
public
|
?bool
|
$destructiveHint
|
# |
public
|
?bool
|
$idempotentHint
|
# |
public
|
?bool
|
$openWorldHint
|
# |