<T is array<string, mixed>>final | |
|---|---|
readonly | |
extends |
Result<array{_meta?: array<string, mixed>, messages: list<template-type<PromptMessage<T>, Arrayable, 'T'>>, description?: non-empty-string}> |
implements |
ServerResult |
The server's response to a prompts/get request from the client.
| Methods | ||
|---|---|---|
public
|
__construct(list<PromptMessage<T>> $messages, null|non-empty-string $description = null, ?array $meta = null)
|
# |
public
|
toArray(): array
|
# |
| Methods inherited from Nexus\Mcp\Schema\Result\Result |
|---|
jsonSerialize() |
| Properties | |||
|---|---|---|---|
public
|
list<PromptMessage<T>>
|
$messages
|
# |
public
|
null|non-empty-string
|
$description
|
# |
| Properties inherited from Nexus\Mcp\Schema\Result\Result |
|---|
$meta |