flights_search()
Create a Google Flights tool for one-way and round-trip routes.
Usage
flights_search(
*,
provider="auto",
include_examples=True,
api_key=None,
client=None,
default_params=None,
timeout=None,
mode=SearchResultMode.COMPACT,
name="flights_search"
)The returned tool requires departure, arrival, and outbound date fields. Adding return_date selects a round trip. Cabin class and passenger counts are semantic typed fields; no synthetic q field is exposed.
Parameters
provider: ProviderName | str = "auto"-
Agent SDK adapter name,
"auto", or"function". include_examples: bool = True-
Add a short call example to the model-facing description.
api_key: str | None = None-
Runtime authentication, custom client, application filters, timeout, and compact or full response selection.
client: str | None = None-
Runtime authentication, custom client, application filters, timeout, and compact or full response selection.
default_params: str | None = None-
Runtime authentication, custom client, application filters, timeout, and compact or full response selection.
timeout: str | None = None-
Runtime authentication, custom client, application filters, timeout, and compact or full response selection.
mode: str | None = None-
Runtime authentication, custom client, application filters, timeout, and compact or full response selection.
name: str = "flights_search"- Tool name presented to the model.
Returns
Any- A provider-native Google Flights route-search tool.