Skip to content

Commit 547782b

Browse files
committed
Remove date from get_weather for consistency
1 parent bd7d0d0 commit 547782b

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

examples/pydanticai_tools.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,19 +37,17 @@
3737
model = OpenAIChatModel(os.environ["OLLAMA_MODEL"], provider=OpenAIProvider(openai_client=client))
3838

3939

40-
def get_weather(city: str, date: str) -> dict:
40+
def get_weather(city: str) -> dict:
4141
logger.info(f"Getting weather for {city}")
4242
if random.random() < 0.05:
4343
return {
4444
"city": city,
45-
"date": date,
4645
"temperature": 72,
4746
"description": "Sunny",
4847
}
4948
else:
5049
return {
5150
"city": city,
52-
"date": date,
5351
"temperature": 60,
5452
"description": "Rainy",
5553
}

0 commit comments

Comments
 (0)