Praison AI
Platform
Use Cases
Bot
Partners
Community
University
Docs
Get Started
A schema
Run
from praisonai import Agent from pydantic import BaseModel class TopicList(BaseModel): topics: list[str] agent = Agent(instructions="Reply with the fields you are given.") result = agent.chat("List 3 AI topics", output_pydantic=TopicList) for topic in result.topics: print(topic)
Press Run. The result appears here.