final | |
|---|---|
readonly | |
extends |
Result<array{_meta?: template-type<ResultMetaObject, MetaObject, 'T'>, resultType: non-empty-string, taskId: non-empty-string, status: non-empty-string, createdAt: non-empty-string, lastUpdatedAt: non-empty-string, ttlMs: (null|int), statusMessage?: non-empty-string, pollIntervalMs?: int}> |
implements |
ServerResult, TaskHandleResult |
A task handle returned in lieu of a request's standard result, identifying
the long-running task the client polls with tasks/get.
| Methods | ||
|---|---|---|
public
|
__construct(
non-empty-string $taskId,
TaskStatus $status,
non-empty-string $createdAt,
non-empty-string $lastUpdatedAt,
?int $ttlMs,
null|non-empty-string $statusMessage = null,
?int $pollIntervalMs = null,
ResultMetaObject $meta = new GenericResultMetaObject(),
)
|
# |
public
static
|
fromArray(array $data): static
|
# |
public
|
toArray(): array
|
# |
public
|
rebuildWithMeta(ResultMetaObject $meta): static
|
# |
protected
|
getResultType(): string
|
# |
| Methods inherited from Nexus\Mcp\Core\Schema\Result |
|---|
jsonSerialize(), |
| Properties | |||
|---|---|---|---|
public
|
non-empty-string
|
$taskId
|
# |
public
|
TaskStatus
|
$status
|
# |
public
|
non-empty-string
|
$createdAt
|
# |
public
|
non-empty-string
|
$lastUpdatedAt
|
# |
public
|
?int
|
$ttlMs
|
# |
public
|
null|non-empty-string
|
$statusMessage
|
# |
public
|
?int
|
$pollIntervalMs
|
# |
| Properties inherited from Nexus\Mcp\Core\Schema\Result |
|---|
$meta |