fetch • AI Agent SDK
fetch: Sync the remote source into “cache_dir“ and return skill dirs.
fetch
Method
</div>
This is a method of the RemoteSkillSourceProtocol class in the protocols module.
Sync the remote source into `cache_dir` and return skill dirs.
Returns the list of local directories containing fetched skills (the parent directories that hold skill subdirectories). On network error, implementations should fall back to the last-good cache rather than raise, so discovery keeps working offline.
Signature
def fetch(cache_dir: Path) -> List[Path]Parameters
ParamField
PathNo description available.
Returns
ResponseField
List[Path]The result of the operation.
Used By
Source
View on GitHubpraisonaiagents/skills/protocols.py at line 26