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

python
def from_frontmatter(metadata: dict) -> 'SkillRequirements'

Parameters

ParamField dict

Raw frontmatter dict

Returns

ResponseField 'SkillRequirements'

SkillRequirements instance

Uses

  • cls

Used By

Source

View on GitHub

praisonaiagents/skills/models.py at line 54