activate • AI Agent SDK

activate: Activate a skill and return its rendered body.

activate

Method

</div>

This is a method of the SkillActivationProtocol class in the activation module.

Activate a skill and return its rendered body.

Signature

python
def activate(name: str, arguments: str, session_id: Optional[str]) -> str

Parameters

ParamField str

Name of the skill to activate

ParamField str

Arguments to substitute in the skill body

ParamField Optional[str]

Optional session identifier for context

Returns

ResponseField str

Rendered skill body with arguments substituted

Exceptions

ValueError

If skill is not found or not user-invocable

Used By

Source

View on GitHub

praisonaiagents/skills/activation.py at line 15