Getting Started
Agent with Tools
This example shows how to create an AI news reporter agent that can search the web for real-time news and present them with a distinctive NYC personality. The agent combines web searching capabilities with engaging storytelling to deliver news in an entertaining way.
Example prompts to try:
- “What’s the latest headline from Wall Street?”
- “Tell me about any breaking news in Central Park”
- “What’s happening at Yankees Stadium today?”
- “Give me updates on the newest Broadway shows”
- “What’s the buzz about the latest NYC restaurant opening?”
Code
agent_with_tools.py
Usage
1
Create a virtual environment
Open the Terminal
and create a python virtual environment.
2
Install libraries
3
Run the agent