diff --git a/src/libs/Cohere/Generated/Cohere.CohereApi.Chatv2.g.cs b/src/libs/Cohere/Generated/Cohere.CohereApi.Chatv2.g.cs index 910047b..28dcfc3 100644 --- a/src/libs/Cohere/Generated/Cohere.CohereApi.Chatv2.g.cs +++ b/src/libs/Cohere/Generated/Cohere.CohereApi.Chatv2.g.cs @@ -22,7 +22,8 @@ partial void ProcessChatv2ResponseContent( ref string content); /// - /// Chat with the model + /// Chat with the model
+ /// Generates a message from the model in response to a provided conversation. To learn how to use the Chat API with Streaming and RAG follow our Text Generation guides. ///
/// /// The token to cancel the operation with @@ -95,13 +96,15 @@ partial void ProcessChatv2ResponseContent( } /// - /// Chat with the model + /// Chat with the model
+ /// Generates a message from the model in response to a provided conversation. To learn how to use the Chat API with Streaming and RAG follow our Text Generation guides. ///
/// - /// The model to use for the chat. + /// The name of a compatible [Cohere model](https://docs.cohere.com/docs/models) (such as command-r or command-r-plus) or the ID of a [fine-tuned](https://docs.cohere.com/docs/chat-fine-tuning) model. /// /// - /// A list of chat messages representing the list chat message turns. + /// A list of chat messages in chronological order, representing a conversation between the user and the model.
+ /// Messages can be from `User`, `Assistant`, `Tool` and `System` roles. Learn more about messages and roles in [the Chat API guide](https://docs.cohere.com/docs/chat-api). /// /// /// A list of available tools (functions) that the model may suggest invoking before producing a text response.
@@ -160,7 +163,7 @@ partial void ProcessChatv2ResponseContent( global::System.Collections.Generic.IList messages, global::System.Collections.Generic.IList? tools = default, global::Cohere.Chatv2RequestCitationMode? citationMode = default, - global::Cohere.ResponseFormat? responseFormat = default, + global::Cohere.ResponseFormat2? responseFormat = default, int maxTokens = default, global::System.Collections.Generic.IList? stopSequences = default, float temperature = default, diff --git a/src/libs/Cohere/Generated/Cohere.Models.AssistantMessage.g.cs b/src/libs/Cohere/Generated/Cohere.Models.AssistantMessage.g.cs index 02b0f10..68c9796 100644 --- a/src/libs/Cohere/Generated/Cohere.Models.AssistantMessage.g.cs +++ b/src/libs/Cohere/Generated/Cohere.Models.AssistantMessage.g.cs @@ -1,4 +1,6 @@ +#pragma warning disable CS0618 // Type or member is obsolete + #nullable enable namespace Cohere @@ -31,7 +33,8 @@ public sealed partial class AssistantMessage /// /// [global::System.Text.Json.Serialization.JsonPropertyName("content")] - public global::System.Collections.Generic.IList? Content { get; set; } + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenApiGenerator.JsonConverters.OneOfJsonConverterFactory2))] + public global::System.OneOf>>? Content { get; set; } /// /// diff --git a/src/libs/Cohere/Generated/Cohere.Models.AssistantMessageResponse.g.cs b/src/libs/Cohere/Generated/Cohere.Models.AssistantMessageResponse.g.cs new file mode 100644 index 0000000..05add8c --- /dev/null +++ b/src/libs/Cohere/Generated/Cohere.Models.AssistantMessageResponse.g.cs @@ -0,0 +1,50 @@ + +#pragma warning disable CS0618 // Type or member is obsolete + +#nullable enable + +namespace Cohere +{ + /// + /// A message from the assistant role can contain text and tool call information. + /// + public sealed partial class AssistantMessageResponse + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("role")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenApiGenerator.JsonConverters.AssistantMessageResponseRoleJsonConverter))] + public global::Cohere.AssistantMessageResponseRole Role { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("tool_calls")] + public global::System.Collections.Generic.IList? ToolCalls { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("tool_plan")] + public string? ToolPlan { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("content")] + public global::System.Collections.Generic.IList>? Content { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("citations")] + public global::System.Collections.Generic.IList? Citations { get; set; } + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + } +} \ No newline at end of file diff --git a/src/libs/Cohere/Generated/Cohere.Models.AssistantMessageResponseRole.g.cs b/src/libs/Cohere/Generated/Cohere.Models.AssistantMessageResponseRole.g.cs new file mode 100644 index 0000000..a4805af --- /dev/null +++ b/src/libs/Cohere/Generated/Cohere.Models.AssistantMessageResponseRole.g.cs @@ -0,0 +1,45 @@ + +#nullable enable + +namespace Cohere +{ + /// + /// + /// + public enum AssistantMessageResponseRole + { + /// + /// + /// + Assistant, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class AssistantMessageResponseRoleExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this AssistantMessageResponseRole value) + { + return value switch + { + AssistantMessageResponseRole.Assistant => "assistant", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static AssistantMessageResponseRole? ToEnum(string value) + { + return value switch + { + "assistant" => AssistantMessageResponseRole.Assistant, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/Cohere/Generated/Cohere.Models.ChatMessage2.g.cs b/src/libs/Cohere/Generated/Cohere.Models.ChatMessage2.g.cs index 0cf74bd..9921403 100644 --- a/src/libs/Cohere/Generated/Cohere.Models.ChatMessage2.g.cs +++ b/src/libs/Cohere/Generated/Cohere.Models.ChatMessage2.g.cs @@ -14,105 +14,105 @@ namespace Cohere /// /// #if NET6_0_OR_GREATER - public global::Cohere.SystemMessage? SystemMessage { get; init; } + public global::Cohere.UserMessage? UserMessage { get; init; } #else - public global::Cohere.SystemMessage? SystemMessage { get; } + public global::Cohere.UserMessage? UserMessage { get; } #endif /// /// /// #if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(SystemMessage))] + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(UserMessage))] #endif - public bool IsSystemMessage => SystemMessage != null; + public bool IsUserMessage => UserMessage != null; /// /// /// - public static implicit operator ChatMessage2(global::Cohere.SystemMessage value) => new ChatMessage2(value); + public static implicit operator ChatMessage2(global::Cohere.UserMessage value) => new ChatMessage2(value); /// /// /// - public static implicit operator global::Cohere.SystemMessage?(ChatMessage2 @this) => @this.SystemMessage; + public static implicit operator global::Cohere.UserMessage?(ChatMessage2 @this) => @this.UserMessage; /// /// /// - public ChatMessage2(global::Cohere.SystemMessage? value) + public ChatMessage2(global::Cohere.UserMessage? value) { - SystemMessage = value; + UserMessage = value; } /// /// /// #if NET6_0_OR_GREATER - public global::Cohere.UserMessage? UserMessage { get; init; } + public global::Cohere.AssistantMessage? AssistantMessage { get; init; } #else - public global::Cohere.UserMessage? UserMessage { get; } + public global::Cohere.AssistantMessage? AssistantMessage { get; } #endif /// /// /// #if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(UserMessage))] + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(AssistantMessage))] #endif - public bool IsUserMessage => UserMessage != null; + public bool IsAssistantMessage => AssistantMessage != null; /// /// /// - public static implicit operator ChatMessage2(global::Cohere.UserMessage value) => new ChatMessage2(value); + public static implicit operator ChatMessage2(global::Cohere.AssistantMessage value) => new ChatMessage2(value); /// /// /// - public static implicit operator global::Cohere.UserMessage?(ChatMessage2 @this) => @this.UserMessage; + public static implicit operator global::Cohere.AssistantMessage?(ChatMessage2 @this) => @this.AssistantMessage; /// /// /// - public ChatMessage2(global::Cohere.UserMessage? value) + public ChatMessage2(global::Cohere.AssistantMessage? value) { - UserMessage = value; + AssistantMessage = value; } /// /// /// #if NET6_0_OR_GREATER - public global::Cohere.AssistantMessage? AssistantMessage { get; init; } + public global::Cohere.SystemMessage? SystemMessage { get; init; } #else - public global::Cohere.AssistantMessage? AssistantMessage { get; } + public global::Cohere.SystemMessage? SystemMessage { get; } #endif /// /// /// #if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(AssistantMessage))] + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(SystemMessage))] #endif - public bool IsAssistantMessage => AssistantMessage != null; + public bool IsSystemMessage => SystemMessage != null; /// /// /// - public static implicit operator ChatMessage2(global::Cohere.AssistantMessage value) => new ChatMessage2(value); + public static implicit operator ChatMessage2(global::Cohere.SystemMessage value) => new ChatMessage2(value); /// /// /// - public static implicit operator global::Cohere.AssistantMessage?(ChatMessage2 @this) => @this.AssistantMessage; + public static implicit operator global::Cohere.SystemMessage?(ChatMessage2 @this) => @this.SystemMessage; /// /// /// - public ChatMessage2(global::Cohere.AssistantMessage? value) + public ChatMessage2(global::Cohere.SystemMessage? value) { - AssistantMessage = value; + SystemMessage = value; } /// @@ -154,15 +154,15 @@ public ChatMessage2(global::Cohere.ToolMessage2? value) /// /// public ChatMessage2( - global::Cohere.SystemMessage? systemMessage, global::Cohere.UserMessage? userMessage, global::Cohere.AssistantMessage? assistantMessage, + global::Cohere.SystemMessage? systemMessage, global::Cohere.ToolMessage2? tool ) { - SystemMessage = systemMessage; UserMessage = userMessage; AssistantMessage = assistantMessage; + SystemMessage = systemMessage; Tool = tool; } @@ -171,9 +171,9 @@ public ChatMessage2( /// public object? Object => Tool as object ?? + SystemMessage as object ?? AssistantMessage as object ?? - UserMessage as object ?? - SystemMessage as object + UserMessage as object ; /// @@ -181,7 +181,7 @@ SystemMessage as object /// public bool Validate() { - return IsSystemMessage && !IsUserMessage && !IsAssistantMessage && !IsTool || !IsSystemMessage && IsUserMessage && !IsAssistantMessage && !IsTool || !IsSystemMessage && !IsUserMessage && IsAssistantMessage && !IsTool || !IsSystemMessage && !IsUserMessage && !IsAssistantMessage && IsTool; + return IsUserMessage && !IsAssistantMessage && !IsSystemMessage && !IsTool || !IsUserMessage && IsAssistantMessage && !IsSystemMessage && !IsTool || !IsUserMessage && !IsAssistantMessage && IsSystemMessage && !IsTool || !IsUserMessage && !IsAssistantMessage && !IsSystemMessage && IsTool; } /// @@ -191,12 +191,12 @@ public override int GetHashCode() { var fields = new object?[] { - SystemMessage, - typeof(global::Cohere.SystemMessage), UserMessage, typeof(global::Cohere.UserMessage), AssistantMessage, typeof(global::Cohere.AssistantMessage), + SystemMessage, + typeof(global::Cohere.SystemMessage), Tool, typeof(global::Cohere.ToolMessage2), }; @@ -214,9 +214,9 @@ static int HashCodeAggregator(int hashCode, object? value) => value == null public bool Equals(ChatMessage2 other) { return - global::System.Collections.Generic.EqualityComparer.Default.Equals(SystemMessage, other.SystemMessage) && global::System.Collections.Generic.EqualityComparer.Default.Equals(UserMessage, other.UserMessage) && global::System.Collections.Generic.EqualityComparer.Default.Equals(AssistantMessage, other.AssistantMessage) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(SystemMessage, other.SystemMessage) && global::System.Collections.Generic.EqualityComparer.Default.Equals(Tool, other.Tool) ; } diff --git a/src/libs/Cohere/Generated/Cohere.Models.Chatv2Request.g.cs b/src/libs/Cohere/Generated/Cohere.Models.Chatv2Request.g.cs index 5c13425..416f9ae 100644 --- a/src/libs/Cohere/Generated/Cohere.Models.Chatv2Request.g.cs +++ b/src/libs/Cohere/Generated/Cohere.Models.Chatv2Request.g.cs @@ -9,14 +9,15 @@ namespace Cohere public sealed partial class Chatv2Request { /// - /// The model to use for the chat. + /// The name of a compatible [Cohere model](https://docs.cohere.com/docs/models) (such as command-r or command-r-plus) or the ID of a [fine-tuned](https://docs.cohere.com/docs/chat-fine-tuning) model. /// [global::System.Text.Json.Serialization.JsonPropertyName("model")] [global::System.Text.Json.Serialization.JsonRequired] public required string Model { get; set; } /// - /// A list of chat messages representing the list chat message turns. + /// A list of chat messages in chronological order, representing a conversation between the user and the model.
+ /// Messages can be from `User`, `Assistant`, `Tool` and `System` roles. Learn more about messages and roles in [the Chat API guide](https://docs.cohere.com/docs/chat-api). ///
[global::System.Text.Json.Serialization.JsonPropertyName("messages")] [global::System.Text.Json.Serialization.JsonRequired] @@ -45,8 +46,8 @@ public sealed partial class Chatv2Request /// **Limitation**: The parameter is not supported in RAG mode (when any of `connectors`, `documents`, `tools`, `tool_results` are provided). ///
[global::System.Text.Json.Serialization.JsonPropertyName("response_format")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenApiGenerator.JsonConverters.ResponseFormatJsonConverter))] - public global::Cohere.ResponseFormat? ResponseFormat { get; set; } + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenApiGenerator.JsonConverters.ResponseFormat2JsonConverter))] + public global::Cohere.ResponseFormat2? ResponseFormat { get; set; } /// /// The maximum number of tokens the model will generate as part of the response. Note: Setting a low value may result in incomplete generations. diff --git a/src/libs/Cohere/Generated/Cohere.Models.Content2.g.cs b/src/libs/Cohere/Generated/Cohere.Models.Content.g.cs similarity index 68% rename from src/libs/Cohere/Generated/Cohere.Models.Content2.g.cs rename to src/libs/Cohere/Generated/Cohere.Models.Content.g.cs index fd7ab47..9cf3459 100644 --- a/src/libs/Cohere/Generated/Cohere.Models.Content2.g.cs +++ b/src/libs/Cohere/Generated/Cohere.Models.Content.g.cs @@ -8,48 +8,48 @@ namespace Cohere /// /// A Content block which contains information about the content type and the content itself. /// - public readonly partial struct Content2 : global::System.IEquatable + public readonly partial struct Content : global::System.IEquatable { /// /// /// #if NET6_0_OR_GREATER - public global::Cohere.TextContent? TextContent { get; init; } + public global::Cohere.TextContent? Text { get; init; } #else - public global::Cohere.TextContent? TextContent { get; } + public global::Cohere.TextContent? Text { get; } #endif /// /// /// #if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(TextContent))] + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Text))] #endif - public bool IsTextContent => TextContent != null; + public bool IsText => Text != null; /// /// /// - public static implicit operator Content2(global::Cohere.TextContent value) => new Content2(value); + public static implicit operator Content(global::Cohere.TextContent value) => new Content(value); /// /// /// - public static implicit operator global::Cohere.TextContent?(Content2 @this) => @this.TextContent; + public static implicit operator global::Cohere.TextContent?(Content @this) => @this.Text; /// /// /// - public Content2(global::Cohere.TextContent? value) + public Content(global::Cohere.TextContent? value) { - TextContent = value; + Text = value; } /// /// /// public object? Object => - TextContent as object + Text as object ; /// @@ -57,7 +57,7 @@ TextContent as object /// public bool Validate() { - return IsTextContent; + return IsText; } /// @@ -67,7 +67,7 @@ public override int GetHashCode() { var fields = new object?[] { - TextContent, + Text, typeof(global::Cohere.TextContent), }; const int offset = unchecked((int)2166136261); @@ -81,25 +81,25 @@ static int HashCodeAggregator(int hashCode, object? value) => value == null /// /// /// - public bool Equals(Content2 other) + public bool Equals(Content other) { return - global::System.Collections.Generic.EqualityComparer.Default.Equals(TextContent, other.TextContent) + global::System.Collections.Generic.EqualityComparer.Default.Equals(Text, other.Text) ; } /// /// /// - public static bool operator ==(Content2 obj1, Content2 obj2) + public static bool operator ==(Content obj1, Content obj2) { - return global::System.Collections.Generic.EqualityComparer.Default.Equals(obj1, obj2); + return global::System.Collections.Generic.EqualityComparer.Default.Equals(obj1, obj2); } /// /// /// - public static bool operator !=(Content2 obj1, Content2 obj2) + public static bool operator !=(Content obj1, Content obj2) { return !(obj1 == obj2); } @@ -109,7 +109,7 @@ public bool Equals(Content2 other) /// public override bool Equals(object? obj) { - return obj is Content2 o && Equals(o); + return obj is Content o && Equals(o); } } } diff --git a/src/libs/Cohere/Generated/Cohere.Models.JSONResponseFormat2.g.cs b/src/libs/Cohere/Generated/Cohere.Models.JSONResponseFormat2.g.cs new file mode 100644 index 0000000..3f0d8b3 --- /dev/null +++ b/src/libs/Cohere/Generated/Cohere.Models.JSONResponseFormat2.g.cs @@ -0,0 +1,44 @@ + +#nullable enable + +namespace Cohere +{ + /// + /// + /// + public sealed partial class JSONResponseFormat2 + { + /// + /// Defaults to `"text"`.
+ /// When set to `"json_object"`, the model's output will be a valid JSON Object. + ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("type")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenApiGenerator.JsonConverters.ResponseFormatTypeJsonConverter))] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::Cohere.ResponseFormatType Type { get; set; } + + /// + /// [BETA] A JSON schema object that the output will adhere to. There are some restrictions we have on the schema, refer to [our guide](/docs/structured-outputs-json#schema-constraints) for more information.
+ /// Example (required name and age object):
+ /// ```json
+ /// {
+ /// "type": "object",
+ /// "properties": {
+ /// "name": {"type": "string"},
+ /// "age": {"type": "integer"}
+ /// },
+ /// "required": ["name", "age"]
+ /// }
+ /// ```
+ /// **Note**: This field must not be specified when the `type` is set to `"text"`. + ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("json_schema")] + public global::Cohere.JSONResponseFormat2JsonSchema? JsonSchema { get; set; } + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + } +} \ No newline at end of file diff --git a/src/libs/Cohere/Generated/Cohere.Models.JSONResponseFormat2JsonSchema.g.cs b/src/libs/Cohere/Generated/Cohere.Models.JSONResponseFormat2JsonSchema.g.cs new file mode 100644 index 0000000..570ebab --- /dev/null +++ b/src/libs/Cohere/Generated/Cohere.Models.JSONResponseFormat2JsonSchema.g.cs @@ -0,0 +1,30 @@ + +#nullable enable + +namespace Cohere +{ + /// + /// [BETA] A JSON schema object that the output will adhere to. There are some restrictions we have on the schema, refer to [our guide](/docs/structured-outputs-json#schema-constraints) for more information.
+ /// Example (required name and age object):
+ /// ```json
+ /// {
+ /// "type": "object",
+ /// "properties": {
+ /// "name": {"type": "string"},
+ /// "age": {"type": "integer"}
+ /// },
+ /// "required": ["name", "age"]
+ /// }
+ /// ```
+ /// **Note**: This field must not be specified when the `type` is set to `"text"`. + ///
+ public sealed partial class JSONResponseFormat2JsonSchema + { + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + } +} \ No newline at end of file diff --git a/src/libs/Cohere/Generated/Cohere.Models.NonStreamedChatResponse2.g.cs b/src/libs/Cohere/Generated/Cohere.Models.NonStreamedChatResponse2.g.cs index 4af07e7..7407052 100644 --- a/src/libs/Cohere/Generated/Cohere.Models.NonStreamedChatResponse2.g.cs +++ b/src/libs/Cohere/Generated/Cohere.Models.NonStreamedChatResponse2.g.cs @@ -27,7 +27,7 @@ public sealed partial class NonStreamedChatResponse2 /// A message from the assistant role can contain text and tool call information. ///
[global::System.Text.Json.Serialization.JsonPropertyName("message")] - public global::Cohere.AssistantMessage? Message { get; set; } + public global::Cohere.AssistantMessageResponse? Message { get; set; } /// /// diff --git a/src/libs/Cohere/Generated/Cohere.Models.ResponseFormat2.g.cs b/src/libs/Cohere/Generated/Cohere.Models.ResponseFormat2.g.cs new file mode 100644 index 0000000..8020987 --- /dev/null +++ b/src/libs/Cohere/Generated/Cohere.Models.ResponseFormat2.g.cs @@ -0,0 +1,170 @@ +using System.Linq; +#pragma warning disable CS0618 // Type or member is obsolete + +#nullable enable + +namespace Cohere +{ + /// + /// Configuration for forcing the model output to adhere to the specified format. Supported on [Command R](https://docs.cohere.com/docs/command-r), [Command R+](https://docs.cohere.com/docs/command-r-plus) and newer models.
+ /// The model can be forced into outputting JSON objects (with up to 5 levels of nesting) by setting `{ "type": "json_object" }`.
+ /// A [JSON Schema](https://json-schema.org/) can optionally be provided, to ensure a specific structure.
+ /// **Note**: When using `{ "type": "json_object" }` your `message` should always explicitly instruct the model to generate a JSON (eg: _"Generate a JSON ..."_) . Otherwise the model may end up getting stuck generating an infinite stream of characters and eventually run out of context length.
+ /// **Limitation**: The parameter is not supported in RAG mode (when any of `connectors`, `documents`, `tools`, `tool_results` are provided). + ///
+ public readonly partial struct ResponseFormat2 : global::System.IEquatable + { + /// + /// + /// +#if NET6_0_OR_GREATER + public global::Cohere.TextResponseFormat? TextFormat { get; init; } +#else + public global::Cohere.TextResponseFormat? TextFormat { get; } +#endif + + /// + /// + /// +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(TextFormat))] +#endif + public bool IsTextFormat => TextFormat != null; + + /// + /// + /// + public static implicit operator ResponseFormat2(global::Cohere.TextResponseFormat value) => new ResponseFormat2(value); + + /// + /// + /// + public static implicit operator global::Cohere.TextResponseFormat?(ResponseFormat2 @this) => @this.TextFormat; + + /// + /// + /// + public ResponseFormat2(global::Cohere.TextResponseFormat? value) + { + TextFormat = value; + } + + /// + /// + /// +#if NET6_0_OR_GREATER + public global::Cohere.JSONResponseFormat2? JSON { get; init; } +#else + public global::Cohere.JSONResponseFormat2? JSON { get; } +#endif + + /// + /// + /// +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(JSON))] +#endif + public bool IsJSON => JSON != null; + + /// + /// + /// + public static implicit operator ResponseFormat2(global::Cohere.JSONResponseFormat2 value) => new ResponseFormat2(value); + + /// + /// + /// + public static implicit operator global::Cohere.JSONResponseFormat2?(ResponseFormat2 @this) => @this.JSON; + + /// + /// + /// + public ResponseFormat2(global::Cohere.JSONResponseFormat2? value) + { + JSON = value; + } + + /// + /// + /// + public ResponseFormat2( + global::Cohere.TextResponseFormat? textFormat, + global::Cohere.JSONResponseFormat2? jSON + ) + { + TextFormat = textFormat; + JSON = jSON; + } + + /// + /// + /// + public object? Object => + JSON as object ?? + TextFormat as object + ; + + /// + /// + /// + public bool Validate() + { + return IsTextFormat && !IsJSON || !IsTextFormat && IsJSON; + } + + /// + /// + /// + public override int GetHashCode() + { + var fields = new object?[] + { + TextFormat, + typeof(global::Cohere.TextResponseFormat), + JSON, + typeof(global::Cohere.JSONResponseFormat2), + }; + const int offset = unchecked((int)2166136261); + const int prime = 16777619; + static int HashCodeAggregator(int hashCode, object? value) => value == null + ? (hashCode ^ 0) * prime + : (hashCode ^ value.GetHashCode()) * prime; + return fields.Aggregate(offset, HashCodeAggregator); + } + + /// + /// + /// + public bool Equals(ResponseFormat2 other) + { + return + global::System.Collections.Generic.EqualityComparer.Default.Equals(TextFormat, other.TextFormat) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(JSON, other.JSON) + ; + } + + /// + /// + /// + public static bool operator ==(ResponseFormat2 obj1, ResponseFormat2 obj2) + { + return global::System.Collections.Generic.EqualityComparer.Default.Equals(obj1, obj2); + } + + /// + /// + /// + public static bool operator !=(ResponseFormat2 obj1, ResponseFormat2 obj2) + { + return !(obj1 == obj2); + } + + /// + /// + /// + public override bool Equals(object? obj) + { + return obj is ResponseFormat2 o && Equals(o); + } + } +} diff --git a/src/libs/Cohere/Generated/Cohere.Models.UserMessage.g.cs b/src/libs/Cohere/Generated/Cohere.Models.UserMessage.g.cs index 4119ee2..026200c 100644 --- a/src/libs/Cohere/Generated/Cohere.Models.UserMessage.g.cs +++ b/src/libs/Cohere/Generated/Cohere.Models.UserMessage.g.cs @@ -24,7 +24,7 @@ public sealed partial class UserMessage [global::System.Text.Json.Serialization.JsonPropertyName("content")] [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenApiGenerator.JsonConverters.OneOfJsonConverterFactory2))] [global::System.Text.Json.Serialization.JsonRequired] - public required global::System.OneOf> Content { get; set; } + public required global::System.OneOf> Content { get; set; } /// /// Documents seen by the model when generating the reply. diff --git a/src/libs/Cohere/Generated/JsonConverters.AssistantMessageResponseRole.g.cs b/src/libs/Cohere/Generated/JsonConverters.AssistantMessageResponseRole.g.cs new file mode 100644 index 0000000..eddb0d1 --- /dev/null +++ b/src/libs/Cohere/Generated/JsonConverters.AssistantMessageResponseRole.g.cs @@ -0,0 +1,49 @@ +#nullable enable + +namespace OpenApiGenerator.JsonConverters +{ + /// + public sealed class AssistantMessageResponseRoleJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::Cohere.AssistantMessageResponseRole Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::Cohere.AssistantMessageResponseRoleExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::Cohere.AssistantMessageResponseRole)numValue; + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::Cohere.AssistantMessageResponseRole value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::Cohere.AssistantMessageResponseRoleExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/Cohere/Generated/JsonConverters.AssistantMessageResponseRoleNullable.g.cs b/src/libs/Cohere/Generated/JsonConverters.AssistantMessageResponseRoleNullable.g.cs new file mode 100644 index 0000000..8fb28db --- /dev/null +++ b/src/libs/Cohere/Generated/JsonConverters.AssistantMessageResponseRoleNullable.g.cs @@ -0,0 +1,56 @@ +#nullable enable + +namespace OpenApiGenerator.JsonConverters +{ + /// + public sealed class AssistantMessageResponseRoleNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::Cohere.AssistantMessageResponseRole? Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::Cohere.AssistantMessageResponseRoleExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::Cohere.AssistantMessageResponseRole)numValue; + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::Cohere.AssistantMessageResponseRole? value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + if (value == null) + { + writer.WriteNullValue(); + } + else + { + writer.WriteStringValue(global::Cohere.AssistantMessageResponseRoleExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/Cohere/Generated/JsonConverters.ChatMessage2.g.cs b/src/libs/Cohere/Generated/JsonConverters.ChatMessage2.g.cs index c166223..b7028b3 100644 --- a/src/libs/Cohere/Generated/JsonConverters.ChatMessage2.g.cs +++ b/src/libs/Cohere/Generated/JsonConverters.ChatMessage2.g.cs @@ -16,18 +16,6 @@ public class ChatMessage2JsonConverter : global::System.Text.Json.Serialization. var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); var - readerCopy = reader; - global::Cohere.SystemMessage? systemMessage = default; - try - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Cohere.SystemMessage), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Cohere.SystemMessage).Name}"); - systemMessage = global::System.Text.Json.JsonSerializer.Deserialize(ref readerCopy, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - readerCopy = reader; global::Cohere.UserMessage? userMessage = default; try @@ -52,6 +40,18 @@ public class ChatMessage2JsonConverter : global::System.Text.Json.Serialization. { } + readerCopy = reader; + global::Cohere.SystemMessage? systemMessage = default; + try + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Cohere.SystemMessage), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Cohere.SystemMessage).Name}"); + systemMessage = global::System.Text.Json.JsonSerializer.Deserialize(ref readerCopy, typeInfo); + } + catch (global::System.Text.Json.JsonException) + { + } + readerCopy = reader; global::Cohere.ToolMessage2? tool = default; try @@ -65,19 +65,13 @@ public class ChatMessage2JsonConverter : global::System.Text.Json.Serialization. } var result = new global::Cohere.ChatMessage2( - systemMessage, userMessage, assistantMessage, + systemMessage, tool ); - if (systemMessage != null) - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Cohere.SystemMessage), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Cohere.SystemMessage).Name}"); - _ = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); - } - else if (userMessage != null) + if (userMessage != null) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Cohere.UserMessage), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Cohere.UserMessage).Name}"); @@ -89,6 +83,12 @@ public class ChatMessage2JsonConverter : global::System.Text.Json.Serialization. throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Cohere.AssistantMessage).Name}"); _ = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); } + else if (systemMessage != null) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Cohere.SystemMessage), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Cohere.SystemMessage).Name}"); + _ = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + } else if (tool != null) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Cohere.ToolMessage2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? @@ -108,13 +108,7 @@ public override void Write( options = options ?? throw new global::System.ArgumentNullException(nameof(options)); var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); - if (value.IsSystemMessage) - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Cohere.SystemMessage), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Cohere.SystemMessage).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.SystemMessage, typeInfo); - } - else if (value.IsUserMessage) + if (value.IsUserMessage) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Cohere.UserMessage), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Cohere.UserMessage).Name}"); @@ -126,6 +120,12 @@ public override void Write( throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Cohere.AssistantMessage).Name}"); global::System.Text.Json.JsonSerializer.Serialize(writer, value.AssistantMessage, typeInfo); } + else if (value.IsSystemMessage) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Cohere.SystemMessage), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Cohere.SystemMessage).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.SystemMessage, typeInfo); + } else if (value.IsTool) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Cohere.ToolMessage2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? diff --git a/src/libs/Cohere/Generated/JsonConverters.Content2.g.cs b/src/libs/Cohere/Generated/JsonConverters.Content.g.cs similarity index 81% rename from src/libs/Cohere/Generated/JsonConverters.Content2.g.cs rename to src/libs/Cohere/Generated/JsonConverters.Content.g.cs index b70ce15..a1eaea0 100644 --- a/src/libs/Cohere/Generated/JsonConverters.Content2.g.cs +++ b/src/libs/Cohere/Generated/JsonConverters.Content.g.cs @@ -4,10 +4,10 @@ namespace OpenApiGenerator.JsonConverters { /// - public class Content2JsonConverter : global::System.Text.Json.Serialization.JsonConverter + public class ContentJsonConverter : global::System.Text.Json.Serialization.JsonConverter { /// - public override global::Cohere.Content2 Read( + public override global::Cohere.Content Read( ref global::System.Text.Json.Utf8JsonReader reader, global::System.Type typeToConvert, global::System.Text.Json.JsonSerializerOptions options) @@ -17,22 +17,22 @@ public class Content2JsonConverter : global::System.Text.Json.Serialization.Json var readerCopy = reader; - global::Cohere.TextContent? textContent = default; + global::Cohere.TextContent? text = default; try { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Cohere.TextContent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Cohere.TextContent).Name}"); - textContent = global::System.Text.Json.JsonSerializer.Deserialize(ref readerCopy, typeInfo); + text = global::System.Text.Json.JsonSerializer.Deserialize(ref readerCopy, typeInfo); } catch (global::System.Text.Json.JsonException) { } - var result = new global::Cohere.Content2( - textContent + var result = new global::Cohere.Content( + text ); - if (textContent != null) + if (text != null) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Cohere.TextContent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Cohere.TextContent).Name}"); @@ -45,17 +45,17 @@ public class Content2JsonConverter : global::System.Text.Json.Serialization.Json /// public override void Write( global::System.Text.Json.Utf8JsonWriter writer, - global::Cohere.Content2 value, + global::Cohere.Content value, global::System.Text.Json.JsonSerializerOptions options) { options = options ?? throw new global::System.ArgumentNullException(nameof(options)); var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); - if (value.IsTextContent) + if (value.IsText) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Cohere.TextContent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Cohere.TextContent).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.TextContent, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.Text, typeInfo); } } } diff --git a/src/libs/Cohere/Generated/JsonConverters.ResponseFormat2.g.cs b/src/libs/Cohere/Generated/JsonConverters.ResponseFormat2.g.cs new file mode 100644 index 0000000..4709743 --- /dev/null +++ b/src/libs/Cohere/Generated/JsonConverters.ResponseFormat2.g.cs @@ -0,0 +1,87 @@ +#nullable enable +#pragma warning disable CS0618 // Type or member is obsolete + +namespace OpenApiGenerator.JsonConverters +{ + /// + public class ResponseFormat2JsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::Cohere.ResponseFormat2 Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + options = options ?? throw new global::System.ArgumentNullException(nameof(options)); + var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); + + var + readerCopy = reader; + global::Cohere.TextResponseFormat? textFormat = default; + try + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Cohere.TextResponseFormat), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Cohere.TextResponseFormat).Name}"); + textFormat = global::System.Text.Json.JsonSerializer.Deserialize(ref readerCopy, typeInfo); + } + catch (global::System.Text.Json.JsonException) + { + } + + readerCopy = reader; + global::Cohere.JSONResponseFormat2? jSON = default; + try + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Cohere.JSONResponseFormat2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Cohere.JSONResponseFormat2).Name}"); + jSON = global::System.Text.Json.JsonSerializer.Deserialize(ref readerCopy, typeInfo); + } + catch (global::System.Text.Json.JsonException) + { + } + + var result = new global::Cohere.ResponseFormat2( + textFormat, + jSON + ); + + if (textFormat != null) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Cohere.TextResponseFormat), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Cohere.TextResponseFormat).Name}"); + _ = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + } + else if (jSON != null) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Cohere.JSONResponseFormat2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Cohere.JSONResponseFormat2).Name}"); + _ = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + } + + return result; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::Cohere.ResponseFormat2 value, + global::System.Text.Json.JsonSerializerOptions options) + { + options = options ?? throw new global::System.ArgumentNullException(nameof(options)); + var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); + + if (value.IsTextFormat) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Cohere.TextResponseFormat), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Cohere.TextResponseFormat).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.TextFormat, typeInfo); + } + else if (value.IsJSON) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Cohere.JSONResponseFormat2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Cohere.JSONResponseFormat2).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.JSON, typeInfo); + } + } + } +} \ No newline at end of file diff --git a/src/libs/Cohere/Generated/JsonSerializerContext.g.cs b/src/libs/Cohere/Generated/JsonSerializerContext.g.cs index d058cb8..b7b1e87 100644 --- a/src/libs/Cohere/Generated/JsonSerializerContext.g.cs +++ b/src/libs/Cohere/Generated/JsonSerializerContext.g.cs @@ -23,16 +23,16 @@ namespace Cohere typeof(global::OpenApiGenerator.JsonConverters.ChatStreamEventEventTypeNullableJsonConverter), typeof(global::OpenApiGenerator.JsonConverters.ChatStreamEndEventVariant2FinishReasonJsonConverter), typeof(global::OpenApiGenerator.JsonConverters.ChatStreamEndEventVariant2FinishReasonNullableJsonConverter), - typeof(global::OpenApiGenerator.JsonConverters.ToolCall2TypeJsonConverter), - typeof(global::OpenApiGenerator.JsonConverters.ToolCall2TypeNullableJsonConverter), typeof(global::OpenApiGenerator.JsonConverters.TextContentTypeJsonConverter), typeof(global::OpenApiGenerator.JsonConverters.TextContentTypeNullableJsonConverter), + typeof(global::OpenApiGenerator.JsonConverters.UserMessageRoleJsonConverter), + typeof(global::OpenApiGenerator.JsonConverters.UserMessageRoleNullableJsonConverter), + typeof(global::OpenApiGenerator.JsonConverters.ToolCall2TypeJsonConverter), + typeof(global::OpenApiGenerator.JsonConverters.ToolCall2TypeNullableJsonConverter), typeof(global::OpenApiGenerator.JsonConverters.AssistantMessageRoleJsonConverter), typeof(global::OpenApiGenerator.JsonConverters.AssistantMessageRoleNullableJsonConverter), typeof(global::OpenApiGenerator.JsonConverters.SystemMessageRoleJsonConverter), typeof(global::OpenApiGenerator.JsonConverters.SystemMessageRoleNullableJsonConverter), - typeof(global::OpenApiGenerator.JsonConverters.UserMessageRoleJsonConverter), - typeof(global::OpenApiGenerator.JsonConverters.UserMessageRoleNullableJsonConverter), typeof(global::OpenApiGenerator.JsonConverters.ToolContentTypeJsonConverter), typeof(global::OpenApiGenerator.JsonConverters.ToolContentTypeNullableJsonConverter), typeof(global::OpenApiGenerator.JsonConverters.ToolMessage2RoleJsonConverter), @@ -41,6 +41,8 @@ namespace Cohere typeof(global::OpenApiGenerator.JsonConverters.Tool2TypeNullableJsonConverter), typeof(global::OpenApiGenerator.JsonConverters.ChatFinishReasonJsonConverter), typeof(global::OpenApiGenerator.JsonConverters.ChatFinishReasonNullableJsonConverter), + typeof(global::OpenApiGenerator.JsonConverters.AssistantMessageResponseRoleJsonConverter), + typeof(global::OpenApiGenerator.JsonConverters.AssistantMessageResponseRoleNullableJsonConverter), typeof(global::OpenApiGenerator.JsonConverters.ChatStreamEventTypeTypeJsonConverter), typeof(global::OpenApiGenerator.JsonConverters.ChatStreamEventTypeTypeNullableJsonConverter), typeof(global::OpenApiGenerator.JsonConverters.ChatMessageStartEventVariant2DeltaMessageRoleJsonConverter), @@ -118,11 +120,12 @@ namespace Cohere typeof(global::OpenApiGenerator.JsonConverters.ChatStreamEndEventJsonConverter), typeof(global::OpenApiGenerator.JsonConverters.ChatToolCallsChunkEventJsonConverter), typeof(global::OpenApiGenerator.JsonConverters.StreamedChatResponseJsonConverter), - typeof(global::OpenApiGenerator.JsonConverters.SourceJsonConverter), + typeof(global::OpenApiGenerator.JsonConverters.ContentJsonConverter), typeof(global::OpenApiGenerator.JsonConverters.OneOfJsonConverterFactory2), + typeof(global::OpenApiGenerator.JsonConverters.SourceJsonConverter), typeof(global::OpenApiGenerator.JsonConverters.OneOfJsonConverterFactory1), - typeof(global::OpenApiGenerator.JsonConverters.Content2JsonConverter), typeof(global::OpenApiGenerator.JsonConverters.ChatMessage2JsonConverter), + typeof(global::OpenApiGenerator.JsonConverters.ResponseFormat2JsonConverter), typeof(global::OpenApiGenerator.JsonConverters.ChatMessageStartEventJsonConverter), typeof(global::OpenApiGenerator.JsonConverters.ChatContentStartEventJsonConverter), typeof(global::OpenApiGenerator.JsonConverters.ChatContentDeltaEventJsonConverter), diff --git a/src/libs/Cohere/Generated/JsonSerializerContextTypes.g.cs b/src/libs/Cohere/Generated/JsonSerializerContextTypes.g.cs index 3febe2f..8371f8a 100644 --- a/src/libs/Cohere/Generated/JsonSerializerContextTypes.g.cs +++ b/src/libs/Cohere/Generated/JsonSerializerContextTypes.g.cs @@ -261,2326 +261,2342 @@ public sealed partial class JsonSerializerContextTypes /// /// /// - public global::Cohere.ToolCall2? Type62 { get; set; } + public global::Cohere.TextContent? Type62 { get; set; } /// /// /// - public global::Cohere.ToolCall2Type? Type63 { get; set; } + public global::Cohere.TextContentType? Type63 { get; set; } /// /// /// - public global::Cohere.ToolCall2Function? Type64 { get; set; } + public global::Cohere.Content? Type64 { get; set; } /// /// /// - public global::Cohere.TextContent? Type65 { get; set; } + public global::Cohere.UserMessage? Type65 { get; set; } /// /// /// - public global::Cohere.TextContentType? Type66 { get; set; } + public global::Cohere.UserMessageRole? Type66 { get; set; } /// /// /// - public global::Cohere.ToolSource? Type67 { get; set; } + public global::System.OneOf>? Type67 { get; set; } /// /// /// - public global::Cohere.ToolSourceToolOutput? Type68 { get; set; } + public global::System.Collections.Generic.IList? Type68 { get; set; } /// /// /// - public global::Cohere.DocumentSource? Type69 { get; set; } + public global::Cohere.ToolCall2? Type69 { get; set; } /// /// /// - public global::Cohere.DocumentSourceDocument? Type70 { get; set; } + public global::Cohere.ToolCall2Type? Type70 { get; set; } /// /// /// - public global::Cohere.Source? Type71 { get; set; } + public global::Cohere.ToolCall2Function? Type71 { get; set; } /// /// /// - public global::Cohere.Citation? Type72 { get; set; } + public global::Cohere.ToolSource? Type72 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type73 { get; set; } + public global::Cohere.ToolSourceToolOutput? Type73 { get; set; } /// /// /// - public global::Cohere.AssistantMessage? Type74 { get; set; } + public global::Cohere.DocumentSource? Type74 { get; set; } /// /// /// - public global::Cohere.AssistantMessageRole? Type75 { get; set; } + public global::Cohere.DocumentSourceDocument? Type75 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type76 { get; set; } + public global::Cohere.Source? Type76 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type77 { get; set; } + public global::Cohere.Citation? Type77 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type78 { get; set; } + public global::System.Collections.Generic.IList? Type78 { get; set; } /// /// /// - public global::Cohere.SystemMessage? Type79 { get; set; } + public global::Cohere.AssistantMessage? Type79 { get; set; } /// /// /// - public global::Cohere.SystemMessageRole? Type80 { get; set; } + public global::Cohere.AssistantMessageRole? Type80 { get; set; } /// /// /// - public global::System.OneOf>>? Type81 { get; set; } + public global::System.Collections.Generic.IList? Type81 { get; set; } /// /// /// - public global::System.Collections.Generic.IList>? Type82 { get; set; } + public global::System.OneOf>>? Type82 { get; set; } /// /// /// - public global::System.OneOf? Type83 { get; set; } + public global::System.Collections.Generic.IList>? Type83 { get; set; } /// /// /// - public global::Cohere.Content2? Type84 { get; set; } + public global::System.OneOf? Type84 { get; set; } /// /// /// - public global::Cohere.UserMessage? Type85 { get; set; } + public global::System.Collections.Generic.IList? Type85 { get; set; } /// /// /// - public global::Cohere.UserMessageRole? Type86 { get; set; } + public global::Cohere.SystemMessage? Type86 { get; set; } /// /// /// - public global::System.OneOf>? Type87 { get; set; } + public global::Cohere.SystemMessageRole? Type87 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type88 { get; set; } + public global::Cohere.ToolContent? Type88 { get; set; } /// /// /// - public global::Cohere.ToolContent? Type89 { get; set; } + public global::Cohere.ToolContentType? Type89 { get; set; } /// /// /// - public global::Cohere.ToolContentType? Type90 { get; set; } + public global::Cohere.ToolContentOutput? Type90 { get; set; } /// /// /// - public global::Cohere.ToolContentOutput? Type91 { get; set; } + public global::Cohere.ToolMessage2? Type91 { get; set; } /// /// /// - public global::Cohere.ToolMessage2? Type92 { get; set; } + public global::Cohere.ToolMessage2Role? Type92 { get; set; } /// /// /// - public global::Cohere.ToolMessage2Role? Type93 { get; set; } + public global::System.Collections.Generic.IList>? Type93 { get; set; } /// /// /// - public global::System.Collections.Generic.IList>? Type94 { get; set; } + public global::System.OneOf? Type94 { get; set; } /// /// /// - public global::System.OneOf? Type95 { get; set; } + public global::Cohere.ChatMessage2? Type95 { get; set; } /// /// /// - public global::Cohere.ChatMessage2? Type96 { get; set; } + public global::System.Collections.Generic.IList? Type96 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type97 { get; set; } + public global::Cohere.Tool2? Type97 { get; set; } /// /// /// - public global::Cohere.Tool2? Type98 { get; set; } + public global::Cohere.Tool2Type? Type98 { get; set; } /// /// /// - public global::Cohere.Tool2Type? Type99 { get; set; } + public global::Cohere.Tool2Function? Type99 { get; set; } /// /// /// - public global::Cohere.Tool2Function? Type100 { get; set; } + public global::Cohere.Tool2FunctionParameters? Type100 { get; set; } /// /// /// - public global::Cohere.Tool2FunctionParameters? Type101 { get; set; } + public global::Cohere.JSONResponseFormat2? Type101 { get; set; } /// /// /// - public global::Cohere.ChatFinishReason? Type102 { get; set; } + public global::Cohere.JSONResponseFormat2JsonSchema? Type102 { get; set; } /// /// /// - public global::Cohere.Usage? Type103 { get; set; } + public global::Cohere.ResponseFormat2? Type103 { get; set; } /// /// /// - public global::Cohere.UsageBilledUnits? Type104 { get; set; } + public global::Cohere.ChatFinishReason? Type104 { get; set; } /// /// /// - public global::Cohere.UsageTokens? Type105 { get; set; } + public global::Cohere.AssistantMessageResponse? Type105 { get; set; } /// /// /// - public global::Cohere.NonStreamedChatResponse2? Type106 { get; set; } + public global::Cohere.AssistantMessageResponseRole? Type106 { get; set; } /// /// /// - public global::Cohere.ChatStreamEventType? Type107 { get; set; } + public global::Cohere.Usage? Type107 { get; set; } /// /// /// - public global::Cohere.ChatStreamEventTypeType? Type108 { get; set; } + public global::Cohere.UsageBilledUnits? Type108 { get; set; } /// /// /// - public global::Cohere.ChatMessageStartEvent? Type109 { get; set; } + public global::Cohere.UsageTokens? Type109 { get; set; } /// /// /// - public global::Cohere.ChatMessageStartEventVariant2? Type110 { get; set; } + public global::Cohere.NonStreamedChatResponse2? Type110 { get; set; } /// /// /// - public global::Cohere.ChatMessageStartEventVariant2Delta? Type111 { get; set; } + public global::Cohere.ChatStreamEventType? Type111 { get; set; } /// /// /// - public global::Cohere.ChatMessageStartEventVariant2DeltaMessage? Type112 { get; set; } + public global::Cohere.ChatStreamEventTypeType? Type112 { get; set; } /// /// /// - public global::Cohere.ChatMessageStartEventVariant2DeltaMessageRole? Type113 { get; set; } + public global::Cohere.ChatMessageStartEvent? Type113 { get; set; } /// /// /// - public global::Cohere.ChatContentStartEvent? Type114 { get; set; } + public global::Cohere.ChatMessageStartEventVariant2? Type114 { get; set; } /// /// /// - public global::Cohere.ChatContentStartEventVariant2? Type115 { get; set; } + public global::Cohere.ChatMessageStartEventVariant2Delta? Type115 { get; set; } /// /// /// - public global::Cohere.ChatContentStartEventVariant2Delta? Type116 { get; set; } + public global::Cohere.ChatMessageStartEventVariant2DeltaMessage? Type116 { get; set; } /// /// /// - public global::Cohere.ChatContentStartEventVariant2DeltaMessage? Type117 { get; set; } + public global::Cohere.ChatMessageStartEventVariant2DeltaMessageRole? Type117 { get; set; } /// /// /// - public global::Cohere.ChatContentStartEventVariant2DeltaMessageContent? Type118 { get; set; } + public global::Cohere.ChatContentStartEvent? Type118 { get; set; } /// /// /// - public global::Cohere.ChatContentStartEventVariant2DeltaMessageContentType? Type119 { get; set; } + public global::Cohere.ChatContentStartEventVariant2? Type119 { get; set; } /// /// /// - public global::Cohere.ChatContentDeltaEvent? Type120 { get; set; } + public global::Cohere.ChatContentStartEventVariant2Delta? Type120 { get; set; } /// /// /// - public global::Cohere.ChatContentDeltaEventVariant2? Type121 { get; set; } + public global::Cohere.ChatContentStartEventVariant2DeltaMessage? Type121 { get; set; } /// /// /// - public global::Cohere.ChatContentDeltaEventVariant2Delta? Type122 { get; set; } + public global::Cohere.ChatContentStartEventVariant2DeltaMessageContent? Type122 { get; set; } /// /// /// - public global::Cohere.ChatContentDeltaEventVariant2DeltaMessage? Type123 { get; set; } + public global::Cohere.ChatContentStartEventVariant2DeltaMessageContentType? Type123 { get; set; } /// /// /// - public global::Cohere.ChatContentDeltaEventVariant2DeltaMessageContent? Type124 { get; set; } + public global::Cohere.ChatContentDeltaEvent? Type124 { get; set; } /// /// /// - public global::Cohere.ChatContentEndEvent? Type125 { get; set; } + public global::Cohere.ChatContentDeltaEventVariant2? Type125 { get; set; } /// /// /// - public global::Cohere.ChatContentEndEventVariant2? Type126 { get; set; } + public global::Cohere.ChatContentDeltaEventVariant2Delta? Type126 { get; set; } /// /// /// - public global::Cohere.ChatToolPlanDeltaEvent? Type127 { get; set; } + public global::Cohere.ChatContentDeltaEventVariant2DeltaMessage? Type127 { get; set; } /// /// /// - public global::Cohere.ChatToolPlanDeltaEventVariant2? Type128 { get; set; } + public global::Cohere.ChatContentDeltaEventVariant2DeltaMessageContent? Type128 { get; set; } /// /// /// - public global::Cohere.ChatToolPlanDeltaEventVariant2Delta? Type129 { get; set; } + public global::Cohere.ChatContentEndEvent? Type129 { get; set; } /// /// /// - public global::Cohere.ChatToolCallStartEvent? Type130 { get; set; } + public global::Cohere.ChatContentEndEventVariant2? Type130 { get; set; } /// /// /// - public global::Cohere.ChatToolCallStartEventVariant2? Type131 { get; set; } + public global::Cohere.ChatToolPlanDeltaEvent? Type131 { get; set; } /// /// /// - public global::Cohere.ChatToolCallStartEventVariant2Delta? Type132 { get; set; } + public global::Cohere.ChatToolPlanDeltaEventVariant2? Type132 { get; set; } /// /// /// - public global::Cohere.ChatToolCallStartEventVariant2DeltaToolCall? Type133 { get; set; } + public global::Cohere.ChatToolPlanDeltaEventVariant2Delta? Type133 { get; set; } /// /// /// - public global::Cohere.ChatToolCallStartEventVariant2DeltaToolCallType? Type134 { get; set; } + public global::Cohere.ChatToolCallStartEvent? Type134 { get; set; } /// /// /// - public global::Cohere.ChatToolCallStartEventVariant2DeltaToolCallFunction? Type135 { get; set; } + public global::Cohere.ChatToolCallStartEventVariant2? Type135 { get; set; } /// /// /// - public global::Cohere.ChatToolCallDeltaEvent? Type136 { get; set; } + public global::Cohere.ChatToolCallStartEventVariant2Delta? Type136 { get; set; } /// /// /// - public global::Cohere.ChatToolCallDeltaEventVariant2? Type137 { get; set; } + public global::Cohere.ChatToolCallStartEventVariant2DeltaToolCall? Type137 { get; set; } /// /// /// - public global::Cohere.ChatToolCallDeltaEventVariant2Delta? Type138 { get; set; } + public global::Cohere.ChatToolCallStartEventVariant2DeltaToolCallType? Type138 { get; set; } /// /// /// - public global::Cohere.ChatToolCallDeltaEventVariant2DeltaToolCall? Type139 { get; set; } + public global::Cohere.ChatToolCallStartEventVariant2DeltaToolCallFunction? Type139 { get; set; } /// /// /// - public global::Cohere.ChatToolCallDeltaEventVariant2DeltaToolCallFunction? Type140 { get; set; } + public global::Cohere.ChatToolCallDeltaEvent? Type140 { get; set; } /// /// /// - public global::Cohere.ChatToolCallEndEvent? Type141 { get; set; } + public global::Cohere.ChatToolCallDeltaEventVariant2? Type141 { get; set; } /// /// /// - public global::Cohere.ChatToolCallEndEventVariant2? Type142 { get; set; } + public global::Cohere.ChatToolCallDeltaEventVariant2Delta? Type142 { get; set; } /// /// /// - public global::Cohere.CitationStartEvent? Type143 { get; set; } + public global::Cohere.ChatToolCallDeltaEventVariant2DeltaToolCall? Type143 { get; set; } /// /// /// - public global::Cohere.CitationStartEventVariant2? Type144 { get; set; } + public global::Cohere.ChatToolCallDeltaEventVariant2DeltaToolCallFunction? Type144 { get; set; } /// /// /// - public global::Cohere.CitationStartEventVariant2Delta? Type145 { get; set; } + public global::Cohere.ChatToolCallEndEvent? Type145 { get; set; } /// /// /// - public global::Cohere.CitationStartEventVariant2DeltaMessage? Type146 { get; set; } + public global::Cohere.ChatToolCallEndEventVariant2? Type146 { get; set; } /// /// /// - public global::Cohere.CitationEndEvent? Type147 { get; set; } + public global::Cohere.CitationStartEvent? Type147 { get; set; } /// /// /// - public global::Cohere.CitationEndEventVariant2? Type148 { get; set; } + public global::Cohere.CitationStartEventVariant2? Type148 { get; set; } /// /// /// - public global::Cohere.ChatMessageEndEvent? Type149 { get; set; } + public global::Cohere.CitationStartEventVariant2Delta? Type149 { get; set; } /// /// /// - public global::Cohere.ChatMessageEndEventVariant2? Type150 { get; set; } + public global::Cohere.CitationStartEventVariant2DeltaMessage? Type150 { get; set; } /// /// /// - public global::Cohere.ChatMessageEndEventVariant2Delta? Type151 { get; set; } + public global::Cohere.CitationEndEvent? Type151 { get; set; } /// /// /// - public global::Cohere.StreamedChatResponse2? Type152 { get; set; } + public global::Cohere.CitationEndEventVariant2? Type152 { get; set; } /// /// /// - public global::Cohere.SingleGeneration? Type153 { get; set; } + public global::Cohere.ChatMessageEndEvent? Type153 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type154 { get; set; } + public global::Cohere.ChatMessageEndEventVariant2? Type154 { get; set; } /// /// /// - public global::Cohere.SingleGenerationTokenLikelihood? Type155 { get; set; } + public global::Cohere.ChatMessageEndEventVariant2Delta? Type155 { get; set; } /// /// /// - public global::Cohere.Generation? Type156 { get; set; } + public global::Cohere.StreamedChatResponse2? Type156 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type157 { get; set; } + public global::Cohere.SingleGeneration? Type157 { get; set; } /// /// /// - public global::Cohere.GenerateStreamEvent? Type158 { get; set; } + public global::System.Collections.Generic.IList? Type158 { get; set; } /// /// /// - public global::Cohere.GenerateStreamEventEventType? Type159 { get; set; } + public global::Cohere.SingleGenerationTokenLikelihood? Type159 { get; set; } /// /// /// - public global::Cohere.GenerateStreamText? Type160 { get; set; } + public global::Cohere.Generation? Type160 { get; set; } /// /// /// - public global::Cohere.GenerateStreamTextVariant2? Type161 { get; set; } + public global::System.Collections.Generic.IList? Type161 { get; set; } /// /// /// - public global::Cohere.SingleGenerationInStream? Type162 { get; set; } + public global::Cohere.GenerateStreamEvent? Type162 { get; set; } /// /// /// - public global::Cohere.GenerateStreamEnd? Type163 { get; set; } + public global::Cohere.GenerateStreamEventEventType? Type163 { get; set; } /// /// /// - public global::Cohere.GenerateStreamEndVariant2? Type164 { get; set; } + public global::Cohere.GenerateStreamText? Type164 { get; set; } /// /// /// - public global::Cohere.GenerateStreamEndVariant2Response? Type165 { get; set; } + public global::Cohere.GenerateStreamTextVariant2? Type165 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type166 { get; set; } + public global::Cohere.SingleGenerationInStream? Type166 { get; set; } /// /// /// - public global::Cohere.GenerateStreamError? Type167 { get; set; } + public global::Cohere.GenerateStreamEnd? Type167 { get; set; } /// /// /// - public global::Cohere.GenerateStreamErrorVariant2? Type168 { get; set; } + public global::Cohere.GenerateStreamEndVariant2? Type168 { get; set; } /// /// /// - public global::Cohere.GenerateStreamedResponse? Type169 { get; set; } + public global::Cohere.GenerateStreamEndVariant2Response? Type169 { get; set; } /// /// /// - public global::Cohere.EmbedInputType? Type170 { get; set; } + public global::System.Collections.Generic.IList? Type170 { get; set; } /// /// /// - public global::Cohere.EmbeddingType? Type171 { get; set; } + public global::Cohere.GenerateStreamError? Type171 { get; set; } /// /// /// - public global::Cohere.EmbedFloatsResponse? Type172 { get; set; } + public global::Cohere.GenerateStreamErrorVariant2? Type172 { get; set; } /// /// /// - public global::Cohere.EmbedFloatsResponseResponseType? Type173 { get; set; } + public global::Cohere.GenerateStreamedResponse? Type173 { get; set; } /// /// /// - public global::System.Collections.Generic.IList>? Type174 { get; set; } + public global::Cohere.EmbedInputType? Type174 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type175 { get; set; } + public global::Cohere.EmbeddingType? Type175 { get; set; } /// /// /// - public global::Cohere.EmbedByTypeResponse? Type176 { get; set; } + public global::Cohere.EmbedFloatsResponse? Type176 { get; set; } /// /// /// - public global::Cohere.EmbedByTypeResponseResponseType? Type177 { get; set; } + public global::Cohere.EmbedFloatsResponseResponseType? Type177 { get; set; } /// /// /// - public global::Cohere.EmbedByTypeResponseEmbeddings? Type178 { get; set; } + public global::System.Collections.Generic.IList>? Type178 { get; set; } /// /// /// - public global::System.Collections.Generic.IList>? Type179 { get; set; } + public global::System.Collections.Generic.IList? Type179 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type180 { get; set; } + public global::Cohere.EmbedByTypeResponse? Type180 { get; set; } /// /// /// - public global::Cohere.EmbedJob? Type181 { get; set; } + public global::Cohere.EmbedByTypeResponseResponseType? Type181 { get; set; } /// /// /// - public global::Cohere.EmbedJobStatus? Type182 { get; set; } + public global::Cohere.EmbedByTypeResponseEmbeddings? Type182 { get; set; } /// /// /// - public global::System.DateTime? Type183 { get; set; } + public global::System.Collections.Generic.IList>? Type183 { get; set; } /// /// /// - public global::Cohere.EmbedJobTruncate? Type184 { get; set; } + public global::System.Collections.Generic.IList? Type184 { get; set; } /// /// /// - public global::Cohere.ListEmbedJobResponse? Type185 { get; set; } + public global::Cohere.EmbedJob? Type185 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type186 { get; set; } + public global::Cohere.EmbedJobStatus? Type186 { get; set; } /// /// /// - public global::Cohere.CreateEmbedJobRequest? Type187 { get; set; } + public global::System.DateTime? Type187 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type188 { get; set; } + public global::Cohere.EmbedJobTruncate? Type188 { get; set; } /// /// /// - public global::Cohere.CreateEmbedJobRequestTruncate? Type189 { get; set; } + public global::Cohere.ListEmbedJobResponse? Type189 { get; set; } /// /// /// - public global::Cohere.CreateEmbedJobResponse? Type190 { get; set; } + public global::System.Collections.Generic.IList? Type190 { get; set; } /// /// /// - public global::Cohere.RerankDocument? Type191 { get; set; } + public global::Cohere.CreateEmbedJobRequest? Type191 { get; set; } /// /// /// - public global::Cohere.ClassifyExample? Type192 { get; set; } + public global::System.Collections.Generic.IList? Type192 { get; set; } /// /// /// - public global::Cohere.DatasetValidationStatus? Type193 { get; set; } + public global::Cohere.CreateEmbedJobRequestTruncate? Type193 { get; set; } /// /// /// - public global::Cohere.DatasetType? Type194 { get; set; } + public global::Cohere.CreateEmbedJobResponse? Type194 { get; set; } /// /// /// - public global::Cohere.DatasetPart? Type195 { get; set; } + public global::Cohere.RerankDocument? Type195 { get; set; } /// /// /// - public global::Cohere.ParseInfo? Type196 { get; set; } + public global::Cohere.ClassifyExample? Type196 { get; set; } /// /// /// - public global::Cohere.RerankerDataMetrics? Type197 { get; set; } + public global::Cohere.DatasetValidationStatus? Type197 { get; set; } /// /// /// - public global::Cohere.ChatDataMetrics? Type198 { get; set; } + public global::Cohere.DatasetType? Type198 { get; set; } /// /// /// - public global::Cohere.LabelMetric? Type199 { get; set; } + public global::Cohere.DatasetPart? Type199 { get; set; } /// /// /// - public global::Cohere.ClassifyDataMetrics? Type200 { get; set; } + public global::Cohere.ParseInfo? Type200 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type201 { get; set; } + public global::Cohere.RerankerDataMetrics? Type201 { get; set; } /// /// /// - public global::Cohere.FinetuneDatasetMetrics? Type202 { get; set; } + public global::Cohere.ChatDataMetrics? Type202 { get; set; } /// /// /// - public global::Cohere.Metrics? Type203 { get; set; } + public global::Cohere.LabelMetric? Type203 { get; set; } /// /// /// - public global::Cohere.Dataset? Type204 { get; set; } + public global::Cohere.ClassifyDataMetrics? Type204 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type205 { get; set; } + public global::System.Collections.Generic.IList? Type205 { get; set; } /// /// /// - public global::Cohere.ConnectorOAuth? Type206 { get; set; } + public global::Cohere.FinetuneDatasetMetrics? Type206 { get; set; } /// /// /// - public global::Cohere.Connector? Type207 { get; set; } + public global::Cohere.Metrics? Type207 { get; set; } /// /// /// - public global::Cohere.ConnectorAuthStatus? Type208 { get; set; } + public global::Cohere.Dataset? Type208 { get; set; } /// /// /// - public global::Cohere.ListConnectorsResponse? Type209 { get; set; } + public global::System.Collections.Generic.IList? Type209 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type210 { get; set; } + public global::Cohere.ConnectorOAuth? Type210 { get; set; } /// /// /// - public global::Cohere.CreateConnectorOAuth? Type211 { get; set; } + public global::Cohere.Connector? Type211 { get; set; } /// /// /// - public global::Cohere.AuthTokenType? Type212 { get; set; } + public global::Cohere.ConnectorAuthStatus? Type212 { get; set; } /// /// /// - public global::Cohere.CreateConnectorServiceAuth? Type213 { get; set; } + public global::Cohere.ListConnectorsResponse? Type213 { get; set; } /// /// /// - public global::Cohere.CreateConnectorRequest? Type214 { get; set; } + public global::System.Collections.Generic.IList? Type214 { get; set; } /// /// /// - public global::Cohere.CreateConnectorResponse? Type215 { get; set; } + public global::Cohere.CreateConnectorOAuth? Type215 { get; set; } /// /// /// - public global::Cohere.GetConnectorResponse? Type216 { get; set; } + public global::Cohere.AuthTokenType? Type216 { get; set; } /// /// /// - public global::Cohere.DeleteConnectorResponse? Type217 { get; set; } + public global::Cohere.CreateConnectorServiceAuth? Type217 { get; set; } /// /// /// - public global::Cohere.UpdateConnectorRequest? Type218 { get; set; } + public global::Cohere.CreateConnectorRequest? Type218 { get; set; } /// /// /// - public global::Cohere.UpdateConnectorResponse? Type219 { get; set; } + public global::Cohere.CreateConnectorResponse? Type219 { get; set; } /// /// /// - public global::Cohere.OAuthAuthorizeResponse? Type220 { get; set; } + public global::Cohere.GetConnectorResponse? Type220 { get; set; } /// /// /// - public global::Cohere.ConnectorLog? Type221 { get; set; } + public global::Cohere.DeleteConnectorResponse? Type221 { get; set; } /// /// /// - public global::Cohere.GetConnectorsLogsResponse? Type222 { get; set; } + public global::Cohere.UpdateConnectorRequest? Type222 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type223 { get; set; } + public global::Cohere.UpdateConnectorResponse? Type223 { get; set; } /// /// /// - public global::Cohere.TokenLikelihood? Type224 { get; set; } + public global::Cohere.OAuthAuthorizeResponse? Type224 { get; set; } /// /// /// - public global::Cohere.LogLikelihoodResponse? Type225 { get; set; } + public global::Cohere.ConnectorLog? Type225 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type226 { get; set; } + public global::Cohere.GetConnectorsLogsResponse? Type226 { get; set; } /// /// /// - public global::Cohere.Cluster? Type227 { get; set; } + public global::System.Collections.Generic.IList? Type227 { get; set; } /// /// /// - public global::Cohere.GetClusterJobResponse? Type228 { get; set; } + public global::Cohere.TokenLikelihood? Type228 { get; set; } /// /// /// - public global::Cohere.GetClusterJobResponseStatus? Type229 { get; set; } + public global::Cohere.LogLikelihoodResponse? Type229 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type230 { get; set; } + public global::System.Collections.Generic.IList? Type230 { get; set; } /// /// /// - public global::Cohere.ListClusterJobsResponse? Type231 { get; set; } + public global::Cohere.Cluster? Type231 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type232 { get; set; } + public global::Cohere.GetClusterJobResponse? Type232 { get; set; } /// /// /// - public global::Cohere.CreateClusterJobRequest? Type233 { get; set; } + public global::Cohere.GetClusterJobResponseStatus? Type233 { get; set; } /// /// /// - public global::Cohere.CreateClusterJobResponse? Type234 { get; set; } + public global::System.Collections.Generic.IList? Type234 { get; set; } /// /// /// - public global::Cohere.UpdateClusterJobRequest? Type235 { get; set; } + public global::Cohere.ListClusterJobsResponse? Type235 { get; set; } /// /// /// - public global::Cohere.UpdateClusterJobRequestStatus? Type236 { get; set; } + public global::System.Collections.Generic.IList? Type236 { get; set; } /// /// /// - public global::Cohere.UpdateClusterJobRequestInputTrackingMetrics? Type237 { get; set; } + public global::Cohere.CreateClusterJobRequest? Type237 { get; set; } /// /// /// - public global::Cohere.UpdateClusterJobRequestOutputTrackingMetrics? Type238 { get; set; } + public global::Cohere.CreateClusterJobResponse? Type238 { get; set; } /// /// /// - public global::Cohere.UpdateClusterJobResponse? Type239 { get; set; } + public global::Cohere.UpdateClusterJobRequest? Type239 { get; set; } /// /// /// - public global::Cohere.CompatibleEndpoint? Type240 { get; set; } + public global::Cohere.UpdateClusterJobRequestStatus? Type240 { get; set; } /// /// /// - public global::Cohere.GetModelResponse? Type241 { get; set; } + public global::Cohere.UpdateClusterJobRequestInputTrackingMetrics? Type241 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type242 { get; set; } + public global::Cohere.UpdateClusterJobRequestOutputTrackingMetrics? Type242 { get; set; } /// /// /// - public global::Cohere.ListModelsResponse? Type243 { get; set; } + public global::Cohere.UpdateClusterJobResponse? Type243 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type244 { get; set; } + public global::Cohere.CompatibleEndpoint? Type244 { get; set; } /// /// /// - public global::Cohere.BaseType? Type245 { get; set; } + public global::Cohere.GetModelResponse? Type245 { get; set; } /// /// /// - public global::Cohere.Strategy? Type246 { get; set; } + public global::System.Collections.Generic.IList? Type246 { get; set; } /// /// /// - public global::Cohere.BaseModel? Type247 { get; set; } + public global::Cohere.ListModelsResponse? Type247 { get; set; } /// /// /// - public global::Cohere.Hyperparameters? Type248 { get; set; } + public global::System.Collections.Generic.IList? Type248 { get; set; } /// /// /// - public global::Cohere.WandbConfig? Type249 { get; set; } + public global::Cohere.BaseType? Type249 { get; set; } /// /// /// - public global::Cohere.Settings? Type250 { get; set; } + public global::Cohere.Strategy? Type250 { get; set; } /// /// /// - public global::Cohere.Status? Type251 { get; set; } + public global::Cohere.BaseModel? Type251 { get; set; } /// /// /// - public global::Cohere.FinetunedModel? Type252 { get; set; } + public global::Cohere.Hyperparameters? Type252 { get; set; } /// /// /// - public global::Cohere.ListFinetunedModelsResponse? Type253 { get; set; } + public global::Cohere.WandbConfig? Type253 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type254 { get; set; } + public global::Cohere.Settings? Type254 { get; set; } /// /// /// - public global::Cohere.Error? Type255 { get; set; } + public global::Cohere.Status? Type255 { get; set; } /// /// /// - public global::Cohere.CreateFinetunedModelResponse? Type256 { get; set; } + public global::Cohere.FinetunedModel? Type256 { get; set; } /// /// /// - public global::Cohere.GetFinetunedModelResponse? Type257 { get; set; } + public global::Cohere.ListFinetunedModelsResponse? Type257 { get; set; } /// /// /// - public global::Cohere.DeleteFinetunedModelResponse? Type258 { get; set; } + public global::System.Collections.Generic.IList? Type258 { get; set; } /// /// /// - public global::Cohere.UpdateFinetunedModelResponse? Type259 { get; set; } + public global::Cohere.Error? Type259 { get; set; } /// /// /// - public global::Cohere.Event? Type260 { get; set; } + public global::Cohere.CreateFinetunedModelResponse? Type260 { get; set; } /// /// /// - public global::Cohere.ListEventsResponse? Type261 { get; set; } + public global::Cohere.GetFinetunedModelResponse? Type261 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type262 { get; set; } + public global::Cohere.DeleteFinetunedModelResponse? Type262 { get; set; } /// /// /// - public global::Cohere.TrainingStepMetrics? Type263 { get; set; } + public global::Cohere.UpdateFinetunedModelResponse? Type263 { get; set; } /// /// /// - public global::Cohere.TrainingStepMetricsMetrics? Type264 { get; set; } + public global::Cohere.Event? Type264 { get; set; } /// /// /// - public global::Cohere.ListTrainingStepMetricsResponse? Type265 { get; set; } + public global::Cohere.ListEventsResponse? Type265 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type266 { get; set; } + public global::System.Collections.Generic.IList? Type266 { get; set; } /// /// /// - public global::Cohere.ChatRequest? Type267 { get; set; } + public global::Cohere.TrainingStepMetrics? Type267 { get; set; } /// /// /// - public global::Cohere.ChatRequestPromptTruncation? Type268 { get; set; } + public global::Cohere.TrainingStepMetricsMetrics? Type268 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type269 { get; set; } + public global::Cohere.ListTrainingStepMetricsResponse? Type269 { get; set; } /// /// /// - public global::Cohere.ChatRequestCitationQuality? Type270 { get; set; } + public global::System.Collections.Generic.IList? Type270 { get; set; } /// /// /// - public float? Type271 { get; set; } + public global::Cohere.ChatRequest? Type271 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type272 { get; set; } + public global::Cohere.ChatRequestPromptTruncation? Type272 { get; set; } /// /// /// - public global::Cohere.Chatv2Request? Type273 { get; set; } + public global::System.Collections.Generic.IList? Type273 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type274 { get; set; } + public global::Cohere.ChatRequestCitationQuality? Type274 { get; set; } /// /// /// - public global::Cohere.Chatv2RequestCitationMode? Type275 { get; set; } + public float? Type275 { get; set; } /// /// /// - public global::Cohere.GenerateRequest? Type276 { get; set; } + public global::System.Collections.Generic.IList? Type276 { get; set; } /// /// /// - public global::Cohere.GenerateRequestTruncate? Type277 { get; set; } + public global::Cohere.Chatv2Request? Type277 { get; set; } /// /// /// - public global::Cohere.GenerateRequestReturnLikelihoods? Type278 { get; set; } + public global::System.Collections.Generic.IList? Type278 { get; set; } /// /// /// - public global::Cohere.EmbedRequest? Type279 { get; set; } + public global::Cohere.Chatv2RequestCitationMode? Type279 { get; set; } /// /// /// - public global::Cohere.EmbedRequestTruncate? Type280 { get; set; } + public global::Cohere.GenerateRequest? Type280 { get; set; } /// /// /// - public global::Cohere.RerankRequest? Type281 { get; set; } + public global::Cohere.GenerateRequestTruncate? Type281 { get; set; } /// /// /// - public global::System.Collections.Generic.IList>? Type282 { get; set; } + public global::Cohere.GenerateRequestReturnLikelihoods? Type282 { get; set; } /// /// /// - public global::System.OneOf? Type283 { get; set; } + public global::Cohere.EmbedRequest? Type283 { get; set; } /// /// /// - public global::Cohere.ClassifyRequest? Type284 { get; set; } + public global::Cohere.EmbedRequestTruncate? Type284 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type285 { get; set; } + public global::Cohere.RerankRequest? Type285 { get; set; } /// /// /// - public global::Cohere.ClassifyRequestTruncate? Type286 { get; set; } + public global::System.Collections.Generic.IList>? Type286 { get; set; } /// /// /// - public global::Cohere.CreateDatasetRequest? Type287 { get; set; } + public global::System.OneOf? Type287 { get; set; } /// /// /// - public byte[]? Type288 { get; set; } + public global::Cohere.ClassifyRequest? Type288 { get; set; } /// /// /// - public global::Cohere.SummarizeRequest? Type289 { get; set; } + public global::System.Collections.Generic.IList? Type289 { get; set; } /// /// /// - public global::Cohere.SummarizeRequestLength? Type290 { get; set; } + public global::Cohere.ClassifyRequestTruncate? Type290 { get; set; } /// /// /// - public global::Cohere.SummarizeRequestFormat? Type291 { get; set; } + public global::Cohere.CreateDatasetRequest? Type291 { get; set; } /// /// /// - public global::Cohere.SummarizeRequestExtractiveness? Type292 { get; set; } + public byte[]? Type292 { get; set; } /// /// /// - public global::Cohere.TokenizeRequest? Type293 { get; set; } + public global::Cohere.SummarizeRequest? Type293 { get; set; } /// /// /// - public global::Cohere.DetokenizeRequest? Type294 { get; set; } + public global::Cohere.SummarizeRequestLength? Type294 { get; set; } /// /// /// - public global::Cohere.UpdateFinetunedModelRequest? Type295 { get; set; } + public global::Cohere.SummarizeRequestFormat? Type295 { get; set; } /// /// /// - public global::System.OneOf? Type296 { get; set; } + public global::Cohere.SummarizeRequestExtractiveness? Type296 { get; set; } /// /// /// - public global::Cohere.ChatResponse2? Type297 { get; set; } + public global::Cohere.TokenizeRequest? Type297 { get; set; } /// /// /// - public global::Cohere.ChatResponse3? Type298 { get; set; } + public global::Cohere.DetokenizeRequest? Type298 { get; set; } /// /// /// - public global::Cohere.ChatResponse4? Type299 { get; set; } + public global::Cohere.UpdateFinetunedModelRequest? Type299 { get; set; } /// /// /// - public global::Cohere.ChatResponse5? Type300 { get; set; } + public global::System.OneOf? Type300 { get; set; } /// /// /// - public global::Cohere.ChatResponse6? Type301 { get; set; } + public global::Cohere.ChatResponse2? Type301 { get; set; } /// /// /// - public global::Cohere.ChatResponse7? Type302 { get; set; } + public global::Cohere.ChatResponse3? Type302 { get; set; } /// /// /// - public global::Cohere.ChatResponse8? Type303 { get; set; } + public global::Cohere.ChatResponse4? Type303 { get; set; } /// /// /// - public global::Cohere.ChatResponse9? Type304 { get; set; } + public global::Cohere.ChatResponse5? Type304 { get; set; } /// /// /// - public global::Cohere.ChatResponse10? Type305 { get; set; } + public global::Cohere.ChatResponse6? Type305 { get; set; } /// /// /// - public global::Cohere.ChatResponse11? Type306 { get; set; } + public global::Cohere.ChatResponse7? Type306 { get; set; } /// /// /// - public global::Cohere.ChatResponse12? Type307 { get; set; } + public global::Cohere.ChatResponse8? Type307 { get; set; } /// /// /// - public global::Cohere.ChatResponse13? Type308 { get; set; } + public global::Cohere.ChatResponse9? Type308 { get; set; } /// /// /// - public global::System.OneOf? Type309 { get; set; } + public global::Cohere.ChatResponse10? Type309 { get; set; } /// /// /// - public global::Cohere.Chatv2Response2? Type310 { get; set; } + public global::Cohere.ChatResponse11? Type310 { get; set; } /// /// /// - public global::Cohere.Chatv2Response3? Type311 { get; set; } + public global::Cohere.ChatResponse12? Type311 { get; set; } /// /// /// - public global::Cohere.Chatv2Response4? Type312 { get; set; } + public global::Cohere.ChatResponse13? Type312 { get; set; } /// /// /// - public global::Cohere.Chatv2Response5? Type313 { get; set; } + public global::System.OneOf? Type313 { get; set; } /// /// /// - public global::Cohere.Chatv2Response6? Type314 { get; set; } + public global::Cohere.Chatv2Response2? Type314 { get; set; } /// /// /// - public global::Cohere.Chatv2Response7? Type315 { get; set; } + public global::Cohere.Chatv2Response3? Type315 { get; set; } /// /// /// - public global::Cohere.Chatv2Response8? Type316 { get; set; } + public global::Cohere.Chatv2Response4? Type316 { get; set; } /// /// /// - public global::Cohere.Chatv2Response9? Type317 { get; set; } + public global::Cohere.Chatv2Response5? Type317 { get; set; } /// /// /// - public global::Cohere.Chatv2Response10? Type318 { get; set; } + public global::Cohere.Chatv2Response6? Type318 { get; set; } /// /// /// - public global::Cohere.Chatv2Response11? Type319 { get; set; } + public global::Cohere.Chatv2Response7? Type319 { get; set; } /// /// /// - public global::Cohere.Chatv2Response12? Type320 { get; set; } + public global::Cohere.Chatv2Response8? Type320 { get; set; } /// /// /// - public global::Cohere.Chatv2Response13? Type321 { get; set; } + public global::Cohere.Chatv2Response9? Type321 { get; set; } /// /// /// - public global::Cohere.GenerateResponse? Type322 { get; set; } + public global::Cohere.Chatv2Response10? Type322 { get; set; } /// /// /// - public global::Cohere.GenerateResponse2? Type323 { get; set; } + public global::Cohere.Chatv2Response11? Type323 { get; set; } /// /// /// - public global::Cohere.GenerateResponse3? Type324 { get; set; } + public global::Cohere.Chatv2Response12? Type324 { get; set; } /// /// /// - public global::Cohere.GenerateResponse4? Type325 { get; set; } + public global::Cohere.Chatv2Response13? Type325 { get; set; } /// /// /// - public global::Cohere.GenerateResponse5? Type326 { get; set; } + public global::Cohere.GenerateResponse? Type326 { get; set; } /// /// /// - public global::Cohere.GenerateResponse6? Type327 { get; set; } + public global::Cohere.GenerateResponse2? Type327 { get; set; } /// /// /// - public global::Cohere.GenerateResponse7? Type328 { get; set; } + public global::Cohere.GenerateResponse3? Type328 { get; set; } /// /// /// - public global::Cohere.GenerateResponse8? Type329 { get; set; } + public global::Cohere.GenerateResponse4? Type329 { get; set; } /// /// /// - public global::Cohere.GenerateResponse9? Type330 { get; set; } + public global::Cohere.GenerateResponse5? Type330 { get; set; } /// /// /// - public global::Cohere.GenerateResponse10? Type331 { get; set; } + public global::Cohere.GenerateResponse6? Type331 { get; set; } /// /// /// - public global::Cohere.GenerateResponse11? Type332 { get; set; } + public global::Cohere.GenerateResponse7? Type332 { get; set; } /// /// /// - public global::Cohere.GenerateResponse12? Type333 { get; set; } + public global::Cohere.GenerateResponse8? Type333 { get; set; } /// /// /// - public global::System.OneOf? Type334 { get; set; } + public global::Cohere.GenerateResponse9? Type334 { get; set; } /// /// /// - public global::Cohere.EmbedResponse2? Type335 { get; set; } + public global::Cohere.GenerateResponse10? Type335 { get; set; } /// /// /// - public global::Cohere.EmbedResponse3? Type336 { get; set; } + public global::Cohere.GenerateResponse11? Type336 { get; set; } /// /// /// - public global::Cohere.EmbedResponse4? Type337 { get; set; } + public global::Cohere.GenerateResponse12? Type337 { get; set; } /// /// /// - public global::Cohere.EmbedResponse5? Type338 { get; set; } + public global::System.OneOf? Type338 { get; set; } /// /// /// - public global::Cohere.EmbedResponse6? Type339 { get; set; } + public global::Cohere.EmbedResponse2? Type339 { get; set; } /// /// /// - public global::Cohere.EmbedResponse7? Type340 { get; set; } + public global::Cohere.EmbedResponse3? Type340 { get; set; } /// /// /// - public global::Cohere.EmbedResponse8? Type341 { get; set; } + public global::Cohere.EmbedResponse4? Type341 { get; set; } /// /// /// - public global::Cohere.EmbedResponse9? Type342 { get; set; } + public global::Cohere.EmbedResponse5? Type342 { get; set; } /// /// /// - public global::Cohere.EmbedResponse10? Type343 { get; set; } + public global::Cohere.EmbedResponse6? Type343 { get; set; } /// /// /// - public global::Cohere.EmbedResponse11? Type344 { get; set; } + public global::Cohere.EmbedResponse7? Type344 { get; set; } /// /// /// - public global::Cohere.EmbedResponse12? Type345 { get; set; } + public global::Cohere.EmbedResponse8? Type345 { get; set; } /// /// /// - public global::Cohere.EmbedResponse13? Type346 { get; set; } + public global::Cohere.EmbedResponse9? Type346 { get; set; } /// /// /// - public global::Cohere.CreateEmbedJobResponse2? Type347 { get; set; } + public global::Cohere.EmbedResponse10? Type347 { get; set; } /// /// /// - public global::Cohere.CreateEmbedJobResponse3? Type348 { get; set; } + public global::Cohere.EmbedResponse11? Type348 { get; set; } /// /// /// - public global::Cohere.CreateEmbedJobResponse4? Type349 { get; set; } + public global::Cohere.EmbedResponse12? Type349 { get; set; } /// /// /// - public global::Cohere.CreateEmbedJobResponse5? Type350 { get; set; } + public global::Cohere.EmbedResponse13? Type350 { get; set; } /// /// /// - public global::Cohere.CreateEmbedJobResponse6? Type351 { get; set; } + public global::Cohere.CreateEmbedJobResponse2? Type351 { get; set; } /// /// /// - public global::Cohere.CreateEmbedJobResponse7? Type352 { get; set; } + public global::Cohere.CreateEmbedJobResponse3? Type352 { get; set; } /// /// /// - public global::Cohere.CreateEmbedJobResponse8? Type353 { get; set; } + public global::Cohere.CreateEmbedJobResponse4? Type353 { get; set; } /// /// /// - public global::Cohere.CreateEmbedJobResponse9? Type354 { get; set; } + public global::Cohere.CreateEmbedJobResponse5? Type354 { get; set; } /// /// /// - public global::Cohere.CreateEmbedJobResponse10? Type355 { get; set; } + public global::Cohere.CreateEmbedJobResponse6? Type355 { get; set; } /// /// /// - public global::Cohere.CreateEmbedJobResponse11? Type356 { get; set; } + public global::Cohere.CreateEmbedJobResponse7? Type356 { get; set; } /// /// /// - public global::Cohere.CreateEmbedJobResponse12? Type357 { get; set; } + public global::Cohere.CreateEmbedJobResponse8? Type357 { get; set; } /// /// /// - public global::Cohere.CreateEmbedJobResponse13? Type358 { get; set; } + public global::Cohere.CreateEmbedJobResponse9? Type358 { get; set; } /// /// /// - public global::Cohere.ListEmbedJobsResponse? Type359 { get; set; } + public global::Cohere.CreateEmbedJobResponse10? Type359 { get; set; } /// /// /// - public global::Cohere.ListEmbedJobsResponse2? Type360 { get; set; } + public global::Cohere.CreateEmbedJobResponse11? Type360 { get; set; } /// /// /// - public global::Cohere.ListEmbedJobsResponse3? Type361 { get; set; } + public global::Cohere.CreateEmbedJobResponse12? Type361 { get; set; } /// /// /// - public global::Cohere.ListEmbedJobsResponse4? Type362 { get; set; } + public global::Cohere.CreateEmbedJobResponse13? Type362 { get; set; } /// /// /// - public global::Cohere.ListEmbedJobsResponse5? Type363 { get; set; } + public global::Cohere.ListEmbedJobsResponse? Type363 { get; set; } /// /// /// - public global::Cohere.ListEmbedJobsResponse6? Type364 { get; set; } + public global::Cohere.ListEmbedJobsResponse2? Type364 { get; set; } /// /// /// - public global::Cohere.ListEmbedJobsResponse7? Type365 { get; set; } + public global::Cohere.ListEmbedJobsResponse3? Type365 { get; set; } /// /// /// - public global::Cohere.ListEmbedJobsResponse8? Type366 { get; set; } + public global::Cohere.ListEmbedJobsResponse4? Type366 { get; set; } /// /// /// - public global::Cohere.ListEmbedJobsResponse9? Type367 { get; set; } + public global::Cohere.ListEmbedJobsResponse5? Type367 { get; set; } /// /// /// - public global::Cohere.ListEmbedJobsResponse10? Type368 { get; set; } + public global::Cohere.ListEmbedJobsResponse6? Type368 { get; set; } /// /// /// - public global::Cohere.ListEmbedJobsResponse11? Type369 { get; set; } + public global::Cohere.ListEmbedJobsResponse7? Type369 { get; set; } /// /// /// - public global::Cohere.ListEmbedJobsResponse12? Type370 { get; set; } + public global::Cohere.ListEmbedJobsResponse8? Type370 { get; set; } /// /// /// - public global::Cohere.GetEmbedJobResponse? Type371 { get; set; } + public global::Cohere.ListEmbedJobsResponse9? Type371 { get; set; } /// /// /// - public global::Cohere.GetEmbedJobResponse2? Type372 { get; set; } + public global::Cohere.ListEmbedJobsResponse10? Type372 { get; set; } /// /// /// - public global::Cohere.GetEmbedJobResponse3? Type373 { get; set; } + public global::Cohere.ListEmbedJobsResponse11? Type373 { get; set; } /// /// /// - public global::Cohere.GetEmbedJobResponse4? Type374 { get; set; } + public global::Cohere.ListEmbedJobsResponse12? Type374 { get; set; } /// /// /// - public global::Cohere.GetEmbedJobResponse5? Type375 { get; set; } + public global::Cohere.GetEmbedJobResponse? Type375 { get; set; } /// /// /// - public global::Cohere.GetEmbedJobResponse6? Type376 { get; set; } + public global::Cohere.GetEmbedJobResponse2? Type376 { get; set; } /// /// /// - public global::Cohere.GetEmbedJobResponse7? Type377 { get; set; } + public global::Cohere.GetEmbedJobResponse3? Type377 { get; set; } /// /// /// - public global::Cohere.GetEmbedJobResponse8? Type378 { get; set; } + public global::Cohere.GetEmbedJobResponse4? Type378 { get; set; } /// /// /// - public global::Cohere.GetEmbedJobResponse9? Type379 { get; set; } + public global::Cohere.GetEmbedJobResponse5? Type379 { get; set; } /// /// /// - public global::Cohere.GetEmbedJobResponse10? Type380 { get; set; } + public global::Cohere.GetEmbedJobResponse6? Type380 { get; set; } /// /// /// - public global::Cohere.GetEmbedJobResponse11? Type381 { get; set; } + public global::Cohere.GetEmbedJobResponse7? Type381 { get; set; } /// /// /// - public global::Cohere.GetEmbedJobResponse12? Type382 { get; set; } + public global::Cohere.GetEmbedJobResponse8? Type382 { get; set; } /// /// /// - public global::Cohere.CancelEmbedJobResponse? Type383 { get; set; } + public global::Cohere.GetEmbedJobResponse9? Type383 { get; set; } /// /// /// - public global::Cohere.CancelEmbedJobResponse2? Type384 { get; set; } + public global::Cohere.GetEmbedJobResponse10? Type384 { get; set; } /// /// /// - public global::Cohere.CancelEmbedJobResponse3? Type385 { get; set; } + public global::Cohere.GetEmbedJobResponse11? Type385 { get; set; } /// /// /// - public global::Cohere.CancelEmbedJobResponse4? Type386 { get; set; } + public global::Cohere.GetEmbedJobResponse12? Type386 { get; set; } /// /// /// - public global::Cohere.CancelEmbedJobResponse5? Type387 { get; set; } + public global::Cohere.CancelEmbedJobResponse? Type387 { get; set; } /// /// /// - public global::Cohere.CancelEmbedJobResponse6? Type388 { get; set; } + public global::Cohere.CancelEmbedJobResponse2? Type388 { get; set; } /// /// /// - public global::Cohere.CancelEmbedJobResponse7? Type389 { get; set; } + public global::Cohere.CancelEmbedJobResponse3? Type389 { get; set; } /// /// /// - public global::Cohere.CancelEmbedJobResponse8? Type390 { get; set; } + public global::Cohere.CancelEmbedJobResponse4? Type390 { get; set; } /// /// /// - public global::Cohere.CancelEmbedJobResponse9? Type391 { get; set; } + public global::Cohere.CancelEmbedJobResponse5? Type391 { get; set; } /// /// /// - public global::Cohere.CancelEmbedJobResponse10? Type392 { get; set; } + public global::Cohere.CancelEmbedJobResponse6? Type392 { get; set; } /// /// /// - public global::Cohere.CancelEmbedJobResponse11? Type393 { get; set; } + public global::Cohere.CancelEmbedJobResponse7? Type393 { get; set; } /// /// /// - public global::Cohere.CancelEmbedJobResponse12? Type394 { get; set; } + public global::Cohere.CancelEmbedJobResponse8? Type394 { get; set; } /// /// /// - public global::Cohere.RerankResponse? Type395 { get; set; } + public global::Cohere.CancelEmbedJobResponse9? Type395 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type396 { get; set; } + public global::Cohere.CancelEmbedJobResponse10? Type396 { get; set; } /// /// /// - public global::Cohere.RerankResponseResult? Type397 { get; set; } + public global::Cohere.CancelEmbedJobResponse11? Type397 { get; set; } /// /// /// - public global::Cohere.RerankResponseResultDocument? Type398 { get; set; } + public global::Cohere.CancelEmbedJobResponse12? Type398 { get; set; } /// /// /// - public global::Cohere.RerankResponse2? Type399 { get; set; } + public global::Cohere.RerankResponse? Type399 { get; set; } /// /// /// - public global::Cohere.RerankResponse3? Type400 { get; set; } + public global::System.Collections.Generic.IList? Type400 { get; set; } /// /// /// - public global::Cohere.RerankResponse4? Type401 { get; set; } + public global::Cohere.RerankResponseResult? Type401 { get; set; } /// /// /// - public global::Cohere.RerankResponse5? Type402 { get; set; } + public global::Cohere.RerankResponseResultDocument? Type402 { get; set; } /// /// /// - public global::Cohere.RerankResponse6? Type403 { get; set; } + public global::Cohere.RerankResponse2? Type403 { get; set; } /// /// /// - public global::Cohere.RerankResponse7? Type404 { get; set; } + public global::Cohere.RerankResponse3? Type404 { get; set; } /// /// /// - public global::Cohere.RerankResponse8? Type405 { get; set; } + public global::Cohere.RerankResponse4? Type405 { get; set; } /// /// /// - public global::Cohere.RerankResponse9? Type406 { get; set; } + public global::Cohere.RerankResponse5? Type406 { get; set; } /// /// /// - public global::Cohere.RerankResponse10? Type407 { get; set; } + public global::Cohere.RerankResponse6? Type407 { get; set; } /// /// /// - public global::Cohere.RerankResponse11? Type408 { get; set; } + public global::Cohere.RerankResponse7? Type408 { get; set; } /// /// /// - public global::Cohere.RerankResponse12? Type409 { get; set; } + public global::Cohere.RerankResponse8? Type409 { get; set; } /// /// /// - public global::Cohere.RerankResponse13? Type410 { get; set; } + public global::Cohere.RerankResponse9? Type410 { get; set; } /// /// /// - public global::Cohere.ClassifyResponse? Type411 { get; set; } + public global::Cohere.RerankResponse10? Type411 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type412 { get; set; } + public global::Cohere.RerankResponse11? Type412 { get; set; } /// /// /// - public global::Cohere.ClassifyResponseClassification? Type413 { get; set; } + public global::Cohere.RerankResponse12? Type413 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type414 { get; set; } + public global::Cohere.RerankResponse13? Type414 { get; set; } /// /// /// - public global::Cohere.ClassifyResponseClassificationLabels? Type415 { get; set; } + public global::Cohere.ClassifyResponse? Type415 { get; set; } /// /// /// - public global::Cohere.ClassifyResponseClassificationClassificationType? Type416 { get; set; } + public global::System.Collections.Generic.IList? Type416 { get; set; } /// /// /// - public global::Cohere.ClassifyResponse2? Type417 { get; set; } + public global::Cohere.ClassifyResponseClassification? Type417 { get; set; } /// /// /// - public global::Cohere.ClassifyResponse3? Type418 { get; set; } + public global::System.Collections.Generic.IList? Type418 { get; set; } /// /// /// - public global::Cohere.ClassifyResponse4? Type419 { get; set; } + public global::Cohere.ClassifyResponseClassificationLabels? Type419 { get; set; } /// /// /// - public global::Cohere.ClassifyResponse5? Type420 { get; set; } + public global::Cohere.ClassifyResponseClassificationClassificationType? Type420 { get; set; } /// /// /// - public global::Cohere.ClassifyResponse6? Type421 { get; set; } + public global::Cohere.ClassifyResponse2? Type421 { get; set; } /// /// /// - public global::Cohere.ClassifyResponse7? Type422 { get; set; } + public global::Cohere.ClassifyResponse3? Type422 { get; set; } /// /// /// - public global::Cohere.ClassifyResponse8? Type423 { get; set; } + public global::Cohere.ClassifyResponse4? Type423 { get; set; } /// /// /// - public global::Cohere.ClassifyResponse9? Type424 { get; set; } + public global::Cohere.ClassifyResponse5? Type424 { get; set; } /// /// /// - public global::Cohere.ClassifyResponse10? Type425 { get; set; } + public global::Cohere.ClassifyResponse6? Type425 { get; set; } /// /// /// - public global::Cohere.ClassifyResponse11? Type426 { get; set; } + public global::Cohere.ClassifyResponse7? Type426 { get; set; } /// /// /// - public global::Cohere.ClassifyResponse12? Type427 { get; set; } + public global::Cohere.ClassifyResponse8? Type427 { get; set; } /// /// /// - public global::Cohere.ClassifyResponse13? Type428 { get; set; } + public global::Cohere.ClassifyResponse9? Type428 { get; set; } /// /// /// - public global::Cohere.CreateDatasetResponse? Type429 { get; set; } + public global::Cohere.ClassifyResponse10? Type429 { get; set; } /// /// /// - public global::Cohere.CreateDatasetResponse2? Type430 { get; set; } + public global::Cohere.ClassifyResponse11? Type430 { get; set; } /// /// /// - public global::Cohere.CreateDatasetResponse3? Type431 { get; set; } + public global::Cohere.ClassifyResponse12? Type431 { get; set; } /// /// /// - public global::Cohere.CreateDatasetResponse4? Type432 { get; set; } + public global::Cohere.ClassifyResponse13? Type432 { get; set; } /// /// /// - public global::Cohere.CreateDatasetResponse5? Type433 { get; set; } + public global::Cohere.CreateDatasetResponse? Type433 { get; set; } /// /// /// - public global::Cohere.CreateDatasetResponse6? Type434 { get; set; } + public global::Cohere.CreateDatasetResponse2? Type434 { get; set; } /// /// /// - public global::Cohere.CreateDatasetResponse7? Type435 { get; set; } + public global::Cohere.CreateDatasetResponse3? Type435 { get; set; } /// /// /// - public global::Cohere.CreateDatasetResponse8? Type436 { get; set; } + public global::Cohere.CreateDatasetResponse4? Type436 { get; set; } /// /// /// - public global::Cohere.CreateDatasetResponse9? Type437 { get; set; } + public global::Cohere.CreateDatasetResponse5? Type437 { get; set; } /// /// /// - public global::Cohere.CreateDatasetResponse10? Type438 { get; set; } + public global::Cohere.CreateDatasetResponse6? Type438 { get; set; } /// /// /// - public global::Cohere.CreateDatasetResponse11? Type439 { get; set; } + public global::Cohere.CreateDatasetResponse7? Type439 { get; set; } /// /// /// - public global::Cohere.CreateDatasetResponse12? Type440 { get; set; } + public global::Cohere.CreateDatasetResponse8? Type440 { get; set; } /// /// /// - public global::Cohere.CreateDatasetResponse13? Type441 { get; set; } + public global::Cohere.CreateDatasetResponse9? Type441 { get; set; } /// /// /// - public global::Cohere.ListDatasetsResponse? Type442 { get; set; } + public global::Cohere.CreateDatasetResponse10? Type442 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type443 { get; set; } + public global::Cohere.CreateDatasetResponse11? Type443 { get; set; } /// /// /// - public global::Cohere.ListDatasetsResponse2? Type444 { get; set; } + public global::Cohere.CreateDatasetResponse12? Type444 { get; set; } /// /// /// - public global::Cohere.ListDatasetsResponse3? Type445 { get; set; } + public global::Cohere.CreateDatasetResponse13? Type445 { get; set; } /// /// /// - public global::Cohere.ListDatasetsResponse4? Type446 { get; set; } + public global::Cohere.ListDatasetsResponse? Type446 { get; set; } /// /// /// - public global::Cohere.ListDatasetsResponse5? Type447 { get; set; } + public global::System.Collections.Generic.IList? Type447 { get; set; } /// /// /// - public global::Cohere.ListDatasetsResponse6? Type448 { get; set; } + public global::Cohere.ListDatasetsResponse2? Type448 { get; set; } /// /// /// - public global::Cohere.ListDatasetsResponse7? Type449 { get; set; } + public global::Cohere.ListDatasetsResponse3? Type449 { get; set; } /// /// /// - public global::Cohere.ListDatasetsResponse8? Type450 { get; set; } + public global::Cohere.ListDatasetsResponse4? Type450 { get; set; } /// /// /// - public global::Cohere.ListDatasetsResponse9? Type451 { get; set; } + public global::Cohere.ListDatasetsResponse5? Type451 { get; set; } /// /// /// - public global::Cohere.ListDatasetsResponse10? Type452 { get; set; } + public global::Cohere.ListDatasetsResponse6? Type452 { get; set; } /// /// /// - public global::Cohere.ListDatasetsResponse11? Type453 { get; set; } + public global::Cohere.ListDatasetsResponse7? Type453 { get; set; } /// /// /// - public global::Cohere.ListDatasetsResponse12? Type454 { get; set; } + public global::Cohere.ListDatasetsResponse8? Type454 { get; set; } /// /// /// - public global::Cohere.ListDatasetsResponse13? Type455 { get; set; } + public global::Cohere.ListDatasetsResponse9? Type455 { get; set; } /// /// /// - public global::Cohere.GetDatasetUsageResponse? Type456 { get; set; } + public global::Cohere.ListDatasetsResponse10? Type456 { get; set; } /// /// /// - public global::Cohere.GetDatasetUsageResponse2? Type457 { get; set; } + public global::Cohere.ListDatasetsResponse11? Type457 { get; set; } /// /// /// - public global::Cohere.GetDatasetUsageResponse3? Type458 { get; set; } + public global::Cohere.ListDatasetsResponse12? Type458 { get; set; } /// /// /// - public global::Cohere.GetDatasetUsageResponse4? Type459 { get; set; } + public global::Cohere.ListDatasetsResponse13? Type459 { get; set; } /// /// /// - public global::Cohere.GetDatasetUsageResponse5? Type460 { get; set; } + public global::Cohere.GetDatasetUsageResponse? Type460 { get; set; } /// /// /// - public global::Cohere.GetDatasetUsageResponse6? Type461 { get; set; } + public global::Cohere.GetDatasetUsageResponse2? Type461 { get; set; } /// /// /// - public global::Cohere.GetDatasetUsageResponse7? Type462 { get; set; } + public global::Cohere.GetDatasetUsageResponse3? Type462 { get; set; } /// /// /// - public global::Cohere.GetDatasetUsageResponse8? Type463 { get; set; } + public global::Cohere.GetDatasetUsageResponse4? Type463 { get; set; } /// /// /// - public global::Cohere.GetDatasetUsageResponse9? Type464 { get; set; } + public global::Cohere.GetDatasetUsageResponse5? Type464 { get; set; } /// /// /// - public global::Cohere.GetDatasetUsageResponse10? Type465 { get; set; } + public global::Cohere.GetDatasetUsageResponse6? Type465 { get; set; } /// /// /// - public global::Cohere.GetDatasetUsageResponse11? Type466 { get; set; } + public global::Cohere.GetDatasetUsageResponse7? Type466 { get; set; } /// /// /// - public global::Cohere.GetDatasetUsageResponse12? Type467 { get; set; } + public global::Cohere.GetDatasetUsageResponse8? Type467 { get; set; } /// /// /// - public global::Cohere.GetDatasetUsageResponse13? Type468 { get; set; } + public global::Cohere.GetDatasetUsageResponse9? Type468 { get; set; } /// /// /// - public global::Cohere.GetDatasetResponse? Type469 { get; set; } + public global::Cohere.GetDatasetUsageResponse10? Type469 { get; set; } /// /// /// - public global::Cohere.GetDatasetResponse2? Type470 { get; set; } + public global::Cohere.GetDatasetUsageResponse11? Type470 { get; set; } /// /// /// - public global::Cohere.GetDatasetResponse3? Type471 { get; set; } + public global::Cohere.GetDatasetUsageResponse12? Type471 { get; set; } /// /// /// - public global::Cohere.GetDatasetResponse4? Type472 { get; set; } + public global::Cohere.GetDatasetUsageResponse13? Type472 { get; set; } /// /// /// - public global::Cohere.GetDatasetResponse5? Type473 { get; set; } + public global::Cohere.GetDatasetResponse? Type473 { get; set; } /// /// /// - public global::Cohere.GetDatasetResponse6? Type474 { get; set; } + public global::Cohere.GetDatasetResponse2? Type474 { get; set; } /// /// /// - public global::Cohere.GetDatasetResponse7? Type475 { get; set; } + public global::Cohere.GetDatasetResponse3? Type475 { get; set; } /// /// /// - public global::Cohere.GetDatasetResponse8? Type476 { get; set; } + public global::Cohere.GetDatasetResponse4? Type476 { get; set; } /// /// /// - public global::Cohere.GetDatasetResponse9? Type477 { get; set; } + public global::Cohere.GetDatasetResponse5? Type477 { get; set; } /// /// /// - public global::Cohere.GetDatasetResponse10? Type478 { get; set; } + public global::Cohere.GetDatasetResponse6? Type478 { get; set; } /// /// /// - public global::Cohere.GetDatasetResponse11? Type479 { get; set; } + public global::Cohere.GetDatasetResponse7? Type479 { get; set; } /// /// /// - public global::Cohere.GetDatasetResponse12? Type480 { get; set; } + public global::Cohere.GetDatasetResponse8? Type480 { get; set; } /// /// /// - public global::Cohere.GetDatasetResponse13? Type481 { get; set; } + public global::Cohere.GetDatasetResponse9? Type481 { get; set; } /// /// /// - public global::Cohere.DeleteDatasetResponse? Type482 { get; set; } + public global::Cohere.GetDatasetResponse10? Type482 { get; set; } /// /// /// - public global::Cohere.DeleteDatasetResponse2? Type483 { get; set; } + public global::Cohere.GetDatasetResponse11? Type483 { get; set; } /// /// /// - public global::Cohere.DeleteDatasetResponse3? Type484 { get; set; } + public global::Cohere.GetDatasetResponse12? Type484 { get; set; } /// /// /// - public global::Cohere.DeleteDatasetResponse4? Type485 { get; set; } + public global::Cohere.GetDatasetResponse13? Type485 { get; set; } /// /// /// - public global::Cohere.DeleteDatasetResponse5? Type486 { get; set; } + public global::Cohere.DeleteDatasetResponse? Type486 { get; set; } /// /// /// - public global::Cohere.DeleteDatasetResponse6? Type487 { get; set; } + public global::Cohere.DeleteDatasetResponse2? Type487 { get; set; } /// /// /// - public global::Cohere.DeleteDatasetResponse7? Type488 { get; set; } + public global::Cohere.DeleteDatasetResponse3? Type488 { get; set; } /// /// /// - public global::Cohere.DeleteDatasetResponse8? Type489 { get; set; } + public global::Cohere.DeleteDatasetResponse4? Type489 { get; set; } /// /// /// - public global::Cohere.DeleteDatasetResponse9? Type490 { get; set; } + public global::Cohere.DeleteDatasetResponse5? Type490 { get; set; } /// /// /// - public global::Cohere.DeleteDatasetResponse10? Type491 { get; set; } + public global::Cohere.DeleteDatasetResponse6? Type491 { get; set; } /// /// /// - public global::Cohere.DeleteDatasetResponse11? Type492 { get; set; } + public global::Cohere.DeleteDatasetResponse7? Type492 { get; set; } /// /// /// - public global::Cohere.DeleteDatasetResponse12? Type493 { get; set; } + public global::Cohere.DeleteDatasetResponse8? Type493 { get; set; } /// /// /// - public global::Cohere.DeleteDatasetResponse13? Type494 { get; set; } + public global::Cohere.DeleteDatasetResponse9? Type494 { get; set; } /// /// /// - public global::Cohere.SummarizeResponse? Type495 { get; set; } + public global::Cohere.DeleteDatasetResponse10? Type495 { get; set; } /// /// /// - public global::Cohere.SummarizeResponse2? Type496 { get; set; } + public global::Cohere.DeleteDatasetResponse11? Type496 { get; set; } /// /// /// - public global::Cohere.SummarizeResponse3? Type497 { get; set; } + public global::Cohere.DeleteDatasetResponse12? Type497 { get; set; } /// /// /// - public global::Cohere.SummarizeResponse4? Type498 { get; set; } + public global::Cohere.DeleteDatasetResponse13? Type498 { get; set; } /// /// /// - public global::Cohere.SummarizeResponse5? Type499 { get; set; } + public global::Cohere.SummarizeResponse? Type499 { get; set; } /// /// /// - public global::Cohere.SummarizeResponse6? Type500 { get; set; } + public global::Cohere.SummarizeResponse2? Type500 { get; set; } /// /// /// - public global::Cohere.SummarizeResponse7? Type501 { get; set; } + public global::Cohere.SummarizeResponse3? Type501 { get; set; } /// /// /// - public global::Cohere.SummarizeResponse8? Type502 { get; set; } + public global::Cohere.SummarizeResponse4? Type502 { get; set; } /// /// /// - public global::Cohere.SummarizeResponse9? Type503 { get; set; } + public global::Cohere.SummarizeResponse5? Type503 { get; set; } /// /// /// - public global::Cohere.SummarizeResponse10? Type504 { get; set; } + public global::Cohere.SummarizeResponse6? Type504 { get; set; } /// /// /// - public global::Cohere.SummarizeResponse11? Type505 { get; set; } + public global::Cohere.SummarizeResponse7? Type505 { get; set; } /// /// /// - public global::Cohere.SummarizeResponse12? Type506 { get; set; } + public global::Cohere.SummarizeResponse8? Type506 { get; set; } /// /// /// - public global::Cohere.SummarizeResponse13? Type507 { get; set; } + public global::Cohere.SummarizeResponse9? Type507 { get; set; } /// /// /// - public global::Cohere.TokenizeResponse? Type508 { get; set; } + public global::Cohere.SummarizeResponse10? Type508 { get; set; } /// /// /// - public global::Cohere.TokenizeResponse2? Type509 { get; set; } + public global::Cohere.SummarizeResponse11? Type509 { get; set; } /// /// /// - public global::Cohere.TokenizeResponse3? Type510 { get; set; } + public global::Cohere.SummarizeResponse12? Type510 { get; set; } /// /// /// - public global::Cohere.TokenizeResponse4? Type511 { get; set; } + public global::Cohere.SummarizeResponse13? Type511 { get; set; } /// /// /// - public global::Cohere.TokenizeResponse5? Type512 { get; set; } + public global::Cohere.TokenizeResponse? Type512 { get; set; } /// /// /// - public global::Cohere.TokenizeResponse6? Type513 { get; set; } + public global::Cohere.TokenizeResponse2? Type513 { get; set; } /// /// /// - public global::Cohere.TokenizeResponse7? Type514 { get; set; } + public global::Cohere.TokenizeResponse3? Type514 { get; set; } /// /// /// - public global::Cohere.TokenizeResponse8? Type515 { get; set; } + public global::Cohere.TokenizeResponse4? Type515 { get; set; } /// /// /// - public global::Cohere.TokenizeResponse9? Type516 { get; set; } + public global::Cohere.TokenizeResponse5? Type516 { get; set; } /// /// /// - public global::Cohere.TokenizeResponse10? Type517 { get; set; } + public global::Cohere.TokenizeResponse6? Type517 { get; set; } /// /// /// - public global::Cohere.TokenizeResponse11? Type518 { get; set; } + public global::Cohere.TokenizeResponse7? Type518 { get; set; } /// /// /// - public global::Cohere.TokenizeResponse12? Type519 { get; set; } + public global::Cohere.TokenizeResponse8? Type519 { get; set; } /// /// /// - public global::Cohere.TokenizeResponse13? Type520 { get; set; } + public global::Cohere.TokenizeResponse9? Type520 { get; set; } /// /// /// - public global::Cohere.DetokenizeResponse? Type521 { get; set; } + public global::Cohere.TokenizeResponse10? Type521 { get; set; } /// /// /// - public global::Cohere.DetokenizeResponse2? Type522 { get; set; } + public global::Cohere.TokenizeResponse11? Type522 { get; set; } /// /// /// - public global::Cohere.DetokenizeResponse3? Type523 { get; set; } + public global::Cohere.TokenizeResponse12? Type523 { get; set; } /// /// /// - public global::Cohere.DetokenizeResponse4? Type524 { get; set; } + public global::Cohere.TokenizeResponse13? Type524 { get; set; } /// /// /// - public global::Cohere.DetokenizeResponse5? Type525 { get; set; } + public global::Cohere.DetokenizeResponse? Type525 { get; set; } /// /// /// - public global::Cohere.DetokenizeResponse6? Type526 { get; set; } + public global::Cohere.DetokenizeResponse2? Type526 { get; set; } /// /// /// - public global::Cohere.DetokenizeResponse7? Type527 { get; set; } + public global::Cohere.DetokenizeResponse3? Type527 { get; set; } /// /// /// - public global::Cohere.DetokenizeResponse8? Type528 { get; set; } + public global::Cohere.DetokenizeResponse4? Type528 { get; set; } /// /// /// - public global::Cohere.DetokenizeResponse9? Type529 { get; set; } + public global::Cohere.DetokenizeResponse5? Type529 { get; set; } /// /// /// - public global::Cohere.DetokenizeResponse10? Type530 { get; set; } + public global::Cohere.DetokenizeResponse6? Type530 { get; set; } /// /// /// - public global::Cohere.DetokenizeResponse11? Type531 { get; set; } + public global::Cohere.DetokenizeResponse7? Type531 { get; set; } /// /// /// - public global::Cohere.DetokenizeResponse12? Type532 { get; set; } + public global::Cohere.DetokenizeResponse8? Type532 { get; set; } /// /// /// - public global::Cohere.DetokenizeResponse13? Type533 { get; set; } + public global::Cohere.DetokenizeResponse9? Type533 { get; set; } /// /// /// - public global::Cohere.ListConnectorsResponse2? Type534 { get; set; } + public global::Cohere.DetokenizeResponse10? Type534 { get; set; } /// /// /// - public global::Cohere.ListConnectorsResponse3? Type535 { get; set; } + public global::Cohere.DetokenizeResponse11? Type535 { get; set; } /// /// /// - public global::Cohere.ListConnectorsResponse4? Type536 { get; set; } + public global::Cohere.DetokenizeResponse12? Type536 { get; set; } /// /// /// - public global::Cohere.ListConnectorsResponse5? Type537 { get; set; } + public global::Cohere.DetokenizeResponse13? Type537 { get; set; } /// /// /// - public global::Cohere.ListConnectorsResponse6? Type538 { get; set; } + public global::Cohere.ListConnectorsResponse2? Type538 { get; set; } /// /// /// - public global::Cohere.ListConnectorsResponse7? Type539 { get; set; } + public global::Cohere.ListConnectorsResponse3? Type539 { get; set; } /// /// /// - public global::Cohere.ListConnectorsResponse8? Type540 { get; set; } + public global::Cohere.ListConnectorsResponse4? Type540 { get; set; } /// /// /// - public global::Cohere.ListConnectorsResponse9? Type541 { get; set; } + public global::Cohere.ListConnectorsResponse5? Type541 { get; set; } /// /// /// - public global::Cohere.ListConnectorsResponse10? Type542 { get; set; } + public global::Cohere.ListConnectorsResponse6? Type542 { get; set; } /// /// /// - public global::Cohere.ListConnectorsResponse11? Type543 { get; set; } + public global::Cohere.ListConnectorsResponse7? Type543 { get; set; } /// /// /// - public global::Cohere.ListConnectorsResponse12? Type544 { get; set; } + public global::Cohere.ListConnectorsResponse8? Type544 { get; set; } /// /// /// - public global::Cohere.ListConnectorsResponse13? Type545 { get; set; } + public global::Cohere.ListConnectorsResponse9? Type545 { get; set; } /// /// /// - public global::Cohere.CreateConnectorResponse2? Type546 { get; set; } + public global::Cohere.ListConnectorsResponse10? Type546 { get; set; } /// /// /// - public global::Cohere.CreateConnectorResponse3? Type547 { get; set; } + public global::Cohere.ListConnectorsResponse11? Type547 { get; set; } /// /// /// - public global::Cohere.CreateConnectorResponse4? Type548 { get; set; } + public global::Cohere.ListConnectorsResponse12? Type548 { get; set; } /// /// /// - public global::Cohere.CreateConnectorResponse5? Type549 { get; set; } + public global::Cohere.ListConnectorsResponse13? Type549 { get; set; } /// /// /// - public global::Cohere.CreateConnectorResponse6? Type550 { get; set; } + public global::Cohere.CreateConnectorResponse2? Type550 { get; set; } /// /// /// - public global::Cohere.CreateConnectorResponse7? Type551 { get; set; } + public global::Cohere.CreateConnectorResponse3? Type551 { get; set; } /// /// /// - public global::Cohere.CreateConnectorResponse8? Type552 { get; set; } + public global::Cohere.CreateConnectorResponse4? Type552 { get; set; } /// /// /// - public global::Cohere.CreateConnectorResponse9? Type553 { get; set; } + public global::Cohere.CreateConnectorResponse5? Type553 { get; set; } /// /// /// - public global::Cohere.CreateConnectorResponse10? Type554 { get; set; } + public global::Cohere.CreateConnectorResponse6? Type554 { get; set; } /// /// /// - public global::Cohere.CreateConnectorResponse11? Type555 { get; set; } + public global::Cohere.CreateConnectorResponse7? Type555 { get; set; } /// /// /// - public global::Cohere.CreateConnectorResponse12? Type556 { get; set; } + public global::Cohere.CreateConnectorResponse8? Type556 { get; set; } /// /// /// - public global::Cohere.CreateConnectorResponse13? Type557 { get; set; } + public global::Cohere.CreateConnectorResponse9? Type557 { get; set; } /// /// /// - public global::Cohere.GetConnectorResponse2? Type558 { get; set; } + public global::Cohere.CreateConnectorResponse10? Type558 { get; set; } /// /// /// - public global::Cohere.GetConnectorResponse3? Type559 { get; set; } + public global::Cohere.CreateConnectorResponse11? Type559 { get; set; } /// /// /// - public global::Cohere.GetConnectorResponse4? Type560 { get; set; } + public global::Cohere.CreateConnectorResponse12? Type560 { get; set; } /// /// /// - public global::Cohere.GetConnectorResponse5? Type561 { get; set; } + public global::Cohere.CreateConnectorResponse13? Type561 { get; set; } /// /// /// - public global::Cohere.GetConnectorResponse6? Type562 { get; set; } + public global::Cohere.GetConnectorResponse2? Type562 { get; set; } /// /// /// - public global::Cohere.GetConnectorResponse7? Type563 { get; set; } + public global::Cohere.GetConnectorResponse3? Type563 { get; set; } /// /// /// - public global::Cohere.GetConnectorResponse8? Type564 { get; set; } + public global::Cohere.GetConnectorResponse4? Type564 { get; set; } /// /// /// - public global::Cohere.GetConnectorResponse9? Type565 { get; set; } + public global::Cohere.GetConnectorResponse5? Type565 { get; set; } /// /// /// - public global::Cohere.GetConnectorResponse10? Type566 { get; set; } + public global::Cohere.GetConnectorResponse6? Type566 { get; set; } /// /// /// - public global::Cohere.GetConnectorResponse11? Type567 { get; set; } + public global::Cohere.GetConnectorResponse7? Type567 { get; set; } /// /// /// - public global::Cohere.GetConnectorResponse12? Type568 { get; set; } + public global::Cohere.GetConnectorResponse8? Type568 { get; set; } /// /// /// - public global::Cohere.GetConnectorResponse13? Type569 { get; set; } + public global::Cohere.GetConnectorResponse9? Type569 { get; set; } /// /// /// - public global::Cohere.UpdateConnectorResponse2? Type570 { get; set; } + public global::Cohere.GetConnectorResponse10? Type570 { get; set; } /// /// /// - public global::Cohere.UpdateConnectorResponse3? Type571 { get; set; } + public global::Cohere.GetConnectorResponse11? Type571 { get; set; } /// /// /// - public global::Cohere.UpdateConnectorResponse4? Type572 { get; set; } + public global::Cohere.GetConnectorResponse12? Type572 { get; set; } /// /// /// - public global::Cohere.UpdateConnectorResponse5? Type573 { get; set; } + public global::Cohere.GetConnectorResponse13? Type573 { get; set; } /// /// /// - public global::Cohere.UpdateConnectorResponse6? Type574 { get; set; } + public global::Cohere.UpdateConnectorResponse2? Type574 { get; set; } /// /// /// - public global::Cohere.UpdateConnectorResponse7? Type575 { get; set; } + public global::Cohere.UpdateConnectorResponse3? Type575 { get; set; } /// /// /// - public global::Cohere.UpdateConnectorResponse8? Type576 { get; set; } + public global::Cohere.UpdateConnectorResponse4? Type576 { get; set; } /// /// /// - public global::Cohere.UpdateConnectorResponse9? Type577 { get; set; } + public global::Cohere.UpdateConnectorResponse5? Type577 { get; set; } /// /// /// - public global::Cohere.UpdateConnectorResponse10? Type578 { get; set; } + public global::Cohere.UpdateConnectorResponse6? Type578 { get; set; } /// /// /// - public global::Cohere.UpdateConnectorResponse11? Type579 { get; set; } + public global::Cohere.UpdateConnectorResponse7? Type579 { get; set; } /// /// /// - public global::Cohere.UpdateConnectorResponse12? Type580 { get; set; } + public global::Cohere.UpdateConnectorResponse8? Type580 { get; set; } /// /// /// - public global::Cohere.UpdateConnectorResponse13? Type581 { get; set; } + public global::Cohere.UpdateConnectorResponse9? Type581 { get; set; } /// /// /// - public global::Cohere.DeleteConnectorResponse2? Type582 { get; set; } + public global::Cohere.UpdateConnectorResponse10? Type582 { get; set; } /// /// /// - public global::Cohere.DeleteConnectorResponse3? Type583 { get; set; } + public global::Cohere.UpdateConnectorResponse11? Type583 { get; set; } /// /// /// - public global::Cohere.DeleteConnectorResponse4? Type584 { get; set; } + public global::Cohere.UpdateConnectorResponse12? Type584 { get; set; } /// /// /// - public global::Cohere.DeleteConnectorResponse5? Type585 { get; set; } + public global::Cohere.UpdateConnectorResponse13? Type585 { get; set; } /// /// /// - public global::Cohere.DeleteConnectorResponse6? Type586 { get; set; } + public global::Cohere.DeleteConnectorResponse2? Type586 { get; set; } /// /// /// - public global::Cohere.DeleteConnectorResponse7? Type587 { get; set; } + public global::Cohere.DeleteConnectorResponse3? Type587 { get; set; } /// /// /// - public global::Cohere.DeleteConnectorResponse8? Type588 { get; set; } + public global::Cohere.DeleteConnectorResponse4? Type588 { get; set; } /// /// /// - public global::Cohere.DeleteConnectorResponse9? Type589 { get; set; } + public global::Cohere.DeleteConnectorResponse5? Type589 { get; set; } /// /// /// - public global::Cohere.DeleteConnectorResponse10? Type590 { get; set; } + public global::Cohere.DeleteConnectorResponse6? Type590 { get; set; } /// /// /// - public global::Cohere.DeleteConnectorResponse11? Type591 { get; set; } + public global::Cohere.DeleteConnectorResponse7? Type591 { get; set; } /// /// /// - public global::Cohere.DeleteConnectorResponse12? Type592 { get; set; } + public global::Cohere.DeleteConnectorResponse8? Type592 { get; set; } /// /// /// - public global::Cohere.DeleteConnectorResponse13? Type593 { get; set; } + public global::Cohere.DeleteConnectorResponse9? Type593 { get; set; } /// /// /// - public global::Cohere.OAuthAuthorizeConnectorResponse? Type594 { get; set; } + public global::Cohere.DeleteConnectorResponse10? Type594 { get; set; } /// /// /// - public global::Cohere.OAuthAuthorizeConnectorResponse2? Type595 { get; set; } + public global::Cohere.DeleteConnectorResponse11? Type595 { get; set; } /// /// /// - public global::Cohere.OAuthAuthorizeConnectorResponse3? Type596 { get; set; } + public global::Cohere.DeleteConnectorResponse12? Type596 { get; set; } /// /// /// - public global::Cohere.OAuthAuthorizeConnectorResponse4? Type597 { get; set; } + public global::Cohere.DeleteConnectorResponse13? Type597 { get; set; } /// /// /// - public global::Cohere.OAuthAuthorizeConnectorResponse5? Type598 { get; set; } + public global::Cohere.OAuthAuthorizeConnectorResponse? Type598 { get; set; } /// /// /// - public global::Cohere.OAuthAuthorizeConnectorResponse6? Type599 { get; set; } + public global::Cohere.OAuthAuthorizeConnectorResponse2? Type599 { get; set; } /// /// /// - public global::Cohere.OAuthAuthorizeConnectorResponse7? Type600 { get; set; } + public global::Cohere.OAuthAuthorizeConnectorResponse3? Type600 { get; set; } /// /// /// - public global::Cohere.OAuthAuthorizeConnectorResponse8? Type601 { get; set; } + public global::Cohere.OAuthAuthorizeConnectorResponse4? Type601 { get; set; } /// /// /// - public global::Cohere.OAuthAuthorizeConnectorResponse9? Type602 { get; set; } + public global::Cohere.OAuthAuthorizeConnectorResponse5? Type602 { get; set; } /// /// /// - public global::Cohere.OAuthAuthorizeConnectorResponse10? Type603 { get; set; } + public global::Cohere.OAuthAuthorizeConnectorResponse6? Type603 { get; set; } /// /// /// - public global::Cohere.OAuthAuthorizeConnectorResponse11? Type604 { get; set; } + public global::Cohere.OAuthAuthorizeConnectorResponse7? Type604 { get; set; } /// /// /// - public global::Cohere.OAuthAuthorizeConnectorResponse12? Type605 { get; set; } + public global::Cohere.OAuthAuthorizeConnectorResponse8? Type605 { get; set; } /// /// /// - public global::Cohere.GetModelResponse2? Type606 { get; set; } + public global::Cohere.OAuthAuthorizeConnectorResponse9? Type606 { get; set; } /// /// /// - public global::Cohere.GetModelResponse3? Type607 { get; set; } + public global::Cohere.OAuthAuthorizeConnectorResponse10? Type607 { get; set; } /// /// /// - public global::Cohere.GetModelResponse4? Type608 { get; set; } + public global::Cohere.OAuthAuthorizeConnectorResponse11? Type608 { get; set; } /// /// /// - public global::Cohere.GetModelResponse5? Type609 { get; set; } + public global::Cohere.OAuthAuthorizeConnectorResponse12? Type609 { get; set; } /// /// /// - public global::Cohere.GetModelResponse6? Type610 { get; set; } + public global::Cohere.GetModelResponse2? Type610 { get; set; } /// /// /// - public global::Cohere.GetModelResponse7? Type611 { get; set; } + public global::Cohere.GetModelResponse3? Type611 { get; set; } /// /// /// - public global::Cohere.GetModelResponse8? Type612 { get; set; } + public global::Cohere.GetModelResponse4? Type612 { get; set; } /// /// /// - public global::Cohere.GetModelResponse9? Type613 { get; set; } + public global::Cohere.GetModelResponse5? Type613 { get; set; } /// /// /// - public global::Cohere.GetModelResponse10? Type614 { get; set; } + public global::Cohere.GetModelResponse6? Type614 { get; set; } /// /// /// - public global::Cohere.GetModelResponse11? Type615 { get; set; } + public global::Cohere.GetModelResponse7? Type615 { get; set; } /// /// /// - public global::Cohere.GetModelResponse12? Type616 { get; set; } + public global::Cohere.GetModelResponse8? Type616 { get; set; } /// /// /// - public global::Cohere.GetModelResponse13? Type617 { get; set; } + public global::Cohere.GetModelResponse9? Type617 { get; set; } /// /// /// - public global::Cohere.ListModelsResponse2? Type618 { get; set; } + public global::Cohere.GetModelResponse10? Type618 { get; set; } /// /// /// - public global::Cohere.ListModelsResponse3? Type619 { get; set; } + public global::Cohere.GetModelResponse11? Type619 { get; set; } /// /// /// - public global::Cohere.ListModelsResponse4? Type620 { get; set; } + public global::Cohere.GetModelResponse12? Type620 { get; set; } /// /// /// - public global::Cohere.ListModelsResponse5? Type621 { get; set; } + public global::Cohere.GetModelResponse13? Type621 { get; set; } /// /// /// - public global::Cohere.ListModelsResponse6? Type622 { get; set; } + public global::Cohere.ListModelsResponse2? Type622 { get; set; } /// /// /// - public global::Cohere.ListModelsResponse7? Type623 { get; set; } + public global::Cohere.ListModelsResponse3? Type623 { get; set; } /// /// /// - public global::Cohere.ListModelsResponse8? Type624 { get; set; } + public global::Cohere.ListModelsResponse4? Type624 { get; set; } /// /// /// - public global::Cohere.ListModelsResponse9? Type625 { get; set; } + public global::Cohere.ListModelsResponse5? Type625 { get; set; } /// /// /// - public global::Cohere.ListModelsResponse10? Type626 { get; set; } + public global::Cohere.ListModelsResponse6? Type626 { get; set; } /// /// /// - public global::Cohere.ListModelsResponse11? Type627 { get; set; } + public global::Cohere.ListModelsResponse7? Type627 { get; set; } /// /// /// - public global::Cohere.ListModelsResponse12? Type628 { get; set; } + public global::Cohere.ListModelsResponse8? Type628 { get; set; } /// /// /// - public global::Cohere.ListModelsResponse13? Type629 { get; set; } + public global::Cohere.ListModelsResponse9? Type629 { get; set; } /// /// /// - public global::Cohere.CheckAPIKeyResponse? Type630 { get; set; } + public global::Cohere.ListModelsResponse10? Type630 { get; set; } /// /// /// - public global::Cohere.CheckAPIKeyResponse2? Type631 { get; set; } + public global::Cohere.ListModelsResponse11? Type631 { get; set; } /// /// /// - public global::Cohere.CheckAPIKeyResponse3? Type632 { get; set; } + public global::Cohere.ListModelsResponse12? Type632 { get; set; } /// /// /// - public global::Cohere.CheckAPIKeyResponse4? Type633 { get; set; } + public global::Cohere.ListModelsResponse13? Type633 { get; set; } /// /// /// - public global::Cohere.CheckAPIKeyResponse5? Type634 { get; set; } + public global::Cohere.CheckAPIKeyResponse? Type634 { get; set; } /// /// /// - public global::Cohere.CheckAPIKeyResponse6? Type635 { get; set; } + public global::Cohere.CheckAPIKeyResponse2? Type635 { get; set; } /// /// /// - public global::Cohere.CheckAPIKeyResponse7? Type636 { get; set; } + public global::Cohere.CheckAPIKeyResponse3? Type636 { get; set; } /// /// /// - public global::Cohere.CheckAPIKeyResponse8? Type637 { get; set; } + public global::Cohere.CheckAPIKeyResponse4? Type637 { get; set; } /// /// /// - public global::Cohere.CheckAPIKeyResponse9? Type638 { get; set; } + public global::Cohere.CheckAPIKeyResponse5? Type638 { get; set; } /// /// /// - public global::Cohere.CheckAPIKeyResponse10? Type639 { get; set; } + public global::Cohere.CheckAPIKeyResponse6? Type639 { get; set; } /// /// /// - public global::Cohere.CheckAPIKeyResponse11? Type640 { get; set; } + public global::Cohere.CheckAPIKeyResponse7? Type640 { get; set; } /// /// /// - public global::Cohere.CheckAPIKeyResponse12? Type641 { get; set; } + public global::Cohere.CheckAPIKeyResponse8? Type641 { get; set; } /// /// /// - public global::Cohere.CheckAPIKeyResponse13? Type642 { get; set; } + public global::Cohere.CheckAPIKeyResponse9? Type642 { get; set; } + /// + /// + /// + public global::Cohere.CheckAPIKeyResponse10? Type643 { get; set; } + /// + /// + /// + public global::Cohere.CheckAPIKeyResponse11? Type644 { get; set; } + /// + /// + /// + public global::Cohere.CheckAPIKeyResponse12? Type645 { get; set; } + /// + /// + /// + public global::Cohere.CheckAPIKeyResponse13? Type646 { get; set; } } } \ No newline at end of file diff --git a/src/libs/Cohere/openapi.yaml b/src/libs/Cohere/openapi.yaml index 4602382..15e03cd 100644 --- a/src/libs/Cohere/openapi.yaml +++ b/src/libs/Cohere/openapi.yaml @@ -718,6 +718,7 @@ paths: /v2/chat: post: summary: Chat with the model + description: "Generates a message from the model in response to a provided conversation. To learn how to use the Chat API with Streaming and RAG follow our Text Generation guides.\n" operationId: chatv2 requestBody: content: @@ -730,7 +731,7 @@ paths: properties: model: type: string - description: The model to use for the chat. + description: 'The name of a compatible [Cohere model](https://docs.cohere.com/docs/models) (such as command-r or command-r-plus) or the ID of a [fine-tuned](https://docs.cohere.com/docs/chat-fine-tuning) model.' messages: $ref: '#/components/schemas/ChatMessages' tools: @@ -746,7 +747,7 @@ paths: type: string description: "Defaults to `\"accurate\"`.\nDictates the approach taken to generating citations as part of the RAG flow by allowing the user to specify whether they want `\"accurate\"` results, `\"fast\"` results or no results.\n" response_format: - $ref: '#/components/schemas/ResponseFormat' + $ref: '#/components/schemas/ResponseFormat-2' max_tokens: type: integer description: "The maximum number of tokens the model will generate as part of the response. Note: Setting a low value may result in incomplete generations.\n" @@ -841,7 +842,7 @@ paths: finish_reason: $ref: '#/components/schemas/ChatFinishReason' message: - $ref: '#/components/schemas/AssistantMessage' + $ref: '#/components/schemas/AssistantMessageResponse' usage: $ref: '#/components/schemas/Usage' response-stream: @@ -863,32 +864,324 @@ paths: name: Default code: "const { CohereClientV2 } = require('cohere-ai');\n\nconst cohere = new CohereClientV2({\n token: '<>',\n});\n\n(async () => {\n const response = await cohere.chat({\n model: 'command-r-plus',\n messages: [\n {\n role: 'user',\n content: 'hello world!',\n },\n ],\n });\n\n console.log(response);\n})();\n" - sdk: python - name: Sync - code: "import cohere\n\nco = cohere.ClientV2(\"<>\")\n\nresponse = co.chat(\n model=\"command-r-plus\",\n messages=[\n cohere.v2.ChatMessage2_User(\n content=\"hello world!\"\n )\n ]\n)\n\nprint(response)\n" + name: Default + code: "import cohere\n\nco = cohere.ClientV2(\"<>\")\n\nresponse = co.chat(\n model=\"command-r-plus\",\n messages=[\n {\n \"role\": \"user\",\n \"content\": \"hello world!\"\n }\n ]\n)\n\nprint(response)\n" - sdk: python name: Async code: "import cohere\nimport asyncio\n\nco = cohere.AsyncClientV2(\"<>\")\n\n\nasync def main():\n response = await co.chat(\n model=\"command-r-plus\",\n messages=[\n cohere.v2.ChatMessage2_User(\n content=\"hello world!\"\n )\n ]\n )\n\n print(response)\n\nasyncio.run(main())\n" + request: + model: command-r + messages: + - role: user + content: Tell me about LLMs + stream: false + response: + body: + id: c14c80c3-18eb-4519-9460-6c92edd8cfb4 + message: + role: assistant + content: + - type: text + text: "LLMs stand for Large Language Models, which are a type of neural network model specialized in processing and generating human language. They are designed to understand and respond to natural language input and have become increasingly popular and valuable in recent years.\n\nLLMs are trained on vast amounts of text data, enabling them to learn patterns, grammar, and semantic meanings present in the language. These models can then be used for various natural language processing tasks, such as text generation, summarization, question answering, machine translation, sentiment analysis, and even some aspects of natural language understanding.\n\nSome well-known examples of LLMs include:\n\n1. GPT-3 (Generative Pre-trained Transformer 3) — An open-source LLM developed by OpenAI, capable of generating human-like text and performing various language tasks.\n\n2. BERT (Bidirectional Encoder Representations from Transformers) — A Google-developed LLM that is particularly good at understanding contextual relationships in text, and is widely used for natural language understanding tasks like sentiment analysis and named entity recognition.\n\n3. T5 (Text-to-Text Transfer Transformer) — Also from Google, T5 is a flexible LLM that frames all language tasks as text-to-text problems, where the model learns to generate output text based on input text prompts.\n\n4. RoBERTa (Robustly Optimized BERT Approach) — A variant of BERT that uses additional training techniques to improve performance.\n\n5. DeBERTa (Decoding-enhanced BERT with disentangled attention) — Another variant of BERT that introduces a new attention mechanism.\n\nLLMs have become increasingly powerful and larger in scale, improving the accuracy and sophistication of language tasks. They are also being used as a foundation for developing various applications, including chatbots, content recommendation systems, language translation services, and more. \n\nThe future of LLMs holds the potential for even more sophisticated language technologies, with ongoing research and development focused on enhancing their capabilities, improving efficiency, and exploring their applications in various domains." + finish_reason: complete + usage: + billed_units: + input_tokens: 5 + output_tokens: 418 + tokens: + input_tokens: 71 + output_tokens: 418 - code-samples: - sdk: typescript name: Documents code: "const { CohereClientV2 } = require('cohere-ai');\n\nconst cohere = new CohereClientV2({\n token: '<>',\n});\n\n(async () => {\n const response = await cohere.chat({\n model: 'command-r-plus',\n messages: [\n {\n role: 'user',\n content: [{ type: 'text', text: \"Who's the best?\" }],\n documents: [{ id: '1', text: 'Cohere is the best!' }],\n },\n ],\n });\n\n console.log(response);\n})();\n" - sdk: python name: Documents - code: "import cohere\n\nco = cohere.ClientV2(\"<>\")\n\nresponse = co.chat(\n model=\"command-r-plus\",\n messages=[\n cohere.v2.ChatMessage2_User(\n content=[\n cohere.v2.TextContent(text=\"Who's the best?\"),\n ],\n documents=[{'id': '1', 'title': 'The best', 'text': 'Cohere is the best!'}]\n )\n ]\n)\n\nprint(response)\n" + code: "import cohere\n\nco = cohere.ClientV2(\"<>\")\n\nresponse = co.chat(\n model=\"command-r-plus\",\n messages=[\n {\n \"role\": \"user\",\n \"content\": \"Who's the best?\",\n \"documents\": [{'id': '1', 'title': 'The best', 'text': 'Cohere is the best!'}]\n }\n ]\n)\n\nprint(response)\n" + request: + model: command-r + messages: + - role: user + content: 'Who is more popular: Nsync or Backstreet Boys?' + documents: + - title: 'CSPC: Backstreet Boys Popularity Analysis - ChartMasters' + snippet: "↓ Skip to Main Content\n\nMusic industry – One step closer to being accurate\n\nCSPC: Backstreet Boys Popularity Analysis\n\nHernán Lopez Posted on February 9, 2017 Posted in CSPC 72 Comments Tagged with Backstreet Boys, Boy band\n\nAt one point, Backstreet Boys defined success: massive albums sales across the globe, great singles sales, plenty of chart topping releases, hugely hyped tours and tremendous media coverage.\n\nIt is true that they benefited from extraordinarily good market conditions in all markets. After all, the all-time record year for the music business, as far as revenues in billion dollars are concerned, was actually 1999. That is, back when this five men group was at its peak." + - title: 'CSPC: NSYNC Popularity Analysis - ChartMasters' + snippet: "↓ Skip to Main Content\n\nMusic industry – One step closer to being accurate\n\nCSPC: NSYNC Popularity Analysis\n\nMJD Posted on February 9, 2018 Posted in CSPC 27 Comments Tagged with Boy band, N'Sync\n\nAt the turn of the millennium three teen acts were huge in the US, the Backstreet Boys, Britney Spears and NSYNC. The latter is the only one we haven’t study so far. It took 15 years and Adele to break their record of 2,4 million units sold of No Strings Attached in its first week alone.\n\nIt wasn’t a fluke, as the second fastest selling album of the Soundscan era prior 2015, was also theirs since Celebrity debuted with 1,88 million units sold." + - title: 'CSPC: Backstreet Boys Popularity Analysis - ChartMasters' + snippet: "1997, 1998, 2000 and 2001 also rank amongst some of the very best years.\nYet the way many music consumers – especially teenagers and young women’s – embraced their output deserves its own chapter. If Jonas Brothers and more recently One Direction reached a great level of popularity during the past decade, the type of success achieved by Backstreet Boys is in a completely different level as they really dominated the business for a few years all over the world, including in some countries that were traditionally hard to penetrate for Western artists.\n\nWe will try to analyze the extent of that hegemony with this new article with final results which will more than surprise many readers." + - title: 'CSPC: NSYNC Popularity Analysis - ChartMasters' + snippet: "Was the teen group led by Justin Timberlake really that big? Was it only in the US where they found success? Or were they a global phenomenon?\nAs usual, I’ll be using the Commensurate Sales to Popularity Concept in order to relevantly gauge their results. This concept will not only bring you sales information for all NSYNC‘s albums, physical and download singles, as well as audio and video streaming, but it will also determine their true popularity. If you are not yet familiar with the CSPC method, the next page explains it with a short video. I fully recommend watching the video before getting into the sales figures." + stream: false + response: + body: + id: c14c80c3-18eb-4519-9460-6c92edd8cfb4 + message: + role: assistant + content: + - type: text + text: "Both NSync and Backstreet Boys were extremely popular at the turn of the millennium. Backstreet Boys had massive album sales across the globe, great singles sales, plenty of chart-topping releases, hyped tours, and tremendous media coverage. NSync also had huge sales, with their album No Strings Attached selling 2.4 million units in its first week. They also had the second fastest-selling album of the Soundscan era before 2015, with Celebrity debuting at 1.88 million units sold.\n\nWhile it is difficult to say for sure which of the two bands was more popular, Backstreet Boys did have success in some countries that were traditionally hard to penetrate for Western artists." + citations: + - start: 36 + end: 84 + text: extremely popular at the turn of the millennium. + sources: + - type: document + id: doc_1 + document: + snippet: "↓ Skip to Main Content\n\nMusic industry – One step closer to being accurate\n\nCSPC: NSYNC Popularity Analysis\n\nMJD Posted on February 9, 2018 Posted in CSPC 27 Comments Tagged with Boy band, N'Sync\n\nAt the turn of the millennium three teen acts were huge in the US, the Backstreet Boys, Britney Spears and NSYNC. The latter is the only one we haven’t study so far. It took 15 years and Adele to break their record of 2,4 million units sold of No Strings Attached in its first week alone.\n\nIt wasn’t a fluke, as the second fastest selling album of the Soundscan era prior 2015, was also theirs since Celebrity debuted with 1,88 million units sold." + title: 'CSPC: NSYNC Popularity Analysis - ChartMasters' + - start: 105 + end: 141 + text: massive album sales across the globe + sources: + - type: document + id: doc_0 + document: + snippet: "↓ Skip to Main Content\n\nMusic industry – One step closer to being accurate\n\nCSPC: Backstreet Boys Popularity Analysis\n\nHernán Lopez Posted on February 9, 2017 Posted in CSPC 72 Comments Tagged with Backstreet Boys, Boy band\n\nAt one point, Backstreet Boys defined success: massive albums sales across the globe, great singles sales, plenty of chart topping releases, hugely hyped tours and tremendous media coverage.\n\nIt is true that they benefited from extraordinarily good market conditions in all markets. After all, the all-time record year for the music business, as far as revenues in billion dollars are concerned, was actually 1999. That is, back when this five men group was at its peak." + title: 'CSPC: Backstreet Boys Popularity Analysis - ChartMasters' + - start: 143 + end: 162 + text: great singles sales + sources: + - type: document + id: doc_0 + document: + snippet: "↓ Skip to Main Content\n\nMusic industry – One step closer to being accurate\n\nCSPC: Backstreet Boys Popularity Analysis\n\nHernán Lopez Posted on February 9, 2017 Posted in CSPC 72 Comments Tagged with Backstreet Boys, Boy band\n\nAt one point, Backstreet Boys defined success: massive albums sales across the globe, great singles sales, plenty of chart topping releases, hugely hyped tours and tremendous media coverage.\n\nIt is true that they benefited from extraordinarily good market conditions in all markets. After all, the all-time record year for the music business, as far as revenues in billion dollars are concerned, was actually 1999. That is, back when this five men group was at its peak." + title: 'CSPC: Backstreet Boys Popularity Analysis - ChartMasters' + - start: 164 + end: 196 + text: plenty of chart-topping releases + sources: + - type: document + id: doc_0 + document: + snippet: "↓ Skip to Main Content\n\nMusic industry – One step closer to being accurate\n\nCSPC: Backstreet Boys Popularity Analysis\n\nHernán Lopez Posted on February 9, 2017 Posted in CSPC 72 Comments Tagged with Backstreet Boys, Boy band\n\nAt one point, Backstreet Boys defined success: massive albums sales across the globe, great singles sales, plenty of chart topping releases, hugely hyped tours and tremendous media coverage.\n\nIt is true that they benefited from extraordinarily good market conditions in all markets. After all, the all-time record year for the music business, as far as revenues in billion dollars are concerned, was actually 1999. That is, back when this five men group was at its peak." + title: 'CSPC: Backstreet Boys Popularity Analysis - ChartMasters' + - start: 198 + end: 209 + text: hyped tours + sources: + - type: document + id: doc_0 + document: + snippet: "↓ Skip to Main Content\n\nMusic industry – One step closer to being accurate\n\nCSPC: Backstreet Boys Popularity Analysis\n\nHernán Lopez Posted on February 9, 2017 Posted in CSPC 72 Comments Tagged with Backstreet Boys, Boy band\n\nAt one point, Backstreet Boys defined success: massive albums sales across the globe, great singles sales, plenty of chart topping releases, hugely hyped tours and tremendous media coverage.\n\nIt is true that they benefited from extraordinarily good market conditions in all markets. After all, the all-time record year for the music business, as far as revenues in billion dollars are concerned, was actually 1999. That is, back when this five men group was at its peak." + title: 'CSPC: Backstreet Boys Popularity Analysis - ChartMasters' + - start: 215 + end: 241 + text: tremendous media coverage. + sources: + - type: document + id: doc_0 + document: + snippet: "↓ Skip to Main Content\n\nMusic industry – One step closer to being accurate\n\nCSPC: Backstreet Boys Popularity Analysis\n\nHernán Lopez Posted on February 9, 2017 Posted in CSPC 72 Comments Tagged with Backstreet Boys, Boy band\n\nAt one point, Backstreet Boys defined success: massive albums sales across the globe, great singles sales, plenty of chart topping releases, hugely hyped tours and tremendous media coverage.\n\nIt is true that they benefited from extraordinarily good market conditions in all markets. After all, the all-time record year for the music business, as far as revenues in billion dollars are concerned, was actually 1999. That is, back when this five men group was at its peak." + title: 'CSPC: Backstreet Boys Popularity Analysis - ChartMasters' + - start: 280 + end: 350 + text: album No Strings Attached selling 2.4 million units in its first week. + sources: + - type: document + id: doc_1 + document: + snippet: "↓ Skip to Main Content\n\nMusic industry – One step closer to being accurate\n\nCSPC: NSYNC Popularity Analysis\n\nMJD Posted on February 9, 2018 Posted in CSPC 27 Comments Tagged with Boy band, N'Sync\n\nAt the turn of the millennium three teen acts were huge in the US, the Backstreet Boys, Britney Spears and NSYNC. The latter is the only one we haven’t study so far. It took 15 years and Adele to break their record of 2,4 million units sold of No Strings Attached in its first week alone.\n\nIt wasn’t a fluke, as the second fastest selling album of the Soundscan era prior 2015, was also theirs since Celebrity debuted with 1,88 million units sold." + title: 'CSPC: NSYNC Popularity Analysis - ChartMasters' + - start: 369 + end: 430 + text: second fastest-selling album of the Soundscan era before 2015 + sources: + - type: document + id: doc_1 + document: + snippet: "↓ Skip to Main Content\n\nMusic industry – One step closer to being accurate\n\nCSPC: NSYNC Popularity Analysis\n\nMJD Posted on February 9, 2018 Posted in CSPC 27 Comments Tagged with Boy band, N'Sync\n\nAt the turn of the millennium three teen acts were huge in the US, the Backstreet Boys, Britney Spears and NSYNC. The latter is the only one we haven’t study so far. It took 15 years and Adele to break their record of 2,4 million units sold of No Strings Attached in its first week alone.\n\nIt wasn’t a fluke, as the second fastest selling album of the Soundscan era prior 2015, was also theirs since Celebrity debuted with 1,88 million units sold." + title: 'CSPC: NSYNC Popularity Analysis - ChartMasters' + - start: 437 + end: 483 + text: Celebrity debuting at 1.88 million units sold. + sources: + - type: document + id: doc_1 + document: + snippet: "↓ Skip to Main Content\n\nMusic industry – One step closer to being accurate\n\nCSPC: NSYNC Popularity Analysis\n\nMJD Posted on February 9, 2018 Posted in CSPC 27 Comments Tagged with Boy band, N'Sync\n\nAt the turn of the millennium three teen acts were huge in the US, the Backstreet Boys, Britney Spears and NSYNC. The latter is the only one we haven’t study so far. It took 15 years and Adele to break their record of 2,4 million units sold of No Strings Attached in its first week alone.\n\nIt wasn’t a fluke, as the second fastest selling album of the Soundscan era prior 2015, was also theirs since Celebrity debuted with 1,88 million units sold." + title: 'CSPC: NSYNC Popularity Analysis - ChartMasters' + - start: 589 + end: 677 + text: success in some countries that were traditionally hard to penetrate for Western artists. + sources: + - type: document + id: doc_2 + document: + snippet: "1997, 1998, 2000 and 2001 also rank amongst some of the very best years.\nYet the way many music consumers – especially teenagers and young women’s – embraced their output deserves its own chapter. If Jonas Brothers and more recently One Direction reached a great level of popularity during the past decade, the type of success achieved by Backstreet Boys is in a completely different level as they really dominated the business for a few years all over the world, including in some countries that were traditionally hard to penetrate for Western artists.\n\nWe will try to analyze the extent of that hegemony with this new article with final results which will more than surprise many readers." + title: 'CSPC: Backstreet Boys Popularity Analysis - ChartMasters' + finish_reason: complete + usage: + billed_units: + input_tokens: 682 + output_tokens: 143 + tokens: + input_tokens: 1380 + output_tokens: 434 - code-samples: - sdk: typescript name: Streaming code: "const { CohereClientV2 } = require('cohere-ai');\n\nconst cohere = new CohereClientV2({\n token: '<>',\n});\n\n(async () => {\n const stream = await cohere.chatStream({\n model: 'command-r-plus',\n messages: [\n {\n role: 'user',\n content: 'hello world!',\n },\n ],\n });\n\n for await (const chatEvent of stream) {\n if (chatEvent.type === 'content-delta') {\n console.log(chatEvent.delta?.message);\n }\n }\n})();\n" - sdk: python name: Streaming - code: "import cohere\n\nco = cohere.ClientV2(\"<>\")\n\nresponse = co.chat_stream(\n model=\"command-r-plus\",\n messages=[\n cohere.v2.ChatMessage2_User(\n content=\"hello world!\"\n )\n ]\n)\n\nfor event in response:\n if event.event_type == \"text-generation\":\n print(event.text, end='')\n" + code: "import cohere\n\nco = cohere.ClientV2(\"<>\")\n\nresponse = co.chat_stream(\n model=\"command-r-plus\",\n messages=[\n {\n \"role\": \"user\",\n \"content\": \"hello world!\"\n }\n ]\n)\n\nfor event in response:\n if event.type == \"content-delta\":\n print(event.delta.message.content.text, end='')\n" + request: + model: command-r + messages: + - role: user + content: Hello! + stream: true + response: + stream: + - type: message-start + id: 29f14a5a-11de-4cae-9800-25e4747408ea + delta: + message: + role: assistant + content: [ ] + tool_plan: '' + tool_calls: [ ] + citations: [ ] + - type: content-start + index: 0 + delta: + message: + content: + type: text + text: '' + - type: content-delta + index: 0 + delta: + message: + content: + text: Hello + - type: content-delta + index: 0 + delta: + message: + content: + text: '!' + - type: content-delta + index: 0 + delta: + message: + content: + text: ' How' + - type: content-delta + index: 0 + delta: + message: + content: + text: ' can' + - type: content-delta + index: 0 + delta: + message: + content: + text: ' I' + - type: content-delta + index: 0 + delta: + message: + content: + text: ' help' + - type: content-delta + index: 0 + delta: + message: + content: + text: ' you' + - type: content-delta + index: 0 + delta: + message: + content: + text: ' today' + - type: content-delta + index: 0 + delta: + message: + content: + text: '?' + - type: content-end + index: 0 + - event_type: message-end + delta: + finish_reason: complete + usage: + api_version: + version: '2' + billed_units: + input_tokens: 3 + output_tokens: 9 + tokens: + input_tokens: 69 + output_tokens: 9 - code-samples: - sdk: typescript name: Tools code: "const { CohereClientV2 } = require('cohere-ai');\n\nconst cohere = new CohereClientV2({\n token: '<>',\n});\n\n(async () => {\n const response = await cohere.chat({\n model: 'command-r-plus',\n tools: [\n {\n type: 'function',\n function: {\n name: 'query_daily_sales_report',\n description:\n 'Connects to a database to retrieve overall sales volumes and sales information for a given day.',\n parameters: {\n day: {\n description: 'Retrieves sales data for this day, formatted as YYYY-MM-DD.',\n type: 'str',\n required: true,\n },\n },\n },\n },\n {\n type: 'function',\n function: {\n name: 'query_product_catalog',\n description:\n 'Connects to a a product catalog with information about all the products being sold, including categories, prices, and stock levels.',\n parameters: {\n category: {\n description: 'Retrieves product information data for all products in this category.',\n type: 'str',\n required: true,\n },\n },\n },\n },\n ],\n messages: [\n {\n role: 'user',\n content:\n \"Can you provide a sales summary for 29th September 2023, and also give me some details about the products in the 'Electronics' category, for example their prices and stock levels?\",\n },\n ],\n });\n\n console.log(response);\n})();\n" - sdk: python name: Tools - code: "import cohere\n\nco = cohere.Client(\"<>\")\n\nresponse = co.chat(\n model=\"command-r-plus\",\n tools=[\n cohere.v2.Tool2(type='function', function={\n \"name\": 'query_daily_sales_report',\n \"description\": 'Connects to a database to retrieve overall sales volumes and sales information for a given day.',\n \"parameters\": {\n \"day\": {\n \"description\": 'Retrieves sales data for this day, formatted as YYYY-MM-DD.',\n \"type\": 'str',\n \"required\": True,\n },\n }\n }),\n cohere.v2.Tool2(type='function', function={\n \"name\": 'query_product_catalog',\n \"description\": 'Connects to a a product catalog with information about all the products being sold, including categories, prices, and stock levels.',\n \"parameters\": {\n \"category\": {\n \"description\": 'Retrieves product information data for all products in this category.',\n \"type\": 'str',\n \"required\": True,\n },\n }\n })\n ],\n messages=[\n cohere.v2.ChatMessage2_User(\n content=\"Can you provide a sales summary for 29th September 2023, and also give me some details about the products in the 'Electronics' category, for example their prices and stock levels?\"\n )\n ]\n)\n\nprint(response)\n" + code: "import cohere\n\nco = cohere.Client(\"<>\")\n\nresponse = co.chat(\n model=\"command-r-plus\",\n tools=[\n cohere.v2.Tool2(type='function', function={\n \"name\": 'query_daily_sales_report',\n \"description\": 'Connects to a database to retrieve overall sales volumes and sales information for a given day.',\n \"parameters\": {\n \"day\": {\n \"description\": 'Retrieves sales data for this day, formatted as YYYY-MM-DD.',\n \"type\": 'str',\n \"required\": True,\n },\n }\n }),\n cohere.v2.Tool2(type='function', function={\n \"name\": 'query_product_catalog',\n \"description\": 'Connects to a a product catalog with information about all the products being sold, including categories, prices, and stock levels.',\n \"parameters\": {\n \"category\": {\n \"description\": 'Retrieves product information data for all products in this category.',\n \"type\": 'str',\n \"required\": True,\n },\n }\n })\n ],\n messages=[\n {\n \"role\": \"user\",\n \"content\":\"Can you provide a sales summary for 29th September 2023, and also give me some details about the products in the 'Electronics' category, for example their prices and stock levels?\"\n }\n ]\n)\n\nprint(response)\n" + request: + model: command-r + messages: + - role: user + content: Tell me about LLMs + tools: + - type: function + function: + name: query_daily_sales_report + description: Connects to a database to retrieve overall sales volumes and sales information for a given day. + parameters: + type: object + properties: + day: + description: 'Retrieves sales data for this day, formatted as YYYY-MM-DD.' + type: str + required: + - day + - type: function + function: + name: query_product_catalog + description: 'Connects to a a product catalog with information about all the products being sold, including categories, prices, and stock levels.' + parameters: + type: object + properties: + category: + description: Retrieves product information data for all products in this category. + type: str + required: + - category + stream: false + response: + body: + id: 9e5f00aa-bf1e-481a-abe3-0eceac18c3ec + message: + role: assistant + tool_plan: 'I will first find the sales summary for 29th September 2023. Then, I wil' + find the details of the products in the 'Electronics' category." tool_calls: + - id: query_daily_sales_report_hgxxmkby3wta + type: function + function: + name: query_daily_sales_report + arguments: '{"day": "2023-09-29"}' + - id: query_product_catalog_rpg0z5h8yyz2 + type: function + function: + name: query_product_catalog + arguments: '{"category": "Electronics"}' + finish_reason: tool_call + usage: + billed_units: + input_tokens: 127 + output_tokens: 69 + tokens: + input_tokens: 1032 + output_tokens: 124 /v1/generate: post: summary: Generate @@ -7056,6 +7349,50 @@ components: - $ref: '#/components/schemas/ChatToolCallsChunkEvent' description: StreamedChatResponse is returned in streaming mode (specified with `stream=True` in the request). x-fern-type-name: StreamedChatResponse + TextContent: + required: + - type + - text + type: object + properties: + type: + enum: + - text + type: string + text: + type: string + description: Text content of the message. + x-fern-sdk-group-name: v2 + Content: + oneOf: + - $ref: '#/components/schemas/TextContent' + description: A Content block which contains information about the content type and the content itself. + x-fern-sdk-group-name: v2 + UserMessage: + required: + - role + - content + type: object + properties: + role: + enum: + - user + type: string + content: + oneOf: + - type: string + - type: array + items: + $ref: '#/components/schemas/Content' + description: "The content of the message. This can be a string or a list of content blocks.\nIf a string is provided, it will be treated as a text content block.\n" + documents: + minItems: 0 + type: array + items: + $ref: '#/components/schemas/ChatDocument' + description: Documents seen by the model when generating the reply. + description: A message from the user. + x-fern-sdk-group-name: v2 ToolCall-2: type: object properties: @@ -7074,20 +7411,6 @@ components: type: string description: A array of tool calls to be made. x-fern-sdk-group-name: v2 - TextContent: - required: - - type - - text - type: object - properties: - type: - enum: - - text - type: string - text: - type: string - description: Text content of the message. - x-fern-sdk-group-name: v2 ToolSource: type: object properties: @@ -7144,9 +7467,12 @@ components: tool_plan: type: string content: - type: array - items: - $ref: '#/components/schemas/TextContent' + oneOf: + - type: string + - type: array + items: + oneOf: + - $ref: '#/components/schemas/TextContent' citations: type: array items: @@ -7172,38 +7498,6 @@ components: - $ref: '#/components/schemas/TextContent' description: A message from the system. x-fern-sdk-group-name: v2 - Content: - oneOf: - - $ref: '#/components/schemas/TextContent' - description: A Content block which contains information about the content type and the content itself. - x-fern-sdk-group-name: v2 - UserMessage: - required: - - role - - content - type: object - properties: - role: - enum: - - user - type: string - content: - oneOf: - - type: string - - type: array - items: - $ref: '#/components/schemas/Content' - description: "The content of the message. This can be a string or a list of content blocks.\nIf a string is provided, it will be treated as a text content block.\n" - documents: - minItems: 0 - type: array - items: - $ref: '#/components/schemas/ChatDocument' - description: Documents seen by the model when generating the reply. - x-fern-audiences: - - public - description: A message from the user. - x-fern-sdk-group-name: v2 ToolContent: required: - type @@ -7240,17 +7534,24 @@ components: x-fern-sdk-group-name: v2 ChatMessage-2: oneOf: - - $ref: '#/components/schemas/SystemMessage' - $ref: '#/components/schemas/UserMessage' - $ref: '#/components/schemas/AssistantMessage' + - $ref: '#/components/schemas/SystemMessage' - $ref: '#/components/schemas/ToolMessage-2' description: Represents a single message in the chat history from a given role. + discriminator: + propertyName: role + mapping: + user: '#/components/schemas/UserMessage' + assistant: '#/components/schemas/AssistantMessage' + system: '#/components/schemas/SystemMessage' + tool: '#/components/schemas/ToolMessage-2' x-fern-sdk-group-name: v2 ChatMessages: type: array items: $ref: '#/components/schemas/ChatMessage-2' - description: A list of chat messages representing the list chat message turns. + description: "A list of chat messages in chronological order, representing a conversation between the user and the model.\n\nMessages can be from `User`, `Assistant`, `Tool` and `System` roles. Learn more about messages and roles in [the Chat API guide](https://docs.cohere.com/docs/chat-api).\n" x-fern-sdk-group-name: v2 Tool-2: type: object @@ -7273,6 +7574,28 @@ components: description: The parameters of the function as a JSON schema. description: The function to be executed. x-fern-sdk-group-name: v2 + JSONResponseFormat-2: + required: + - type + type: object + properties: + type: + $ref: '#/components/schemas/ResponseFormatType' + json_schema: + type: object + description: "[BETA] A JSON schema object that the output will adhere to. There are some restrictions we have on the schema, refer to [our guide](/docs/structured-outputs-json#schema-constraints) for more information.\nExample (required name and age object):\n```json\n{\n \"type\": \"object\",\n \"properties\": {\n \"name\": {\"type\": \"string\"},\n \"age\": {\"type\": \"integer\"}\n },\n \"required\": [\"name\", \"age\"]\n}\n```\n\n**Note**: This field must not be specified when the `type` is set to `\"text\"`.\n" + x-fern-audiences: + - public + ResponseFormat-2: + oneOf: + - $ref: '#/components/schemas/TextResponseFormat' + - $ref: '#/components/schemas/JSONResponseFormat-2' + description: "Configuration for forcing the model output to adhere to the specified format. Supported on [Command R](https://docs.cohere.com/docs/command-r), [Command R+](https://docs.cohere.com/docs/command-r-plus) and newer models.\n\nThe model can be forced into outputting JSON objects (with up to 5 levels of nesting) by setting `{ \"type\": \"json_object\" }`.\n\nA [JSON Schema](https://json-schema.org/) can optionally be provided, to ensure a specific structure.\n\n**Note**: When using `{ \"type\": \"json_object\" }` your `message` should always explicitly instruct the model to generate a JSON (eg: _\"Generate a JSON ...\"_) . Otherwise the model may end up getting stuck generating an infinite stream of characters and eventually run out of context length.\n**Limitation**: The parameter is not supported in RAG mode (when any of `connectors`, `documents`, `tools`, `tool_results` are provided).\n" + discriminator: + propertyName: type + mapping: + text: '#/components/schemas/TextResponseFormat' + json_object: '#/components/schemas/JSONResponseFormat-2' ChatFinishReason: enum: - complete @@ -7285,6 +7608,36 @@ components: type: string description: The reason a chat request has finished. x-fern-sdk-group-name: v2 + AssistantMessageResponse: + required: + - role + type: object + properties: + role: + enum: + - assistant + type: string + tool_calls: + type: array + items: + $ref: '#/components/schemas/ToolCall-2' + tool_plan: + type: string + content: + type: array + items: + oneOf: + - $ref: '#/components/schemas/TextContent' + discriminator: + propertyName: type + mapping: + text: '#/components/schemas/TextContent' + citations: + type: array + items: + $ref: '#/components/schemas/Citation' + description: A message from the assistant role can contain text and tool call information. + x-fern-sdk-group-name: v2 Usage: type: object properties: @@ -7325,7 +7678,7 @@ components: finish_reason: $ref: '#/components/schemas/ChatFinishReason' message: - $ref: '#/components/schemas/AssistantMessage' + $ref: '#/components/schemas/AssistantMessageResponse' usage: $ref: '#/components/schemas/Usage' x-fern-sdk-group-name: v2