final | |
---|---|
readonly | |
extends |
Message |
A successful (non-error) response to a request.
Methods | ||
---|---|---|
public
|
__construct(non-empty-string $jsonrpc, RequestId $requestId, Result $result)
|
# |
public
|
toArray(): array{jsonrpc: non-empty-string, id: (int|non-empty-string), result: array<string, mixed>}
|
# |
public
|
jsonSerialize(): array{jsonrpc: non-empty-string, id: (int|non-empty-string), result: mixed}
|
# |
Constants inherited from Nexus\Mcp\Message\Message |
---|
|
Properties | |||
---|---|---|---|
public
|
RequestId
|
$requestId
|
# |
public
|
Result
|
$result
|
# |
Properties inherited from Nexus\Mcp\Message\Message |
---|
$jsonrpc |