Skip to content

feat:Update tools property description in /v1/chat and /v2/chat OpenAPI endpoints #215

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/libs/Cohere/Generated/Cohere.CohereClient.Chatv2.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -608,8 +608,8 @@ partial void ProcessChatv2ResponseContent(
/// **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`.
/// </param>
/// <param name="tools">
/// A list of available tools (functions) that the model may suggest invoking before producing a text response.<br/>
/// The tool definition follows the [JSON Schema](https://json-schema.org/) with the following fields: `name`, `parameters`, and `description`.
/// A list of tools (functions) available to the model. The model response may contain 'tool_calls' to the specified tools.<br/>
/// Learn more in the [Tool Use guide](https://docs.cohere.com/docs/tools).
/// </param>
/// <param name="cancellationToken">The token to cancel the operation with</param>
/// <exception cref="global::System.InvalidOperationException"></exception>
Expand Down
4 changes: 2 additions & 2 deletions src/libs/Cohere/Generated/Cohere.ICohereClient.Chatv2.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -111,8 +111,8 @@ public partial interface ICohereClient
/// **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`.
/// </param>
/// <param name="tools">
/// A list of available tools (functions) that the model may suggest invoking before producing a text response.<br/>
/// The tool definition follows the [JSON Schema](https://json-schema.org/) with the following fields: `name`, `parameters`, and `description`.
/// A list of tools (functions) available to the model. The model response may contain 'tool_calls' to the specified tools.<br/>
/// Learn more in the [Tool Use guide](https://docs.cohere.com/docs/tools).
/// </param>
/// <param name="cancellationToken">The token to cancel the operation with</param>
/// <exception cref="global::System.InvalidOperationException"></exception>
Expand Down
8 changes: 4 additions & 4 deletions src/libs/Cohere/Generated/Cohere.Models.Chatv2Request.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -160,8 +160,8 @@ public sealed partial class Chatv2Request
public global::Cohere.Chatv2RequestToolChoice? ToolChoice { get; set; }

/// <summary>
/// A list of available tools (functions) that the model may suggest invoking before producing a text response.<br/>
/// The tool definition follows the [JSON Schema](https://json-schema.org/) with the following fields: `name`, `parameters`, and `description`.
/// A list of tools (functions) available to the model. The model response may contain 'tool_calls' to the specified tools.<br/>
/// Learn more in the [Tool Use guide](https://docs.cohere.com/docs/tools).
/// </summary>
[global::System.Text.Json.Serialization.JsonPropertyName("tools")]
public global::System.Collections.Generic.IList<global::Cohere.ToolV2>? Tools { get; set; }
Expand Down Expand Up @@ -262,8 +262,8 @@ public sealed partial class Chatv2Request
/// **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`.
/// </param>
/// <param name="tools">
/// A list of available tools (functions) that the model may suggest invoking before producing a text response.<br/>
/// The tool definition follows the [JSON Schema](https://json-schema.org/) with the following fields: `name`, `parameters`, and `description`.
/// A list of tools (functions) available to the model. The model response may contain 'tool_calls' to the specified tools.<br/>
/// Learn more in the [Tool Use guide](https://docs.cohere.com/docs/tools).
/// </param>
#if NET7_0_OR_GREATER
[global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers]
Expand Down
2 changes: 1 addition & 1 deletion src/libs/Cohere/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7506,7 +7506,7 @@ paths:
type: array
items:
$ref: '#/components/schemas/ToolV2'
description: "A list of available tools (functions) that the model may suggest invoking before producing a text response.\n\nThe tool definition follows the [JSON Schema](https://json-schema.org/) with the following fields: `name`, `parameters`, and `description`.\n"
description: "A list of tools (functions) available to the model. The model response may contain 'tool_calls' to the specified tools.\n\nLearn more in the [Tool Use guide](https://docs.cohere.com/docs/tools).\n"
x-fern-audiences:
- public
responses:
Expand Down
Loading