@@ -1025,6 +1025,7 @@ def search(
10251025 | Omit = omit ,
10261026 exclude_domains : SequenceNotStr [str ] | Omit = omit ,
10271027 freshness : Literal ["last_24_hours" , "last_week" , "last_month" , "last_year" ] | Omit = omit ,
1028+ highlights_options : web_search_params .HighlightsOptions | Omit = omit ,
10281029 include_domains : SequenceNotStr [str ] | Omit = omit ,
10291030 markdown_options : web_search_params .MarkdownOptions | Omit = omit ,
10301031 num_results : int | Omit = omit ,
@@ -1040,7 +1041,8 @@ def search(
10401041 timeout : float | httpx .Timeout | None | NotGiven = not_given ,
10411042 ) -> WebSearchResponse :
10421043 """
1043- Search the web and optionally return page content with each result.
1044+ Search the web and optionally return page content or relevant passages with each
1045+ result.
10441046
10451047 Args:
10461048 query: Search query. Accepts natural language as well as Google-style search operators
@@ -1054,6 +1056,9 @@ def search(
10541056
10551057 freshness: Restrict results to content published within this window.
10561058
1059+ highlights_options: Passages from each result page that are relevant to the query. Pages are read
1060+ with the `markdownOptions` settings.
1061+
10571062 include_domains: Allowlist — only return results from these domains. Example: ["arxiv.org",
10581063 "github.com"].
10591064
@@ -1086,6 +1091,7 @@ def search(
10861091 "country" : country ,
10871092 "exclude_domains" : exclude_domains ,
10881093 "freshness" : freshness ,
1094+ "highlights_options" : highlights_options ,
10891095 "include_domains" : include_domains ,
10901096 "markdown_options" : markdown_options ,
10911097 "num_results" : num_results ,
@@ -2425,6 +2431,7 @@ async def search(
24252431 | Omit = omit ,
24262432 exclude_domains : SequenceNotStr [str ] | Omit = omit ,
24272433 freshness : Literal ["last_24_hours" , "last_week" , "last_month" , "last_year" ] | Omit = omit ,
2434+ highlights_options : web_search_params .HighlightsOptions | Omit = omit ,
24282435 include_domains : SequenceNotStr [str ] | Omit = omit ,
24292436 markdown_options : web_search_params .MarkdownOptions | Omit = omit ,
24302437 num_results : int | Omit = omit ,
@@ -2440,7 +2447,8 @@ async def search(
24402447 timeout : float | httpx .Timeout | None | NotGiven = not_given ,
24412448 ) -> WebSearchResponse :
24422449 """
2443- Search the web and optionally return page content with each result.
2450+ Search the web and optionally return page content or relevant passages with each
2451+ result.
24442452
24452453 Args:
24462454 query: Search query. Accepts natural language as well as Google-style search operators
@@ -2454,6 +2462,9 @@ async def search(
24542462
24552463 freshness: Restrict results to content published within this window.
24562464
2465+ highlights_options: Passages from each result page that are relevant to the query. Pages are read
2466+ with the `markdownOptions` settings.
2467+
24572468 include_domains: Allowlist — only return results from these domains. Example: ["arxiv.org",
24582469 "github.com"].
24592470
@@ -2486,6 +2497,7 @@ async def search(
24862497 "country" : country ,
24872498 "exclude_domains" : exclude_domains ,
24882499 "freshness" : freshness ,
2500+ "highlights_options" : highlights_options ,
24892501 "include_domains" : include_domains ,
24902502 "markdown_options" : markdown_options ,
24912503 "num_results" : num_results ,
0 commit comments