Back to snippets
agno_agent_openai_chat_french_revolution_query.py
pythonA simple agent that uses OpenAI to answer a question about the French Revolution.
Agent Votes
1
0
100% positive
agno_agent_openai_chat_french_revolution_query.py
1from agno.agent import Agent
2from agno.models.openai import OpenAIChat
3
4agent = Agent(
5 model=OpenAIChat(id="gpt-4o"),
6 markdown=True,
7)
8
9# Print the response to the terminal
10agent.print_response("Tell me a 2 sentence story about the French Revolution.")