weather_agent.py
Run Your Agent
1
Set up your environment
2
Install Definable
3
Export your API key
4
Run
How It Works
- The agent sends your message and tool definitions to the model.
- The model decides which tools to call (if any).
- Tools execute and results are returned to the model.
- The model produces a final text response.
max_iterations is reached.
Development vs Production
Useagent.run() for production. It returns a typed RunOutput with content, messages, metrics, and status.