Features
- Custom AI assistant using Nebius’s LLMs with the Strands Agent SDK.
- Weather forecasting capability using the National Weather Service API.
- Demonstrates using http_requesttool for making external API calls.
Prerequisites
- Python 3.12+
- uv - an extremely fast Python package installer and resolver.
- Nebius API key
Environment Variables
The application requires the following environment variable. You can create a.env file in the project root to store it.
- NEBIUS_API_KEY: Your Nebius Studio API key.
Setup
- 
Clone this repository and navigate to the agent’s directory:
- 
Create a virtual environment and install dependencies using uv:
- 
Create a .envfile and add yourNEBIUS_API_KEY:
Usage
Run the main script:- Create a weather assistant agent.
- Ask the agent to compare the temperature in New York and Chicago for the upcoming weekend.
- Output the assistant’s response.
Customization
You can modify theagent.py file to:
- Change the assistant’s system_prompt.
- Add more tools from strands_toolsor your own custom tools.
- Alter the example query passed to the weather_agent.
- Configure different LLM models supported by LiteLLM.