Skip to content

fix: correct syntax error#71

Open
AreebaxIrfan wants to merge 1 commit intopanaversity:mainfrom
AreebaxIrfan:add-weather-agent-example
Open

fix: correct syntax error#71
AreebaxIrfan wants to merge 1 commit intopanaversity:mainfrom
AreebaxIrfan:add-weather-agent-example

Conversation

@AreebaxIrfan
Copy link
Copy Markdown

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

Copy link
Copy Markdown

@usama7871 usama7871 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What are you trying to do ?

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.

2 participants