final | |
|---|---|
extends |
ToolSchema<array<string, mixed>, array{type: 'object', description?: non-empty-string, title?: non-empty-string, properties?: array<non-empty-string, array<string, mixed>>, required?: list<non-empty-string>, additionalProperties: bool}> |
The object type is used for validating key-value maps (objects).
| Methods | ||
|---|---|---|
protected
|
__construct<T, U is array<string, mixed>>(non-empty-string $name, ToolSchema<out T, out U> ...$properties)
|
# |
public
|
addProperty<T, U is array<string, mixed>>(ToolSchema<out T, out U> ...$property): self
|
# |
public
|
markAsRequired(non-empty-string $name): self
|
# |
public
|
allowAdditionalProperties(): self
|
# |
public
|
toArray(): array
|
# |
| Methods inherited from Nexus\Mcp\Schema\Tool\ToolSchema\ToolSchema |
|---|
root(), asArray(), asBoolean(), asInteger(), asNull(), asNumber(), asObject(), asString(), title(), description(), default(), required(), isRequired(), jsonSerialize() |
| Properties inherited from Nexus\Mcp\Schema\Tool\ToolSchema\ToolSchema |
|---|
$title, $description, $default, $name |