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
/// A list of available tools (functions) that the model may suggest invoking before producing a text response.<br/>
521
521
/// When `tools` is passed (without `tool_results`), the `text` content in the response will be empty and the `tool_calls` field in the response will be populated with a list of tool calls that need to be made. If no calls need to be made, the `tool_calls` array will be empty.
522
522
/// </param>
523
+
/// <param name="strictTools">
524
+
/// When set to `true`, tool calls in the Assistant message will be forced to follow the tool definition strictly. Learn more in the [Strict Tools guide](https://docs.cohere.com/docs/structured-outputs-json#structured-outputs-tools).<br/>
525
+
/// **Note**: The first few requests with a new set of tools will take longer to process.
526
+
/// </param>
523
527
/// <param name="documents">
524
528
/// A list of relevant documents that the model can cite to generate a more accurate reply. Each document is either a string or document object with content and metadata.
/// Used to reduce repetitiveness of generated tokens. Similar to `frequency_penalty`, except that this penalty is applied equally to all tokens that have already appeared, regardless of their exact frequencies.
568
572
/// </param>
569
573
/// <param name="k">
570
-
/// Ensures that only the top `k` most likely tokens are considered for generation at each step. When `k` is set to `0`, k-sampling is disabled.<br/>
574
+
/// Ensures that only the top `k` most likely tokens are considered for generation at each step. When `k` is set to `0`, k-sampling is disabled.<br/>
571
575
/// Defaults to `0`, min value of `0`, max value of `500`.<br/>
Copy file name to clipboardExpand all lines: src/libs/Cohere/Generated/Cohere.ICohereApi.Chatv2.g.cs
+6-1Lines changed: 6 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -35,6 +35,10 @@ public partial interface ICohereApi
35
35
/// A list of available tools (functions) that the model may suggest invoking before producing a text response.<br/>
36
36
/// When `tools` is passed (without `tool_results`), the `text` content in the response will be empty and the `tool_calls` field in the response will be populated with a list of tool calls that need to be made. If no calls need to be made, the `tool_calls` array will be empty.
37
37
/// </param>
38
+
/// <param name="strictTools">
39
+
/// When set to `true`, tool calls in the Assistant message will be forced to follow the tool definition strictly. Learn more in the [Strict Tools guide](https://docs.cohere.com/docs/structured-outputs-json#structured-outputs-tools).<br/>
40
+
/// **Note**: The first few requests with a new set of tools will take longer to process.
41
+
/// </param>
38
42
/// <param name="documents">
39
43
/// A list of relevant documents that the model can cite to generate a more accurate reply. Each document is either a string or document object with content and metadata.
40
44
/// </param>
@@ -82,7 +86,7 @@ public partial interface ICohereApi
82
86
/// Used to reduce repetitiveness of generated tokens. Similar to `frequency_penalty`, except that this penalty is applied equally to all tokens that have already appeared, regardless of their exact frequencies.
83
87
/// </param>
84
88
/// <param name="k">
85
-
/// Ensures that only the top `k` most likely tokens are considered for generation at each step. When `k` is set to `0`, k-sampling is disabled.<br/>
89
+
/// Ensures that only the top `k` most likely tokens are considered for generation at each step. When `k` is set to `0`, k-sampling is disabled.<br/>
86
90
/// Defaults to `0`, min value of `0`, max value of `500`.<br/>
87
91
/// Default Value: 0F
88
92
/// </param>
@@ -101,6 +105,7 @@ public partial interface ICohereApi
/// When set to `true`, tool calls in the Assistant message will be forced to follow the tool definition strictly. Learn more in the [Strict Tools guide](https://docs.cohere.com/docs/structured-outputs-json#structured-outputs-tools).<br/>
37
+
/// **Note**: The first few requests with a new set of tools will take longer to process.
/// A list of relevant documents that the model can cite to generate a more accurate reply. Each document is either a string or document object with content and metadata.
37
44
/// </summary>
@@ -111,7 +118,7 @@ public sealed partial class Chatv2Request
111
118
publicfloat?PresencePenalty{get;set;}
112
119
113
120
/// <summary>
114
-
/// Ensures that only the top `k` most likely tokens are considered for generation at each step. When `k` is set to `0`, k-sampling is disabled.<br/>
121
+
/// Ensures that only the top `k` most likely tokens are considered for generation at each step. When `k` is set to `0`, k-sampling is disabled.<br/>
115
122
/// Defaults to `0`, min value of `0`, max value of `500`.<br/>
116
123
/// Default Value: 0F
117
124
/// </summary>
@@ -152,6 +159,10 @@ public sealed partial class Chatv2Request
152
159
/// A list of available tools (functions) that the model may suggest invoking before producing a text response.<br/>
153
160
/// When `tools` is passed (without `tool_results`), the `text` content in the response will be empty and the `tool_calls` field in the response will be populated with a list of tool calls that need to be made. If no calls need to be made, the `tool_calls` array will be empty.
154
161
/// </param>
162
+
/// <param name="strictTools">
163
+
/// When set to `true`, tool calls in the Assistant message will be forced to follow the tool definition strictly. Learn more in the [Strict Tools guide](https://docs.cohere.com/docs/structured-outputs-json#structured-outputs-tools).<br/>
164
+
/// **Note**: The first few requests with a new set of tools will take longer to process.
165
+
/// </param>
155
166
/// <param name="documents">
156
167
/// A list of relevant documents that the model can cite to generate a more accurate reply. Each document is either a string or document object with content and metadata.
157
168
/// </param>
@@ -199,7 +210,7 @@ public sealed partial class Chatv2Request
199
210
/// Used to reduce repetitiveness of generated tokens. Similar to `frequency_penalty`, except that this penalty is applied equally to all tokens that have already appeared, regardless of their exact frequencies.
200
211
/// </param>
201
212
/// <param name="k">
202
-
/// Ensures that only the top `k` most likely tokens are considered for generation at each step. When `k` is set to `0`, k-sampling is disabled.<br/>
213
+
/// Ensures that only the top `k` most likely tokens are considered for generation at each step. When `k` is set to `0`, k-sampling is disabled.<br/>
203
214
/// Defaults to `0`, min value of `0`, max value of `500`.<br/>
Copy file name to clipboardExpand all lines: src/libs/Cohere/openapi.yaml
+7-1Lines changed: 7 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -769,6 +769,12 @@ paths:
769
769
items:
770
770
$ref: '#/components/schemas/ToolV2'
771
771
description: "A list of available tools (functions) that the model may suggest invoking before producing a text response.\n\nWhen `tools` is passed (without `tool_results`), the `text` content in the response will be empty and the `tool_calls` field in the response will be populated with a list of tool calls that need to be made. If no calls need to be made, the `tool_calls` array will be empty.\n"
772
+
strict_tools:
773
+
type: boolean
774
+
description: "When set to `true`, tool calls in the Assistant message will be forced to follow the tool definition strictly. Learn more in the [Strict Tools guide](https://docs.cohere.com/docs/structured-outputs-json#structured-outputs-tools).\n\n**Note**: The first few requests with a new set of tools will take longer to process.\n"
775
+
x-fern-audiences:
776
+
- public
777
+
x-fern-availability: beta
772
778
documents:
773
779
type: array
774
780
items:
@@ -817,7 +823,7 @@ paths:
817
823
maximum: 500
818
824
minimum: 0
819
825
type: number
820
-
description: "Ensures that only the top `k` most likely tokens are considered for generation at each step. When `k` is set to `0`, k-sampling is disabled.\nDefaults to `0`, min value of `0`, max value of `500`.\n"
826
+
description: "Ensures that only the top `k` most likely tokens are considered for generation at each step. When `k` is set to `0`, k-sampling is disabled.\nDefaults to `0`, min value of `0`, max value of `500`.\n"
0 commit comments