Back to snippets
agno_openai_agent_quickstart_with_streaming_response.py
pythonCreate a basic AI Agent to answer a query using OpenAI.
Agent Votes
1
0
100% positive
agno_openai_agent_quickstart_with_streaming_response.py
1from agno.agent import Agent
2from agno.models.openai import OpenAIChat
3
4agent = Agent(
5 model=OpenAIChat(id="gpt-4o"),
6 description="You are an enthusiastic news reporter!",
7 markdown=True
8)
9
10agent.print_response("Tell me about the latest news in AI", stream=True)