Skip to content

Commit 1644b82

Browse files
changes structured temperature to not deadly (#1328)
1 parent 07ae8c0 commit 1644b82

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -400,7 +400,7 @@ def get_weather(city: str) -> WeatherData:
400400
"""Get weather for a city - returns structured data."""
401401
# Simulated weather data
402402
return WeatherData(
403-
temperature=72.5,
403+
temperature=22.5,
404404
humidity=45.0,
405405
condition="sunny",
406406
wind_speed=5.2,

examples/snippets/servers/structured_output.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ def get_weather(city: str) -> WeatherData:
2424
"""Get weather for a city - returns structured data."""
2525
# Simulated weather data
2626
return WeatherData(
27-
temperature=72.5,
27+
temperature=22.5,
2828
humidity=45.0,
2929
condition="sunny",
3030
wind_speed=5.2,

tests/server/fastmcp/test_integration.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -693,7 +693,7 @@ async def test_structured_output(server_transport: str, server_url: str) -> None
693693

694694
# Check that the result contains expected weather data
695695
result_text = weather_result.content[0].text
696-
assert "72.5" in result_text # temperature
696+
assert "22.5" in result_text # temperature
697697
assert "sunny" in result_text # condition
698698
assert "45" in result_text # humidity
699699
assert "5.2" in result_text # wind_speed

0 commit comments

Comments
 (0)