Correct optional fields
Some checks failed
CI / Build and push Docker image (pull_request) Failing after 11s
CI / Build and push Docker image (push) Successful in 1m38s

This commit is contained in:
Tom Foster 2025-07-13 15:52:01 +01:00
parent 93384cc859
commit 35bf0314e9
2 changed files with 4 additions and 8 deletions

View file

@ -81,12 +81,10 @@ class WeatherTool(BaseTool):
summary="Get current weather conditions and hourly forecast by coordinates",
)
def forecast(
latitude: Annotated[
float | None, Query(description="Latitude for the location (e.g. 52.52)")
] = None,
latitude: Annotated[float, Query(description="Latitude for the location (e.g. 52.52)")],
longitude: Annotated[
float | None, Query(description="Longitude for the location (e.g. 13.41)")
] = None,
float, Query(description="Longitude for the location (e.g. 13.41)")
],
) -> WeatherForecastOutput:
"""Retrieves the weather forecast for a given location.

View file

@ -81,9 +81,7 @@ class WebTool(BaseTool):
summary="Fetch raw HTML content and headers from any URL",
)
def raw(
url: Annotated[
HttpUrl | None, Query(description="URL to fetch raw content and headers from")
] = None,
url: Annotated[HttpUrl, Query(description="URL to fetch raw content and headers from")],
) -> WebRawResponse:
"""Fetches the raw HTML content and headers from a given URL.