Skip to content

Commit 44ce5a3

Browse files
Abbas-Asadvcshih
authored andcommitted
Docs: Add missing docstring to get_weather function (openai#1478)
1 parent c663d10 commit 44ce5a3

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

examples/basic/tools.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ class Weather(BaseModel):
1313

1414
@function_tool
1515
def get_weather(city: str) -> Weather:
16+
"""Get the current weather information for a specified city."""
1617
print("[debug] get_weather called")
1718
return Weather(city=city, temperature_range="14-20C", conditions="Sunny with wind.")
1819

0 commit comments

Comments
 (0)