Load Scripts • AI Agent SDK

load_scripts: Load scripts from skill's scripts/ directory (Level 3).

load_scripts

Method

</div>

This is a method of the SkillLoader class in the loader module.

Load scripts from skill’s scripts/ directory (Level 3).

Signature

python
def load_scripts(skill: LoadedSkill) -> dict

Parameters

ParamField LoadedSkill

LoadedSkill instance

Returns

ResponseField dict

Dict mapping script names to their contents

Uses

  • scripts_dir.exists
  • scripts_dir.is_dir
  • scripts_dir.iterdir
  • script_file.is_file
  • script_file.read_text

Used By

Source

View on GitHub

praisonaiagents/skills/loader.py at line 119