load • AI Agent SDK

load: Convenience method to load a skill.

load

Method

</div>

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

Convenience method to load a skill.

Signature

python
def load(skill_path: str, activate: bool) -> Optional[LoadedSkill]

Parameters

ParamField str

Path to skill directory

ParamField bool

Whether to also load instructions

Returns

ResponseField Optional[LoadedSkill]

LoadedSkill or None if invalid

Uses

  • cls
  • loader.load_metadata
  • loader.activate

Used By

Source

View on GitHub

praisonaiagents/skills/loader.py at line 221