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

python
def load_assets(skill: LoadedSkill) -> dict

Parameters

ParamField LoadedSkill

LoadedSkill instance

Returns

ResponseField 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