Discover Bundles • AI Agent SDK

discover_bundles: Discover bundle manifests alongside skills.

discover_bundles

Function

</div>

This function is defined in the bundles module.

Discover bundle manifests alongside skills.

Mirrors :func:discovery.discover_skills: scans the same roots, is forgiving of invalid manifests, and reports name collisions (first wins, later entries shadowed-and-logged).

Signature

python
def discover_bundles(skill_dirs: Optional[List[str]], include_defaults: bool) -> List[BundleManifest]

Parameters

ParamField Optional

Explicit skill-root directories to scan.

ParamField bool

Whether to include default skill directories.

Returns

ResponseField List[BundleManifest]

List of discovered BundleManifest objects.

Uses

  • resolve
  • expanduser
  • Path
  • path.exists
  • path.is_dir
  • get_default_skill_dirs
  • seen_dirs.add
  • logger.info

Used By

Source

View on GitHub

praisonaiagents/skills/bundles.py at line 148