You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
:param tools: tools to use for completion. Can be a sequence or a single tool.
116
116
:param parallel_tool_calls: whether to allow parallel calls to tools during completion.
117
117
Defaults to ``true``.
118
+
:param tool_choice: the strategy for choosing tools.
119
+
There are several ways to configure ``tool_choice`` for query processing:
120
+
- no tools to call (tool_choice=``'none'``);
121
+
- required to call any tool (tool_choice=``'required'``);
122
+
- call a specific tool (tool_choice=``{'type': 'function', 'function': {'name': 'another_calculator'}}`` or directly passing a tool object).
118
123
"""
119
124
returnsuper().configure(
120
125
temperature=temperature,
@@ -319,7 +324,7 @@ async def run(
319
324
Executes the model with the provided messages.
320
325
321
326
:param messages: the input messages to process. Could be a string, a dictionary, or a result object.
322
-
Read more about other possible message types in the `documentation <https://yandex.cloud/docs/foundation-models/text-generation/api-ref/TextGeneration/completion#yandex.cloud.ai.foundation_models.v1.Message>`_.
327
+
Read more about other possible message types in the `documentation <https://yandex.cloud/docs/foundation-models/sdk/#usage>`_.
323
328
:param timeout: the timeout, or the maximum time to wait for the request to complete in seconds.
0 commit comments