<T, U is array<string, mixed>>abstract | |
|---|---|
implements |
JsonSerializable, Arrayable<U> |
A JSON schema object defining the expected parameters for the tool or the structure of the tool's output
returned in the structuredContent field of a CallToolResult.
| Methods | ||
|---|---|---|
protected
|
__construct(non-empty-string $name)
|
# |
public
static
|
root<Tu, Tv is array<string, mixed>>(self<out Tu, out Tv> ...$properties): ObjectType
|
# |
public
static
|
asArray(non-empty-string $name): ArrayType
|
# |
public
static
|
asBoolean(non-empty-string $name): BooleanType
|
# |
public
static
|
asInteger(non-empty-string $name): IntegerType
|
# |
public
static
|
asNull(non-empty-string $name): NullType
|
# |
public
static
|
asNumber(non-empty-string $name): NumberType
|
# |
public
static
|
asObject<Tu, Tv is array<string, mixed>>(non-empty-string $name, self<out Tu, out Tv> ...$properties): ObjectType
|
# |
public
static
|
asString(non-empty-string $name): StringType
|
# |
public
|
title(non-empty-string $title): static
|
# |
public
|
description(non-empty-string $description): static
|
# |
public
|
default(T $default): static
|
# |
public
|
required(): static
|
# |
public
|
isRequired(): bool
|
# |
public
|
jsonSerialize(): template-type<static, Arrayable, 'T'>
|
# |
| Properties | |||
|---|---|---|---|
protected
|
null|non-empty-string
|
$title = null
|
# |
protected
|
null|non-empty-string
|
$description = null
|
# |
protected
|
null|T
|
$default = null
|
# |
public
readonly
|
non-empty-string
|
$name
|
# |