Correct optional fields
This commit is contained in:
parent
93384cc859
commit
35bf0314e9
2 changed files with 4 additions and 8 deletions
|
@ -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.
|
||||
|
||||
|
|
|
@ -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.
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue