changes structured temperature to not deadly (#1328)
This commit is contained in:
parent
07ae8c0d4e
commit
1644b822b3
3 changed files with 3 additions and 3 deletions
|
|
@ -400,7 +400,7 @@ def get_weather(city: str) -> WeatherData:
|
|||
"""Get weather for a city - returns structured data."""
|
||||
# Simulated weather data
|
||||
return WeatherData(
|
||||
temperature=72.5,
|
||||
temperature=22.5,
|
||||
humidity=45.0,
|
||||
condition="sunny",
|
||||
wind_speed=5.2,
|
||||
|
|
|
|||
|
|
@ -24,7 +24,7 @@ def get_weather(city: str) -> WeatherData:
|
|||
"""Get weather for a city - returns structured data."""
|
||||
# Simulated weather data
|
||||
return WeatherData(
|
||||
temperature=72.5,
|
||||
temperature=22.5,
|
||||
humidity=45.0,
|
||||
condition="sunny",
|
||||
wind_speed=5.2,
|
||||
|
|
|
|||
|
|
@ -693,7 +693,7 @@ async def test_structured_output(server_transport: str, server_url: str) -> None
|
|||
|
||||
# Check that the result contains expected weather data
|
||||
result_text = weather_result.content[0].text
|
||||
assert "72.5" in result_text # temperature
|
||||
assert "22.5" in result_text # temperature
|
||||
assert "sunny" in result_text # condition
|
||||
assert "45" in result_text # humidity
|
||||
assert "5.2" in result_text # wind_speed
|
||||
|
|
|
|||
Loading…
Reference in a new issue