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
/// Used to control whether or not the model will be forced to use a tool when answering. When `REQUIRED` is specified, the model will be forced to use at least one of the user-defined tools, and the `tools` parameter must be passed in the request.<br/>
721
721
/// When `NONE` is specified, the model will be forced **not** to use one of the specified tools, and give a direct response.<br/>
722
722
/// If tool_choice isn't specified, then the model is free to choose whether to use the specified tools or not.<br/>
723
-
/// **Note**: This parameter is only compatible with models [Command-r7b](https://docs.cohere.com/v2/docs/command-r7b) and newer.<br/>
724
-
/// **Note**: The same functionality can be achieved in `/v1/chat` using the `force_single_step` parameter. If `force_single_step=true`, this is equivalent to specifying `REQUIRED`. While if `force_single_step=true` and `tool_results` are passed, this is equivalent to specifying `NONE`.
723
+
/// **Note**: This parameter is only compatible with models [Command-r7b](https://docs.cohere.com/v2/docs/command-r7b) and newer.
725
724
/// </param>
726
725
/// <param name="tools">
727
726
/// A list of tools (functions) available to the model. The model response may contain 'tool_calls' to the specified tools.<br/>
Copy file name to clipboardExpand all lines: src/libs/Cohere/Generated/Cohere.ICohereClient.Chatv2.g.cs
+1-2Lines changed: 1 addition & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -115,8 +115,7 @@ public partial interface ICohereClient
115
115
/// Used to control whether or not the model will be forced to use a tool when answering. When `REQUIRED` is specified, the model will be forced to use at least one of the user-defined tools, and the `tools` parameter must be passed in the request.<br/>
116
116
/// When `NONE` is specified, the model will be forced **not** to use one of the specified tools, and give a direct response.<br/>
117
117
/// If tool_choice isn't specified, then the model is free to choose whether to use the specified tools or not.<br/>
118
-
/// **Note**: This parameter is only compatible with models [Command-r7b](https://docs.cohere.com/v2/docs/command-r7b) and newer.<br/>
119
-
/// **Note**: The same functionality can be achieved in `/v1/chat` using the `force_single_step` parameter. If `force_single_step=true`, this is equivalent to specifying `REQUIRED`. While if `force_single_step=true` and `tool_results` are passed, this is equivalent to specifying `NONE`.
118
+
/// **Note**: This parameter is only compatible with models [Command-r7b](https://docs.cohere.com/v2/docs/command-r7b) and newer.
120
119
/// </param>
121
120
/// <param name="tools">
122
121
/// A list of tools (functions) available to the model. The model response may contain 'tool_calls' to the specified tools.<br/>
Copy file name to clipboardExpand all lines: src/libs/Cohere/Generated/Cohere.Models.Chatv2Request.g.cs
+2-4Lines changed: 2 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -162,8 +162,7 @@ public sealed partial class Chatv2Request
162
162
/// Used to control whether or not the model will be forced to use a tool when answering. When `REQUIRED` is specified, the model will be forced to use at least one of the user-defined tools, and the `tools` parameter must be passed in the request.<br/>
163
163
/// When `NONE` is specified, the model will be forced **not** to use one of the specified tools, and give a direct response.<br/>
164
164
/// If tool_choice isn't specified, then the model is free to choose whether to use the specified tools or not.<br/>
165
-
/// **Note**: This parameter is only compatible with models [Command-r7b](https://docs.cohere.com/v2/docs/command-r7b) and newer.<br/>
166
-
/// **Note**: The same functionality can be achieved in `/v1/chat` using the `force_single_step` parameter. If `force_single_step=true`, this is equivalent to specifying `REQUIRED`. While if `force_single_step=true` and `tool_results` are passed, this is equivalent to specifying `NONE`.
165
+
/// **Note**: This parameter is only compatible with models [Command-r7b](https://docs.cohere.com/v2/docs/command-r7b) and newer.
@@ -276,8 +275,7 @@ public sealed partial class Chatv2Request
276
275
/// Used to control whether or not the model will be forced to use a tool when answering. When `REQUIRED` is specified, the model will be forced to use at least one of the user-defined tools, and the `tools` parameter must be passed in the request.<br/>
277
276
/// When `NONE` is specified, the model will be forced **not** to use one of the specified tools, and give a direct response.<br/>
278
277
/// If tool_choice isn't specified, then the model is free to choose whether to use the specified tools or not.<br/>
279
-
/// **Note**: This parameter is only compatible with models [Command-r7b](https://docs.cohere.com/v2/docs/command-r7b) and newer.<br/>
280
-
/// **Note**: The same functionality can be achieved in `/v1/chat` using the `force_single_step` parameter. If `force_single_step=true`, this is equivalent to specifying `REQUIRED`. While if `force_single_step=true` and `tool_results` are passed, this is equivalent to specifying `NONE`.
278
+
/// **Note**: This parameter is only compatible with models [Command-r7b](https://docs.cohere.com/v2/docs/command-r7b) and newer.
281
279
/// </param>
282
280
/// <param name="tools">
283
281
/// A list of tools (functions) available to the model. The model response may contain 'tool_calls' to the specified tools.<br/>
Copy file name to clipboardExpand all lines: src/libs/Cohere/Generated/Cohere.Models.Chatv2RequestToolChoice.g.cs
+3-4Lines changed: 3 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -7,17 +7,16 @@ namespace Cohere
7
7
/// Used to control whether or not the model will be forced to use a tool when answering. When `REQUIRED` is specified, the model will be forced to use at least one of the user-defined tools, and the `tools` parameter must be passed in the request.<br/>
8
8
/// When `NONE` is specified, the model will be forced **not** to use one of the specified tools, and give a direct response.<br/>
9
9
/// If tool_choice isn't specified, then the model is free to choose whether to use the specified tools or not.<br/>
10
-
/// **Note**: This parameter is only compatible with models [Command-r7b](https://docs.cohere.com/v2/docs/command-r7b) and newer.<br/>
11
-
/// **Note**: The same functionality can be achieved in `/v1/chat` using the `force_single_step` parameter. If `force_single_step=true`, this is equivalent to specifying `REQUIRED`. While if `force_single_step=true` and `tool_results` are passed, this is equivalent to specifying `NONE`.
10
+
/// **Note**: This parameter is only compatible with models [Command-r7b](https://docs.cohere.com/v2/docs/command-r7b) and newer.
12
11
/// </summary>
13
12
publicenumChatv2RequestToolChoice
14
13
{
15
14
/// <summary>
16
-
/// The same functionality can be achieved in `/v1/chat` using the `force_single_step` parameter. If `force_single_step=true`, this is equivalent to specifying `REQUIRED`. While if `force_single_step=true` and `tool_results` are passed, this is equivalent to specifying `NONE`.
15
+
///
17
16
/// </summary>
18
17
REQUIRED,
19
18
/// <summary>
20
-
/// The same functionality can be achieved in `/v1/chat` using the `force_single_step` parameter. If `force_single_step=true`, this is equivalent to specifying `REQUIRED`. While if `force_single_step=true` and `tool_results` are passed, this is equivalent to specifying `NONE`.
Copy file name to clipboardExpand all lines: src/libs/Cohere/openapi.yaml
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -7499,7 +7499,7 @@ paths:
7499
7499
enum:
7500
7500
- REQUIRED
7501
7501
- NONE
7502
-
description: "Used to control whether or not the model will be forced to use a tool when answering. When `REQUIRED` is specified, the model will be forced to use at least one of the user-defined tools, and the `tools` parameter must be passed in the request.\nWhen `NONE` is specified, the model will be forced **not** to use one of the specified tools, and give a direct response.\nIf tool_choice isn't specified, then the model is free to choose whether to use the specified tools or not.\n\n**Note**: This parameter is only compatible with models [Command-r7b](https://docs.cohere.com/v2/docs/command-r7b) and newer.\n\n**Note**: The same functionality can be achieved in `/v1/chat` using the `force_single_step` parameter. If `force_single_step=true`, this is equivalent to specifying `REQUIRED`. While if `force_single_step=true` and `tool_results` are passed, this is equivalent to specifying `NONE`.\n"
7502
+
description: "Used to control whether or not the model will be forced to use a tool when answering. When `REQUIRED` is specified, the model will be forced to use at least one of the user-defined tools, and the `tools` parameter must be passed in the request.\nWhen `NONE` is specified, the model will be forced **not** to use one of the specified tools, and give a direct response.\nIf tool_choice isn't specified, then the model is free to choose whether to use the specified tools or not.\n\n**Note**: This parameter is only compatible with models [Command-r7b](https://docs.cohere.com/v2/docs/command-r7b) and newer.\n"
0 commit comments