diff --git a/README.md b/README.md index 8142c99ce..c69ee732b 100644 --- a/README.md +++ b/README.md @@ -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, diff --git a/examples/snippets/servers/structured_output.py b/examples/snippets/servers/structured_output.py index 021ffb169..50ee130c7 100644 --- a/examples/snippets/servers/structured_output.py +++ b/examples/snippets/servers/structured_output.py @@ -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, diff --git a/tests/server/fastmcp/test_integration.py b/tests/server/fastmcp/test_integration.py index 83fa10806..dc88cc025 100644 --- a/tests/server/fastmcp/test_integration.py +++ b/tests/server/fastmcp/test_integration.py @@ -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