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
def format_skill_for_prompt(skill: SkillMetadata) -> strParameters
ParamField
SkillMetadataNo description available.
Returns
ResponseField
strThe result of the operation.
Uses
html.escape
Used By
Source
View on GitHubpraisonaiagents/skills/prompt.py at line 24