Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
2 changes: 1 addition & 1 deletion examples/snippets/servers/structured_output.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
2 changes: 1 addition & 1 deletion tests/server/fastmcp/test_integration.py
Original file line number Diff line number Diff line change
Expand Up @@ -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