changes structured temperature to not deadly (#1328)

This commit is contained in:
jess 2025-08-31 16:09:49 -07:00 • committed by GitHub
commit 1644b822b3
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 3 additions and 3 deletions

View file

@ -400,7 +400,7 @@ def get_weather(city: str) -> WeatherData:
"""Get weather for a city - returns structured data.""" """Get weather for a city - returns structured data."""
# Simulated weather data # Simulated weather data
return WeatherData( return WeatherData(
temperature=72.5, temperature=22.5,
humidity=45.0, humidity=45.0,
condition="sunny", condition="sunny",
wind_speed=5.2, wind_speed=5.2,

View file

@ -24,7 +24,7 @@ def get_weather(city: str) -> WeatherData:
"""Get weather for a city - returns structured data.""" """Get weather for a city - returns structured data."""
# Simulated weather data # Simulated weather data
return WeatherData( return WeatherData(
temperature=72.5, temperature=22.5,
humidity=45.0, humidity=45.0,
condition="sunny", condition="sunny",
wind_speed=5.2, wind_speed=5.2,

View file

@ -693,7 +693,7 @@ async def test_structured_output(server_transport: str, server_url: str) -> None
# Check that the result contains expected weather data # Check that the result contains expected weather data
result_text = weather_result.content[0].text 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 "sunny" in result_text # condition
assert "45" in result_text # humidity assert "45" in result_text # humidity
assert "5.2" in result_text # wind_speed assert "5.2" in result_text # wind_speed