Skip to main content

load_assets

Method
This is a method of the SkillLoader class in the loader module.
Load asset paths from skill’s assets/ directory (Level 3). Note: For binary assets, only paths are returned, not contents.

Signature

Parameters

LoadedSkill
required
LoadedSkill instance

Returns

dict
Dict mapping asset names to their paths

Uses

  • assets_dir.exists
  • assets_dir.is_dir
  • assets_dir.iterdir
  • asset_file.is_file

Used By

Source

View on GitHub

praisonaiagents/skills/loader.py at line 179