final | |
|---|---|
readonly | |
extends |
CacheableResult<array{_meta?: template-type<ResultMetaObject, MetaObject, 'T'>, resultType: non-empty-string, skill: template-type<Skill, Arrayable, 'T'>, ttlMs: int, cacheScope: value-of<CacheScope>}> |
implements |
ServerResult |
The result returned by the server for a skills/get request.
| Methods | ||
|---|---|---|
public
|
__construct(Skill $skill, int $ttlMs, CacheScope $cacheScope, 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
|
Skill
|
$skill
|
# |
| Properties inherited from Nexus\Mcp\Core\Schema\Result\CacheableResult |
|---|
$ttlMs, $cacheScope |
| Properties inherited from Nexus\Mcp\Core\Schema\Result |
|---|
$meta |