Fetch Remote Skill Dirs • AI Agent SDK
fetch_remote_skill_dirs: Fetch all remote skill sources and return validated cache directories.
fetch_remote_skill_dirs
Function
</div>
This function is defined in the remote module.
Fetch all remote skill sources and return validated cache directories.
Signature
def fetch_remote_skill_dirs(sources: Any, cache_dir: Optional[Path]) -> List[Path]Parameters
ParamField
AnyIterable of URL strings, `{"url","ref"} dicts, or objects implementing fetch(cache_dir)`.
ParamField
Optional[Path]Override cache root (defaults to the shared remote cache).
Returns
ResponseField
List[Path]Existing local directories holding fetched skills. Directories with no valid skill are dropped. Failures are logged and skipped, never raised.
Uses
get_remote_cache_rootroot.mkdirimpl.fetchPathp.existsp.is_dirlogger.warning
Used By
Source
View on GitHubpraisonaiagents/skills/remote.py at line 187