A FastAPI REST API server built using FastAPI and Agno AI. The server configuration has routes handlers to fetch latest data of the stock tickers. It also interacts with the Agno AI to get the predictions for the stock prices, answers to the queries, and use tools like search, get_stock_data, and get_stock_price.
The backend server can be locally deployed using Docker. Use the following command to build and run the server:
- Build the Docker image
docker-compose build- Run the Docker container
docker-compose up- Access the server
http://localhost:8000/The API documentation is available at the following URL:
http://localhost:8000/docsThe following environment variables are required to run the server:
NEWS_API_KEY: Your News API key for fetching news articles.
REDIS_URL: The URL of the Redis server for caching.
NEBIUS_API_KEY: Your Nebius model API key for AI predictions.