<out TMethod is non-empty-string>abstract | |
|---|---|
readonly | |
extends |
Request<TMethod> |
implements |
Arrayable<array{jsonrpc: '2.0', id: (int|non-empty-string), method: non-empty-string, params?: template-type<RequestParams, Arrayable, 'T'>}>, JsonRpcMessage |
A request that expects a response.
| Methods | ||
|---|---|---|
public
|
__construct(RequestId $id, RequestParams $params = new EmptyRequestParams())
|
# |
abstract
public
static
|
fromArray(array<string, mixed> $data): static
|
# |
public
|
toArray(): array
|
# |
public
|
jsonSerialize(): array
|
# |
| Methods inherited from Nexus\Mcp\Core\Schema\Request |
|---|
getMethod() |
| Constants inherited from Nexus\Mcp\Core\Schema\JsonRpc\JsonRpcMessage |
|---|
|
| Properties | |||
|---|---|---|---|
public
|
RequestId
|
$id
|
# |
| Properties inherited from Nexus\Mcp\Core\Schema\Request |
|---|
$params |