@@ -134,6 +134,7 @@ def create(
134134 ]
135135 | Omit = omit ,
136136 fusion_method : Literal ["max" , "rrf" ] | Omit = omit ,
137+ hybrid_search_enabled : bool | Omit = omit ,
137138 index_method : instance_create_params .IndexMethod | Omit = omit ,
138139 indexing_options : Optional [instance_create_params .IndexingOptions ] | Omit = omit ,
139140 max_num_results : int | Omit = omit ,
@@ -198,6 +199,8 @@ def create(
198199
199200 Lowercase alphanumeric, hyphens, and underscores.
200201
202+ hybrid_search_enabled: Deprecated — use index_method instead.
203+
201204 index_method: Controls which storage backends are used during indexing. Defaults to
202205 vector-only.
203206
@@ -229,6 +232,7 @@ def create(
229232 "custom_metadata" : custom_metadata ,
230233 "embedding_model" : embedding_model ,
231234 "fusion_method" : fusion_method ,
235+ "hybrid_search_enabled" : hybrid_search_enabled ,
232236 "index_method" : index_method ,
233237 "indexing_options" : indexing_options ,
234238 "max_num_results" : max_num_results ,
@@ -723,8 +727,9 @@ def search(
723727 id : str ,
724728 * ,
725729 account_id : str ,
726- messages : Iterable [instance_search_params .Message ],
727730 aisearch_options : instance_search_params .AISearchOptions | Omit = omit ,
731+ messages : Iterable [instance_search_params .Message ] | Omit = omit ,
732+ query : str | Omit = omit ,
728733 # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
729734 # The extra values given here take precedence over values defined on the client or passed to this method.
730735 extra_headers : Headers | None = None ,
@@ -739,6 +744,9 @@ def search(
739744 Args:
740745 id: AI Search instance ID. Lowercase alphanumeric, hyphens, and underscores.
741746
747+ query: A simple text query string. Alternative to 'messages' — provide either this or
748+ 'messages', not both.
749+
742750 extra_headers: Send extra headers
743751
744752 extra_query: Add additional query parameters to the request
@@ -755,8 +763,9 @@ def search(
755763 f"/accounts/{ account_id } /ai-search/instances/{ id } /search" ,
756764 body = maybe_transform (
757765 {
758- "messages" : messages ,
759766 "aisearch_options" : aisearch_options ,
767+ "messages" : messages ,
768+ "query" : query ,
760769 },
761770 instance_search_params .InstanceSearchParams ,
762771 ),
@@ -900,6 +909,7 @@ async def create(
900909 ]
901910 | Omit = omit ,
902911 fusion_method : Literal ["max" , "rrf" ] | Omit = omit ,
912+ hybrid_search_enabled : bool | Omit = omit ,
903913 index_method : instance_create_params .IndexMethod | Omit = omit ,
904914 indexing_options : Optional [instance_create_params .IndexingOptions ] | Omit = omit ,
905915 max_num_results : int | Omit = omit ,
@@ -964,6 +974,8 @@ async def create(
964974
965975 Lowercase alphanumeric, hyphens, and underscores.
966976
977+ hybrid_search_enabled: Deprecated — use index_method instead.
978+
967979 index_method: Controls which storage backends are used during indexing. Defaults to
968980 vector-only.
969981
@@ -995,6 +1007,7 @@ async def create(
9951007 "custom_metadata" : custom_metadata ,
9961008 "embedding_model" : embedding_model ,
9971009 "fusion_method" : fusion_method ,
1010+ "hybrid_search_enabled" : hybrid_search_enabled ,
9981011 "index_method" : index_method ,
9991012 "indexing_options" : indexing_options ,
10001013 "max_num_results" : max_num_results ,
@@ -1489,8 +1502,9 @@ async def search(
14891502 id : str ,
14901503 * ,
14911504 account_id : str ,
1492- messages : Iterable [instance_search_params .Message ],
14931505 aisearch_options : instance_search_params .AISearchOptions | Omit = omit ,
1506+ messages : Iterable [instance_search_params .Message ] | Omit = omit ,
1507+ query : str | Omit = omit ,
14941508 # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
14951509 # The extra values given here take precedence over values defined on the client or passed to this method.
14961510 extra_headers : Headers | None = None ,
@@ -1505,6 +1519,9 @@ async def search(
15051519 Args:
15061520 id: AI Search instance ID. Lowercase alphanumeric, hyphens, and underscores.
15071521
1522+ query: A simple text query string. Alternative to 'messages' — provide either this or
1523+ 'messages', not both.
1524+
15081525 extra_headers: Send extra headers
15091526
15101527 extra_query: Add additional query parameters to the request
@@ -1521,8 +1538,9 @@ async def search(
15211538 f"/accounts/{ account_id } /ai-search/instances/{ id } /search" ,
15221539 body = await async_maybe_transform (
15231540 {
1524- "messages" : messages ,
15251541 "aisearch_options" : aisearch_options ,
1542+ "messages" : messages ,
1543+ "query" : query ,
15261544 },
15271545 instance_search_params .InstanceSearchParams ,
15281546 ),
0 commit comments