Format Skill For Prompt • AI Agent SDK

format_skill_for_prompt: Format a single skill as XML for system prompt.

format_skill_for_prompt

Function

</div>

This function is defined in the prompt module.

Format a single skill as XML for system prompt.

The `description` is truncated at 1,536 characters (G22) to keep the system-prompt listing bounded even with large skill libraries.

Signature

python
def format_skill_for_prompt(skill: SkillMetadata) -> str

Parameters

ParamField SkillMetadata

No description available.

Returns

ResponseField str

The result of the operation.

Uses

  • html.escape

Used By

Source

View on GitHub

praisonaiagents/skills/prompt.py at line 24


Related Documentation