final | |
|---|---|
readonly | |
extends |
BaseMetadata<array{type: 'ref/prompt', name: non-empty-string, title?: non-empty-string}> |
Identifies a prompt.
| Methods | ||
|---|---|---|
public
|
__construct(string $name, ?string $title = null)
|
# |
public
|
toArray(): array
|
# |
| Methods inherited from Nexus\Mcp\Schema\BaseMetadata |
|---|
getDisplayName(), jsonSerialize() |
| Properties | |||
|---|---|---|---|
public
|
non-empty-string
|
$type
|
# |
| Properties inherited from Nexus\Mcp\Schema\BaseMetadata |
|---|
$name, $title |