Tools
Search index tool
class yandex_cloud_ml_sdk._tools.search_index.tool.SearchIndexTool
SearchIndexTool(search_index_ids: ‘tuple[str, …]’, max_num_results: ‘int | None’ = None, rephraser: ‘Rephraser | None’ = None, call_strategy: ‘CallStrategy | None’ = None)
search_index_ids: tuple
max_num_results: int
rephraser: Rephraser | None
call_strategy: CallStrategy | None
class yandex_cloud_ml_sdk._tools.search_index.rephraser.function.RephraserFunction
Function for creating Rephraser object, which incapsulating rephrasing settings.
__call__(model_name, *, model_version='latest')
Creates a Rephraser object, which incapsulating rephrasing settings.
|
Parameters |
|
|
Returns |
Rephraser object, which incapsulating rephrasing settings |
|
Return type |
class yandex_cloud_ml_sdk._tools.search_index.rephraser.model.Rephraser
Class for incapsulating rephraser settings.
Used to rewrite the last user message for search, incorporating context from the previous conversation.
property config: ConfigTypeT
configure(**kwargs)
|
Return type |
Self |
property uri: str
class yandex_cloud_ml_sdk._tools.search_index.call_strategy.CallStrategy
property value: Literal
Function tool
class yandex_cloud_ml_sdk._tools.tool.FunctionTool
FunctionTool(name: ‘str’, description: ‘str | None’, parameters: ‘JsonSchemaType’, strict: ‘bool | None’)
name: str
parameters: JsonSchemaType
Generative search tool
class yandex_cloud_ml_sdk._tools.generative_search.GenerativeSearchTool
A generative search tool that can be called by LLMs/Assistants models.
To learn more about generative search itself, refer to generative search documentation
Objects of this class could be used in any place which requires BaseTool instance, but not every place/feature supports all of the tool types.
description: str
Description of tool instance which also instructs model when to call it.
enable_nrfm_docs: bool
tells to backend to include or not to include pages, which are not available via direct clicks from given sites/hosts/urls to search result.
fix_misspell: bool
tells to backend to fix or not to fix misspels in queries.
host: tuple
Parameter for limiting search to specific location or list of hosts.
search_filters: tuple
allows to limit search results with additional filters.
site: tuple
Parameter for limiting search to specific location or list of sites.
url: tuple
Parameter for limiting search to specific location or list of urls.