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
def load(skill_path: str, activate: bool) -> Optional[LoadedSkill]Parameters
ParamField
strPath to skill directory
ParamField
boolWhether to also load instructions
Returns
ResponseField
Optional[LoadedSkill]LoadedSkill or None if invalid
Uses
clsloader.load_metadataloader.activate
Used By
PermissionAllowlist.loadFileEmergencyStop.stateFileTracker.loadKnowledge.indexToolRegistry.discover_plugins
Source
View on GitHubpraisonaiagents/skills/loader.py at line 221