Praison AI
Enterprise
Agents
Bot
Use Cases
University
Docs
Tools
Run
from praisonai import Agent def word_count(text: str) -> str: """Count the words in text.""" return str(len(text.split())) def echo(text: str) -> str: """Return the same text.""" return text agent = Agent( instructions="Use word_count for counting. Never count without the tool.", tools=[word_count, echo], ) print(agent.start("How many words in: agents use tools?"))
Press Run. The result appears here.
Esc
Search in
All
Docs
University