This application creates a financial analysis agent powered by xAI's Grok model, combining real-time stock data with web search capabilities. It provides structured financial insights through an interactive playground interface.
- Powered by xAI's Grok-4-1-Fast model
- Real-time stock data analysis via YFinance
- Web search capabilities through DuckDuckGo
- Formatted output with tables for financial data
- Interactive playground interface
-
Clone or download the project files.
-
Install the required dependencies:
pip install -r requirements.txt- Get your xAI API Key
- Sign up for an xAI API account
- Set your
XAI_API_KEYenvironment variable.
Windows (PowerShell):
$env:XAI_API_KEY='your-api-key-here'Linux/macOS:
export XAI_API_KEY='your-api-key-here'- Run the AI Agent
python xai_finance_agent.py- Open your web browser and navigate to the URL provided in the console output to interact with the AI financial agent through the playground interface.
To manage, monitor, and interact with your financial agent through the Agno Control Plane, you need to connect your running AgentOS instance.
- Follow the steps in the official documentation to register your local AgentOS and establish the connection.