Skip to content

Add weather lookup function example#46

Open
Thomasyoung113 wants to merge 1 commit intoNousResearch:mainfrom
Thomasyoung113:add-weather-function-example
Open

Add weather lookup function example#46
Thomasyoung113 wants to merge 1 commit intoNousResearch:mainfrom
Thomasyoung113:add-weather-function-example

Conversation

@Thomasyoung113
Copy link

Adds a new weather lookup function using wttr.in API as an example for function calling.

Changes

  • Added get_weather() function to functions.py that fetches current weather data from wttr.in API
  • Returns temperature, humidity, wind speed, conditions and more
  • Updated README.md with documentation of all available functions including the new weather function
  • Added example usage showing how to query weather for any location

Example

python functioncall.py --query "What's the weather like in Tokyo?"

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