Restore Skill • AI Agent SDK

restore_skill: Restore a previously archived skill back to active use.

restore_skill

Method

</div>

This is a method of the SkillManager class in the manager module.

Restore a previously archived skill back to active use.

Signature

python
def restore_skill(name: str, skill_dir: Optional[str]) -> dict

Parameters

ParamField str

Archived skill name

ParamField Optional[str]

Optional destination directory (defaults to the first default skill dir)

Returns

ResponseField dict

Dict with success status

Uses

  • src.exists
  • src.is_dir
  • expanduser
  • Path
  • get_default_skill_dirs
  • base_path.mkdir
  • dest.exists
  • shutil.move
  • add_skill

Source

View on GitHub

praisonaiagents/skills/manager.py at line 956


Related Documentation