Praison AI
Platform
Use Cases
Bot
Partners
Community
University
Docs
Get Started
Data agent
Run
from praisonai import Agent def total(values: str) -> str: """Add a comma-separated list of numbers.""" nums = [float(part) for part in values.split(",") if part.strip()] return str(sum(nums)) agent = Agent( name="Data", instructions="Use the total tool for arithmetic.", tools=[total], ) print(total("2, 4, 6")) print(agent.start("What is the total of 2, 4, 6?"))
Press Run. The result appears here.