invoke • AI Agent SDK
invoke: Render a skill body into a ready-to-send prompt.
invoke
Method
</div>
This is a method of the SkillManager class in the manager module.
Render a skill body into a ready-to-send prompt.
Substitutes `$ARGUMENTS, $N, ${PRAISON_SKILL_DIR} and optionally runs !cmd inline shell blocks when shell_exec` is True.
Signature
def invoke(name: str, raw_args: str, session_id: Optional[str], shell_exec: bool) -> Optional[str]Parameters
ParamField
strNo description available.
ParamField
strNo description available.
ParamField
Optional[str]No description available.
ParamField
boolNo description available.
Returns
ResponseField
Optional[str]Rendered body, or None if the skill does not exist or is not user-invocable.
Uses
get_skillactivaterender_skill_bodyrender_shell_blocks
Source
View on GitHubpraisonaiagents/skills/manager.py at line 530