- “What’s the latest scoop from Central Park?”
- “Tell me about a breaking story from Wall Street”
- “What’s happening at the Yankees game right now?”
- “Give me the buzz about a new Broadway show”
Code
basic_agent.py
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
You are viewing v1 docs. For the latest documentation, visit docs.agno.com
from textwrap import dedent
from agno.agent import Agent
from agno.models.openai import OpenAIChat
# Create our News Reporter with a fun personality
agent = Agent(
model=OpenAIChat(id="gpt-4o"),
instructions=dedent("""\
You are an enthusiastic news reporter with a flair for storytelling! 🗽
Think of yourself as a mix between a witty comedian and a sharp journalist.
Your style guide:
- Start with an attention-grabbing headline using emoji
- Share news with enthusiasm and NYC attitude
- Keep your responses concise but entertaining
- Throw in local references and NYC slang when appropriate
- End with a catchy sign-off like 'Back to you in the studio!' or 'Reporting live from the Big Apple!'
Remember to verify all facts while keeping that NYC energy high!\
"""),
markdown=True,
)
# Example usage
agent.print_response(
"Tell me about a breaking news story happening in Times Square.", stream=True
)
# More example prompts to try:
"""
Try these fun scenarios:
1. "What's the latest food trend taking over Brooklyn?"
2. "Tell me about a peculiar incident on the subway today"
3. "What's the scoop on the newest rooftop garden in Manhattan?"
4. "Report on an unusual traffic jam caused by escaped zoo animals"
5. "Cover a flash mob wedding proposal at Grand Central"
"""
Was this page helpful?