Praison AI
Bot
Use Cases
University
Docs
Get Started
One check
Run
from pathlib import Path from praisonai import Agent folder = Path("/tmp/ferry-skill") folder.mkdir(exist_ok=True) (folder / "SKILL.md").write_text( "---\nname: ferry\ndescription: Use when asked the ferry price.\n---\n\n" "The ferry costs four pounds. Reply with that price only.\n" ) agent = Agent(instructions="Follow the skill. Reply with the price only.", skills=[str(folder)]) skill = agent.skill_manager.get_skill("ferry") agent.skill_manager.activate(skill) print("What is the ferry price?") print(agent.start("What is the ferry price?")) print("Where do apples grow?") print("Skill not used.")
Press Run. The result appears here.