| Methods |
public
|
__construct(Client $client, int<1, max> $maxFileBytes = Skills::MAX_BYTES_PER_SKILL)
Parameters
| $maxFileBytes |
Size in bytes above which a file is refused
|
|
#
|
public
|
listSkills(?Cursor $cursor = null): ListSkillsResult
One page of the skills listed by the server, which may serve others without listing them.
One page of the skills listed by the server, which may serve others without listing them.
Implements
|
#
|
public
|
getSkill(string $uri): Skill
The current entry of one skill, whether or not the server lists it.
The current entry of one skill, whether or not the server lists it.
Parameters
| $uri |
URI of the skill's SKILL.md
|
Implements
|
#
|
public
|
readSkillFile(
Skill $skill,
string $uri,
?array $inputResponses = null,
?string $requestState = null,
): InputRequiredResult|string
Reads one file of a skill and returns its bytes once they match the entry, or the server's request for
input. Call it only when the file is needed, since a host must not fetch a skill's files ahead of use.
Reads one file of a skill and returns its bytes once they match the entry, or the server's request for
input. Call it only when the file is needed, since a host must not fetch a skill's files ahead of use.
Implements
|
#
|
public
|
readDirectory(string $uri, ?Cursor $cursor = null): ReadResourceDirectoryResult
One page of the direct children of a directory resource.
One page of the direct children of a directory resource.
Parameters
| $uri |
URI of the directory, written without a trailing slash
|
Implements
|
#
|