From Frontmatter • AI Agent SDK
from_frontmatter: Parse requirements from skill frontmatter.
from_frontmatter
Method
</div>
This is a method of the SkillRequirements class in the models module.
Parse requirements from skill frontmatter.
Normalizes various naming conventions:
- requires_servers, requires_tools (Hermes/OpenClaw style)
- allowed-tools (existing PraisonAI convention)
- openclaw (OpenClaw-specific hints)
Signature
def from_frontmatter(metadata: dict) -> 'SkillRequirements'Parameters
ParamField
dictRaw frontmatter dict
Returns
ResponseField
'SkillRequirements'SkillRequirements instance
Uses
cls
Used By
Source
View on GitHubpraisonaiagents/skills/models.py at line 54