Skip to content

Commit 5f184c0

Browse files
mutahirshah11MrunmayS
authored andcommitted
Adding docstring to get_weather tool (openai#1231)
1 parent 680b7cf commit 5f184c0

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

docs/agents.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ from agents import Agent, ModelSettings, function_tool
1616

1717
@function_tool
1818
def get_weather(city: str) -> str:
19+
"""returns weather info for the specified city."""
1920
return f"The weather in {city} is sunny"
2021

2122
agent = Agent(

0 commit comments

Comments
 (0)