final | |
|---|---|
readonly | |
extends |
BaseMetadata<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, null|non-empty-string $description = null, null|bool $required = null)
|
# |
public
|
toArray(): array
|
# |
| Methods inherited from Nexus\Mcp\Schema\BaseMetadata |
|---|
getDisplayName(), jsonSerialize() |
| Properties | |||
|---|---|---|---|
public
|
null|non-empty-string
|
$description
|
# |
public
|
null|bool
|
$required
|
# |
| Properties inherited from Nexus\Mcp\Schema\BaseMetadata |
|---|
$name, $title |