final | |
|---|---|
readonly | |
extends |
Result<array{_meta?: template-type<MetaObject, Arrayable, 'T'>, resultType: non-empty-string, description?: non-empty-string, messages: list<template-type<PromptMessage, Arrayable, 'T'>>}> |
implements |
ServerResult |
The result returned by the server for a prompts/get request.
| Methods | ||
|---|---|---|
public
|
__construct(list<PromptMessage> $messages, ?string $description = null, MetaObject $meta = new MetaObject())
|
# |
public
static
|
fromArray(array $data): static
|
# |
public
|
toArray(): array
|
# |
protected
|
getResultType(): string
|
# |
| Methods inherited from Nexus\Mcp\Core\Schema\Result |
|---|
jsonSerialize(), |
| Properties | |||
|---|---|---|---|
public
|
list<PromptMessage>
|
$messages
|
# |
public
|
null|non-empty-string
|
$description
|
# |
| Properties inherited from Nexus\Mcp\Core\Schema\Result |
|---|
$meta |