final | |
|---|---|
readonly | |
extends |
BaseMetadata |
implements |
Arrayable<array{name: non-empty-string, title?: non-empty-string, description?: non-empty-string, required?: bool}> |
Describes an argument that a prompt can accept.
| Methods | ||
|---|---|---|
public
|
__construct(string $name, ?string $title = null, ?string $description = null, ?bool $required = null)
|
# |
public
static
|
fromArray(array<string, mixed> $data): static
|
# |
public
|
toArray(): array
|
# |
public
|
jsonSerialize(): array
|
# |
| Methods inherited from Nexus\Mcp\Core\Schema\BaseMetadata |
|---|
getDisplayName() |
| Properties | |||
|---|---|---|---|
public
|
null|non-empty-string
|
$description
|
# |
public
|
?bool
|
$required
|
# |
| Properties inherited from Nexus\Mcp\Core\Schema\BaseMetadata |
|---|
$name, $title |