Skip to content

Conversation

@AreebaxIrfan
Copy link

Summary

Fixes syntax and minor errors in the existing WeatherAgent example (examples/weather_agent.py).

Motivation

The previous version of the example contained syntax issues and setup mistakes that caused runtime errors.
This PR corrects those errors so developers can run the example without issues.

Changes

Fixed Agent initialization syntax (instructions="", model=...)

Corrected @function_tool decorator usage (failure_error_function=None)

Ensured the example runs successfully with Runner.run

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant