Learn how to build an Agentic System for a smart weather application in a Python-based tech stack
GALILEO_PROJECT
, while your Log stream will become the GALILEO_LOG_STREAM
.
.env.example
file to .env
and configure your API keys:
.env
file with your actual API keys:
GALILEO_PROJECT
and GALILEO_LOG_STREAM
can be customized to match your Galileo project setup.
agent/weather_vibes_agent.py
)tools/
)tools/weather_tool.py
): Fetches weather data from WeatherAPItools/recommendation_tool.py
): Generates weather-appropriate item suggestionstools/youtube_tool.py
): Finds videos matching the weather mooddescriptor.py
)agent.py
)templates/
)agent.py
ties everything together and adds Galileo instrumentation for observability.
Key Ingredients:
agent.py
wraps the tool execution with Galileo’s @log
decorator:
weather_vibes_agent
)weather_vibes_agent
)tools/
directory:
ModuleNotFoundError: No module named 'weather_vibes'
Solution:
sdk-examples/python/agent/weather-vibes-agent
pip install -r requirements.txt
.env
file has the correct API keysGALILEO_API_KEY
is valid and has proper permissionsGALILEO_PROJECT
, GALILEO_LOG_STREAM
, and GALILEO_CONSOLE_URL
match your Galileo setuppip install galileo
templates/
directory exists with required template filespip install Jinja2