<out TEnvelope is array<string, mixed> = array<string, mixed>>abstract | |
|---|---|
readonly | |
implements |
Arrayable<TEnvelope>, JsonRpcResponse |
A successful (non-error) response to a request.
| Methods | ||
|---|---|---|
public
|
__construct(RequestId $id, Result $result)
|
# |
public
|
jsonSerialize(): array
|
# |
protected
static
|
parseId(array<string, mixed> $data): RequestId
|
# |
protected
static
|
parseResult(array<string, mixed> $data): array<string, mixed>
|
# |
protected
static
|
isInputRequired(array<string, mixed> $payload): bool
|
# |
protected
static
|
rejectInputRequired(array<string, mixed> $payload): void
|
# |
| Constants inherited from Nexus\Mcp\Core\Schema\JsonRpc\JsonRpcMessage |
|---|
|
| Properties | |||
|---|---|---|---|
public
|
RequestId
|
$id
|
# |
public
|
Result
|
$result
|
# |