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 &lt;bundle_instructions&gt;` block so the documented bundle guidance actually reaches the prompt.

Signature

python
def to_prompt() -> str

Returns

ResponseField str

XML string with &lt;available_skills&gt; block

Uses

  • get_available_skills
  • generate_skills_xml
  • get_bundle_instructions
  • html.escape

Used By

Source

View on GitHub

praisonaiagents/skills/manager.py at line 570