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

python
def fetch_remote_skill_dirs(sources: Any, cache_dir: Optional[Path]) -> List[Path]

Parameters

ParamField Any

Iterable of URL strings, `&#123;"url","ref"&#125; 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_root
  • root.mkdir
  • impl.fetch
  • Path
  • p.exists
  • p.is_dir
  • logger.warning

Used By

Source

View on GitHub

praisonaiagents/skills/remote.py at line 187


Related Documentation