from_metadata
Method
This is a method of the SkillAutomation class in the models module.Parse an automation block from a skill’s
metadata mapping.
Looks up metadata['praisonai']['automation']. Returns None when the
block is absent or malformed (missing/empty schedule), so skills
without automation simply parse to automation=None.
Signature
Parameters
dict
required
The parsed
metadata bag from SKILL.md frontmatter.Returns
Optional['SkillAutomation']
SkillAutomation instance, or None when no valid block is present.
Uses
cls
Used By
Source
View on GitHub
praisonaiagents/skills/models.py at line 170
