To Prompt • AI Agent SDK
to_prompt: Generate XML prompt for available skills.
to_prompt
Method
</div>
This is a method of the SkillManager class in the manager module.
Generate XML prompt for available skills.
When one or more `@bundle selectors carried a bundle-level instruction, those are prepended in a <bundle_instructions>` block so the documented bundle guidance actually reaches the prompt.
Signature
def to_prompt() -> strReturns
ResponseField
strXML string with <available_skills> block
Uses
get_available_skillsgenerate_skills_xmlget_bundle_instructionshtml.escape
Used By
Source
View on GitHubpraisonaiagents/skills/manager.py at line 570