search_sample_queries¶
Operation¶
search_sample_queries
async
¶
search_sample_queries(input: SearchSampleQueriesInput, plugins: list[Plugin] | None = None) -> SearchSampleQueriesOutput
Searches sample queries and returns a list of sample queries that are
sorted by relevance. To search for sample queries, provide a natural
language SearchPhrase in English.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
input
|
SearchSampleQueriesInput
|
An instance of |
required |
plugins
|
list[Plugin] | None
|
A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the operation execution and will not affect any other operation invocations. |
None
|
Returns:
| Type | Description |
|---|---|
SearchSampleQueriesOutput
|
An instance of |
Input¶
SearchSampleQueriesInput
dataclass
¶
Dataclass for SearchSampleQueriesInput structure.
Attributes¶
max_results
class-attribute
instance-attribute
¶
max_results: int | None = None
The maximum number of results to return on a single page. The default value is 10.
Output¶
SearchSampleQueriesOutput
dataclass
¶
Dataclass for SearchSampleQueriesOutput structure.
Attributes¶
next_token
class-attribute
instance-attribute
¶
next_token: str | None = None
A token you can use to get the next page of results.
search_results
class-attribute
instance-attribute
¶
search_results: list[SearchSampleQueriesSearchResult] | None = None
A list of objects containing the search results ordered from most relevant to least relevant.