Weather AI Agent

An autonomous AI weather assistant built with Python and Groq that reasons through user requests, invokes external weather tools when needed, observes the results, and generates accurate natural-language responses using a ReAct-style workflow.
Overview
Weather AI Agent is an autonomous conversational agent that combines large language model reasoning with external tool execution to answer real-time weather queries.
Rather than relying solely on the LLM's internal knowledge, the agent determines when live information is required, invokes a weather tool, observes the returned data, and generates a final response grounded in the latest weather conditions.
The project demonstrates one of the core design patterns behind modern AI agents: combining reasoning with external tools.
Motivation
Large Language Models cannot reliably answer questions that depend on live information.
This project explores how an AI agent can extend its capabilities by interacting with external APIs instead of relying exclusively on pre-trained knowledge.
By separating reasoning from execution, the system becomes more reliable, transparent, and capable of handling real-world tasks.
Architecture
User
│
▼
Groq LLM
│
▼
Reasoning
│
▼
Tool Selection
│
▼
Weather Tool
│
▼
Live Weather API
│
▼
Observation
│
▼
Groq LLM
│
▼
Final Response
Agent Workflow
The agent follows a structured reasoning cycle:
Start
Receives the user's request and understands the problem.