Load Assets • AI Agent SDK
load_assets: Load asset paths from skill's assets/ directory (Level 3).
load_assets
Method
</div>
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
def load_assets(skill: LoadedSkill) -> dictParameters
ParamField
LoadedSkillLoadedSkill instance
Returns
ResponseField
dictDict mapping asset names to their paths
Uses
assets_dir.existsassets_dir.is_dirassets_dir.iterdirasset_file.is_file
Used By
Source
View on GitHubpraisonaiagents/skills/loader.py at line 179