| Methods |
public
|
__construct(
list<DirectorySkill> $skills = [],
null|SkillProviderInterface $provider = null,
int<1, max> $pageSize = CursorPaginator::DEFAULT_PAGE_SIZE,
int<0, max> $ttlMs = 0,
CacheScope $cacheScope = CacheScope::Private,
LoggerInterface $logger = new NullLogger(),
)
Parameters
| $skills |
The skills enumerated by skills/list
|
| $provider |
Source of the skills left out of the listing
|
|
#
|
public
|
list(?Cursor $cursor): ListSkillsResult
|
#
|
public
|
get(string $uri, ServerContext $context): GetSkillResult
Parameters
| $uri |
URI of the skill's SKILL.md
|
Implements
|
#
|
public
|
listResources(?Cursor $cursor): ListResourcesResult
The skill files enumerated by resources/list.
The skill files enumerated by resources/list.
Implements
|
#
|
public
|
readFile(string $uri, ServerContext $context): ?ReadResourceResult
The file at the URI, or null when the store serves no skill file there.
The file at the URI, or null when the store serves no skill file there.
Implements
|
#
|
public
|
readDirectory(string $uri, ?Cursor $cursor, ServerContext $context): ReadResourceDirectoryResult
Parameters
| $uri |
URI of the directory, written without a trailing slash
|
Implements
|
#
|