to_prompt
Function
This function is defined in the prompt module.Generate prompt XML from skill directories. This is the main entry point for generating the <available_skills> block to inject into agent system prompts.
Signature
Parameters
List[Path]
required
List of paths to skill directories
Returns
str
XML string with <available_skills> block
Uses
Pathskill_dir.existsskill_dir.is_dirread_propertiesSkillMetadata.from_propertiesgenerate_skills_xml
Used By
Source
View on GitHub
praisonaiagents/skills/prompt.py at line 76
