From 548df9f054ce88829a05e36ff339b7bbae56f33a Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Fri, 6 Sep 2024 21:17:57 +0000 Subject: [PATCH] feat: Updated OpenAPI spec --- .../Cohere.Models.ChatContentDeltaEvent.g.cs | 2 +- .../Cohere.Models.ChatContentEndEvent.g.cs | 2 +- .../Cohere.Models.ChatContentStartEvent.g.cs | 2 +- .../Generated/Cohere.Models.ChatMessage2.g.cs | 8 ++++---- .../Cohere.Models.ChatMessageEndEvent.g.cs | 2 +- .../Cohere.Models.ChatMessageStartEvent.g.cs | 2 +- .../Cohere.Models.ChatToolCallDeltaEvent.g.cs | 2 +- .../Cohere.Models.ChatToolCallEndEvent.g.cs | 2 +- .../Cohere.Models.ChatToolCallStartEvent.g.cs | 2 +- .../Cohere.Models.ChatToolPlanDeltaEvent.g.cs | 2 +- .../Cohere.Models.CitationEndEvent.g.cs | 2 +- .../Cohere.Models.CitationStartEvent.g.cs | 2 +- .../Generated/Cohere.Models.Content.g.cs | 2 +- .../Generated/Cohere.Models.Message.g.cs | 5 +++-- .../Cohere/Generated/Cohere.Models.Source.g.cs | 2 +- .../Cohere.Models.StreamedChatResponse2.g.cs | 18 +++++++++--------- 16 files changed, 29 insertions(+), 28 deletions(-) diff --git a/src/libs/Cohere/Generated/Cohere.Models.ChatContentDeltaEvent.g.cs b/src/libs/Cohere/Generated/Cohere.Models.ChatContentDeltaEvent.g.cs index b578eac..455e39d 100644 --- a/src/libs/Cohere/Generated/Cohere.Models.ChatContentDeltaEvent.g.cs +++ b/src/libs/Cohere/Generated/Cohere.Models.ChatContentDeltaEvent.g.cs @@ -11,7 +11,7 @@ namespace Cohere public readonly partial struct ChatContentDeltaEvent : global::System.IEquatable { /// - /// + /// The streamed event types /// #if NET6_0_OR_GREATER public global::Cohere.ChatStreamEventType? Value1 { get; init; } diff --git a/src/libs/Cohere/Generated/Cohere.Models.ChatContentEndEvent.g.cs b/src/libs/Cohere/Generated/Cohere.Models.ChatContentEndEvent.g.cs index a3844e8..8334447 100644 --- a/src/libs/Cohere/Generated/Cohere.Models.ChatContentEndEvent.g.cs +++ b/src/libs/Cohere/Generated/Cohere.Models.ChatContentEndEvent.g.cs @@ -11,7 +11,7 @@ namespace Cohere public readonly partial struct ChatContentEndEvent : global::System.IEquatable { /// - /// + /// The streamed event types /// #if NET6_0_OR_GREATER public global::Cohere.ChatStreamEventType? Value1 { get; init; } diff --git a/src/libs/Cohere/Generated/Cohere.Models.ChatContentStartEvent.g.cs b/src/libs/Cohere/Generated/Cohere.Models.ChatContentStartEvent.g.cs index 975ffd4..e22a9d0 100644 --- a/src/libs/Cohere/Generated/Cohere.Models.ChatContentStartEvent.g.cs +++ b/src/libs/Cohere/Generated/Cohere.Models.ChatContentStartEvent.g.cs @@ -11,7 +11,7 @@ namespace Cohere public readonly partial struct ChatContentStartEvent : global::System.IEquatable { /// - /// + /// The streamed event types /// #if NET6_0_OR_GREATER public global::Cohere.ChatStreamEventType? Value1 { get; init; } diff --git a/src/libs/Cohere/Generated/Cohere.Models.ChatMessage2.g.cs b/src/libs/Cohere/Generated/Cohere.Models.ChatMessage2.g.cs index 9921403..be42e63 100644 --- a/src/libs/Cohere/Generated/Cohere.Models.ChatMessage2.g.cs +++ b/src/libs/Cohere/Generated/Cohere.Models.ChatMessage2.g.cs @@ -11,7 +11,7 @@ namespace Cohere public readonly partial struct ChatMessage2 : global::System.IEquatable { /// - /// + /// A message from the user. /// #if NET6_0_OR_GREATER public global::Cohere.UserMessage? UserMessage { get; init; } @@ -46,7 +46,7 @@ public ChatMessage2(global::Cohere.UserMessage? value) } /// - /// + /// A message from the assistant role can contain text and tool call information. /// #if NET6_0_OR_GREATER public global::Cohere.AssistantMessage? AssistantMessage { get; init; } @@ -81,7 +81,7 @@ public ChatMessage2(global::Cohere.AssistantMessage? value) } /// - /// + /// A message from the system. /// #if NET6_0_OR_GREATER public global::Cohere.SystemMessage? SystemMessage { get; init; } @@ -116,7 +116,7 @@ public ChatMessage2(global::Cohere.SystemMessage? value) } /// - /// + /// A message from the system. /// #if NET6_0_OR_GREATER public global::Cohere.ToolMessage2? Tool { get; init; } diff --git a/src/libs/Cohere/Generated/Cohere.Models.ChatMessageEndEvent.g.cs b/src/libs/Cohere/Generated/Cohere.Models.ChatMessageEndEvent.g.cs index de18d41..997747e 100644 --- a/src/libs/Cohere/Generated/Cohere.Models.ChatMessageEndEvent.g.cs +++ b/src/libs/Cohere/Generated/Cohere.Models.ChatMessageEndEvent.g.cs @@ -11,7 +11,7 @@ namespace Cohere public readonly partial struct ChatMessageEndEvent : global::System.IEquatable { /// - /// + /// The streamed event types /// #if NET6_0_OR_GREATER public global::Cohere.ChatStreamEventType? Value1 { get; init; } diff --git a/src/libs/Cohere/Generated/Cohere.Models.ChatMessageStartEvent.g.cs b/src/libs/Cohere/Generated/Cohere.Models.ChatMessageStartEvent.g.cs index 59d1713..6cda018 100644 --- a/src/libs/Cohere/Generated/Cohere.Models.ChatMessageStartEvent.g.cs +++ b/src/libs/Cohere/Generated/Cohere.Models.ChatMessageStartEvent.g.cs @@ -11,7 +11,7 @@ namespace Cohere public readonly partial struct ChatMessageStartEvent : global::System.IEquatable { /// - /// + /// The streamed event types /// #if NET6_0_OR_GREATER public global::Cohere.ChatStreamEventType? Value1 { get; init; } diff --git a/src/libs/Cohere/Generated/Cohere.Models.ChatToolCallDeltaEvent.g.cs b/src/libs/Cohere/Generated/Cohere.Models.ChatToolCallDeltaEvent.g.cs index 40d6bf6..5c2f8b9 100644 --- a/src/libs/Cohere/Generated/Cohere.Models.ChatToolCallDeltaEvent.g.cs +++ b/src/libs/Cohere/Generated/Cohere.Models.ChatToolCallDeltaEvent.g.cs @@ -11,7 +11,7 @@ namespace Cohere public readonly partial struct ChatToolCallDeltaEvent : global::System.IEquatable { /// - /// + /// The streamed event types /// #if NET6_0_OR_GREATER public global::Cohere.ChatStreamEventType? Value1 { get; init; } diff --git a/src/libs/Cohere/Generated/Cohere.Models.ChatToolCallEndEvent.g.cs b/src/libs/Cohere/Generated/Cohere.Models.ChatToolCallEndEvent.g.cs index 9e82a26..da81a88 100644 --- a/src/libs/Cohere/Generated/Cohere.Models.ChatToolCallEndEvent.g.cs +++ b/src/libs/Cohere/Generated/Cohere.Models.ChatToolCallEndEvent.g.cs @@ -11,7 +11,7 @@ namespace Cohere public readonly partial struct ChatToolCallEndEvent : global::System.IEquatable { /// - /// + /// The streamed event types /// #if NET6_0_OR_GREATER public global::Cohere.ChatStreamEventType? Value1 { get; init; } diff --git a/src/libs/Cohere/Generated/Cohere.Models.ChatToolCallStartEvent.g.cs b/src/libs/Cohere/Generated/Cohere.Models.ChatToolCallStartEvent.g.cs index 69a2c9a..8e5871a 100644 --- a/src/libs/Cohere/Generated/Cohere.Models.ChatToolCallStartEvent.g.cs +++ b/src/libs/Cohere/Generated/Cohere.Models.ChatToolCallStartEvent.g.cs @@ -11,7 +11,7 @@ namespace Cohere public readonly partial struct ChatToolCallStartEvent : global::System.IEquatable { /// - /// + /// The streamed event types /// #if NET6_0_OR_GREATER public global::Cohere.ChatStreamEventType? Value1 { get; init; } diff --git a/src/libs/Cohere/Generated/Cohere.Models.ChatToolPlanDeltaEvent.g.cs b/src/libs/Cohere/Generated/Cohere.Models.ChatToolPlanDeltaEvent.g.cs index b073ed0..a217c8a 100644 --- a/src/libs/Cohere/Generated/Cohere.Models.ChatToolPlanDeltaEvent.g.cs +++ b/src/libs/Cohere/Generated/Cohere.Models.ChatToolPlanDeltaEvent.g.cs @@ -11,7 +11,7 @@ namespace Cohere public readonly partial struct ChatToolPlanDeltaEvent : global::System.IEquatable { /// - /// + /// The streamed event types /// #if NET6_0_OR_GREATER public global::Cohere.ChatStreamEventType? Value1 { get; init; } diff --git a/src/libs/Cohere/Generated/Cohere.Models.CitationEndEvent.g.cs b/src/libs/Cohere/Generated/Cohere.Models.CitationEndEvent.g.cs index c2a39c9..d0dc5a9 100644 --- a/src/libs/Cohere/Generated/Cohere.Models.CitationEndEvent.g.cs +++ b/src/libs/Cohere/Generated/Cohere.Models.CitationEndEvent.g.cs @@ -11,7 +11,7 @@ namespace Cohere public readonly partial struct CitationEndEvent : global::System.IEquatable { /// - /// + /// The streamed event types /// #if NET6_0_OR_GREATER public global::Cohere.ChatStreamEventType? Value1 { get; init; } diff --git a/src/libs/Cohere/Generated/Cohere.Models.CitationStartEvent.g.cs b/src/libs/Cohere/Generated/Cohere.Models.CitationStartEvent.g.cs index c374945..ce787a5 100644 --- a/src/libs/Cohere/Generated/Cohere.Models.CitationStartEvent.g.cs +++ b/src/libs/Cohere/Generated/Cohere.Models.CitationStartEvent.g.cs @@ -11,7 +11,7 @@ namespace Cohere public readonly partial struct CitationStartEvent : global::System.IEquatable { /// - /// + /// The streamed event types /// #if NET6_0_OR_GREATER public global::Cohere.ChatStreamEventType? Value1 { get; init; } diff --git a/src/libs/Cohere/Generated/Cohere.Models.Content.g.cs b/src/libs/Cohere/Generated/Cohere.Models.Content.g.cs index 9cf3459..0a321e0 100644 --- a/src/libs/Cohere/Generated/Cohere.Models.Content.g.cs +++ b/src/libs/Cohere/Generated/Cohere.Models.Content.g.cs @@ -11,7 +11,7 @@ namespace Cohere public readonly partial struct Content : global::System.IEquatable { /// - /// + /// Text content of the message. /// #if NET6_0_OR_GREATER public global::Cohere.TextContent? Text { get; init; } diff --git a/src/libs/Cohere/Generated/Cohere.Models.Message.g.cs b/src/libs/Cohere/Generated/Cohere.Models.Message.g.cs index 0fe7669..6c22639 100644 --- a/src/libs/Cohere/Generated/Cohere.Models.Message.g.cs +++ b/src/libs/Cohere/Generated/Cohere.Models.Message.g.cs @@ -11,7 +11,8 @@ namespace Cohere public readonly partial struct Message : global::System.IEquatable { /// - /// + /// Represents a single message in the chat history, excluding the current user turn. It has two properties: `role` and `message`. The `role` identifies the sender (`CHATBOT`, `SYSTEM`, or `USER`), while the `message` contains the text content.
+ /// The chat_history parameter should not be used for `SYSTEM` messages in most cases. Instead, to add a `SYSTEM` role message at the beginning of a conversation, the `preamble` parameter should be used. ///
#if NET6_0_OR_GREATER public global::Cohere.ChatMessage? Chat { get; init; } @@ -46,7 +47,7 @@ public Message(global::Cohere.ChatMessage? value) } /// - /// + /// Represents tool result in the chat history. /// #if NET6_0_OR_GREATER public global::Cohere.ToolMessage? Tool { get; init; } diff --git a/src/libs/Cohere/Generated/Cohere.Models.Source.g.cs b/src/libs/Cohere/Generated/Cohere.Models.Source.g.cs index 5152f29..153f863 100644 --- a/src/libs/Cohere/Generated/Cohere.Models.Source.g.cs +++ b/src/libs/Cohere/Generated/Cohere.Models.Source.g.cs @@ -46,7 +46,7 @@ public Source(global::Cohere.ToolSource? value) } /// - /// + /// A document source object containing the unique identifier of the document and the document itself. /// #if NET6_0_OR_GREATER public global::Cohere.DocumentSource? Document { get; init; } diff --git a/src/libs/Cohere/Generated/Cohere.Models.StreamedChatResponse2.g.cs b/src/libs/Cohere/Generated/Cohere.Models.StreamedChatResponse2.g.cs index 807c14d..3e4bc0a 100644 --- a/src/libs/Cohere/Generated/Cohere.Models.StreamedChatResponse2.g.cs +++ b/src/libs/Cohere/Generated/Cohere.Models.StreamedChatResponse2.g.cs @@ -11,7 +11,7 @@ namespace Cohere public readonly partial struct StreamedChatResponse2 : global::System.IEquatable { /// - /// + /// A streamed event which signifies that a stream has started. /// #if NET6_0_OR_GREATER public global::Cohere.ChatMessageStartEvent? MessageStartEvent { get; init; } @@ -46,7 +46,7 @@ public StreamedChatResponse2(global::Cohere.ChatMessageStartEvent? value) } /// - /// + /// A streamed delta event which signifies that a new content block has started. /// #if NET6_0_OR_GREATER public global::Cohere.ChatContentStartEvent? ContentStartEvent { get; init; } @@ -81,7 +81,7 @@ public StreamedChatResponse2(global::Cohere.ChatContentStartEvent? value) } /// - /// + /// A streamed delta event which contains a delta of chat text content. /// #if NET6_0_OR_GREATER public global::Cohere.ChatContentDeltaEvent? ContentDeltaEvent { get; init; } @@ -116,7 +116,7 @@ public StreamedChatResponse2(global::Cohere.ChatContentDeltaEvent? value) } /// - /// + /// A streamed delta event which signifies that the content block has ended. /// #if NET6_0_OR_GREATER public global::Cohere.ChatContentEndEvent? ContentEndEvent { get; init; } @@ -151,7 +151,7 @@ public StreamedChatResponse2(global::Cohere.ChatContentEndEvent? value) } /// - /// + /// A streamed event which contains a delta of tool plan text. /// #if NET6_0_OR_GREATER public global::Cohere.ChatToolPlanDeltaEvent? ToolPlanDeltaEvent { get; init; } @@ -186,7 +186,7 @@ public StreamedChatResponse2(global::Cohere.ChatToolPlanDeltaEvent? value) } /// - /// + /// A streamed event delta which signifies a tool call has started streaming. /// #if NET6_0_OR_GREATER public global::Cohere.ChatToolCallStartEvent? ToolCallStartEvent { get; init; } @@ -221,7 +221,7 @@ public StreamedChatResponse2(global::Cohere.ChatToolCallStartEvent? value) } /// - /// + /// A streamed event delta which signifies a delta in tool call arguments. /// #if NET6_0_OR_GREATER public global::Cohere.ChatToolCallDeltaEvent? ToolCallDeltaEvent { get; init; } @@ -256,7 +256,7 @@ public StreamedChatResponse2(global::Cohere.ChatToolCallDeltaEvent? value) } /// - /// + /// A streamed event delta which signifies a tool call has finished streaming. /// #if NET6_0_OR_GREATER public global::Cohere.ChatToolCallEndEvent? ToolCallEndEvent { get; init; } @@ -291,7 +291,7 @@ public StreamedChatResponse2(global::Cohere.ChatToolCallEndEvent? value) } /// - /// + /// A streamed event which signifies that the chat message has ended. /// #if NET6_0_OR_GREATER public global::Cohere.ChatMessageEndEvent? MessageEndEvent { get; init; }