Skip to content

Commit

Permalink
feat: Updated OpenAPI spec
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] committed Sep 6, 2024
1 parent d4f1020 commit 548df9f
Show file tree
Hide file tree
Showing 16 changed files with 29 additions and 28 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ namespace Cohere
public readonly partial struct ChatContentDeltaEvent : global::System.IEquatable<ChatContentDeltaEvent>
{
/// <summary>
///
/// The streamed event types
/// </summary>
#if NET6_0_OR_GREATER
public global::Cohere.ChatStreamEventType? Value1 { get; init; }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ namespace Cohere
public readonly partial struct ChatContentEndEvent : global::System.IEquatable<ChatContentEndEvent>
{
/// <summary>
///
/// The streamed event types
/// </summary>
#if NET6_0_OR_GREATER
public global::Cohere.ChatStreamEventType? Value1 { get; init; }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ namespace Cohere
public readonly partial struct ChatContentStartEvent : global::System.IEquatable<ChatContentStartEvent>
{
/// <summary>
///
/// The streamed event types
/// </summary>
#if NET6_0_OR_GREATER
public global::Cohere.ChatStreamEventType? Value1 { get; init; }
Expand Down
8 changes: 4 additions & 4 deletions src/libs/Cohere/Generated/Cohere.Models.ChatMessage2.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ namespace Cohere
public readonly partial struct ChatMessage2 : global::System.IEquatable<ChatMessage2>
{
/// <summary>
///
/// A message from the user.
/// </summary>
#if NET6_0_OR_GREATER
public global::Cohere.UserMessage? UserMessage { get; init; }
Expand Down Expand Up @@ -46,7 +46,7 @@ public ChatMessage2(global::Cohere.UserMessage? value)
}

/// <summary>
///
/// A message from the assistant role can contain text and tool call information.
/// </summary>
#if NET6_0_OR_GREATER
public global::Cohere.AssistantMessage? AssistantMessage { get; init; }
Expand Down Expand Up @@ -81,7 +81,7 @@ public ChatMessage2(global::Cohere.AssistantMessage? value)
}

/// <summary>
///
/// A message from the system.
/// </summary>
#if NET6_0_OR_GREATER
public global::Cohere.SystemMessage? SystemMessage { get; init; }
Expand Down Expand Up @@ -116,7 +116,7 @@ public ChatMessage2(global::Cohere.SystemMessage? value)
}

/// <summary>
///
/// A message from the system.
/// </summary>
#if NET6_0_OR_GREATER
public global::Cohere.ToolMessage2? Tool { get; init; }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ namespace Cohere
public readonly partial struct ChatMessageEndEvent : global::System.IEquatable<ChatMessageEndEvent>
{
/// <summary>
///
/// The streamed event types
/// </summary>
#if NET6_0_OR_GREATER
public global::Cohere.ChatStreamEventType? Value1 { get; init; }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ namespace Cohere
public readonly partial struct ChatMessageStartEvent : global::System.IEquatable<ChatMessageStartEvent>
{
/// <summary>
///
/// The streamed event types
/// </summary>
#if NET6_0_OR_GREATER
public global::Cohere.ChatStreamEventType? Value1 { get; init; }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ namespace Cohere
public readonly partial struct ChatToolCallDeltaEvent : global::System.IEquatable<ChatToolCallDeltaEvent>
{
/// <summary>
///
/// The streamed event types
/// </summary>
#if NET6_0_OR_GREATER
public global::Cohere.ChatStreamEventType? Value1 { get; init; }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ namespace Cohere
public readonly partial struct ChatToolCallEndEvent : global::System.IEquatable<ChatToolCallEndEvent>
{
/// <summary>
///
/// The streamed event types
/// </summary>
#if NET6_0_OR_GREATER
public global::Cohere.ChatStreamEventType? Value1 { get; init; }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ namespace Cohere
public readonly partial struct ChatToolCallStartEvent : global::System.IEquatable<ChatToolCallStartEvent>
{
/// <summary>
///
/// The streamed event types
/// </summary>
#if NET6_0_OR_GREATER
public global::Cohere.ChatStreamEventType? Value1 { get; init; }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ namespace Cohere
public readonly partial struct ChatToolPlanDeltaEvent : global::System.IEquatable<ChatToolPlanDeltaEvent>
{
/// <summary>
///
/// The streamed event types
/// </summary>
#if NET6_0_OR_GREATER
public global::Cohere.ChatStreamEventType? Value1 { get; init; }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ namespace Cohere
public readonly partial struct CitationEndEvent : global::System.IEquatable<CitationEndEvent>
{
/// <summary>
///
/// The streamed event types
/// </summary>
#if NET6_0_OR_GREATER
public global::Cohere.ChatStreamEventType? Value1 { get; init; }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ namespace Cohere
public readonly partial struct CitationStartEvent : global::System.IEquatable<CitationStartEvent>
{
/// <summary>
///
/// The streamed event types
/// </summary>
#if NET6_0_OR_GREATER
public global::Cohere.ChatStreamEventType? Value1 { get; init; }
Expand Down
2 changes: 1 addition & 1 deletion src/libs/Cohere/Generated/Cohere.Models.Content.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ namespace Cohere
public readonly partial struct Content : global::System.IEquatable<Content>
{
/// <summary>
///
/// Text content of the message.
/// </summary>
#if NET6_0_OR_GREATER
public global::Cohere.TextContent? Text { get; init; }
Expand Down
5 changes: 3 additions & 2 deletions src/libs/Cohere/Generated/Cohere.Models.Message.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@ namespace Cohere
public readonly partial struct Message : global::System.IEquatable<Message>
{
/// <summary>
///
/// 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.<br/>
/// 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.
/// </summary>
#if NET6_0_OR_GREATER
public global::Cohere.ChatMessage? Chat { get; init; }
Expand Down Expand Up @@ -46,7 +47,7 @@ public Message(global::Cohere.ChatMessage? value)
}

/// <summary>
///
/// Represents tool result in the chat history.
/// </summary>
#if NET6_0_OR_GREATER
public global::Cohere.ToolMessage? Tool { get; init; }
Expand Down
2 changes: 1 addition & 1 deletion src/libs/Cohere/Generated/Cohere.Models.Source.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ public Source(global::Cohere.ToolSource? value)
}

/// <summary>
///
/// A document source object containing the unique identifier of the document and the document itself.
/// </summary>
#if NET6_0_OR_GREATER
public global::Cohere.DocumentSource? Document { get; init; }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ namespace Cohere
public readonly partial struct StreamedChatResponse2 : global::System.IEquatable<StreamedChatResponse2>
{
/// <summary>
///
/// A streamed event which signifies that a stream has started.
/// </summary>
#if NET6_0_OR_GREATER
public global::Cohere.ChatMessageStartEvent? MessageStartEvent { get; init; }
Expand Down Expand Up @@ -46,7 +46,7 @@ public StreamedChatResponse2(global::Cohere.ChatMessageStartEvent? value)
}

/// <summary>
///
/// A streamed delta event which signifies that a new content block has started.
/// </summary>
#if NET6_0_OR_GREATER
public global::Cohere.ChatContentStartEvent? ContentStartEvent { get; init; }
Expand Down Expand Up @@ -81,7 +81,7 @@ public StreamedChatResponse2(global::Cohere.ChatContentStartEvent? value)
}

/// <summary>
///
/// A streamed delta event which contains a delta of chat text content.
/// </summary>
#if NET6_0_OR_GREATER
public global::Cohere.ChatContentDeltaEvent? ContentDeltaEvent { get; init; }
Expand Down Expand Up @@ -116,7 +116,7 @@ public StreamedChatResponse2(global::Cohere.ChatContentDeltaEvent? value)
}

/// <summary>
///
/// A streamed delta event which signifies that the content block has ended.
/// </summary>
#if NET6_0_OR_GREATER
public global::Cohere.ChatContentEndEvent? ContentEndEvent { get; init; }
Expand Down Expand Up @@ -151,7 +151,7 @@ public StreamedChatResponse2(global::Cohere.ChatContentEndEvent? value)
}

/// <summary>
///
/// A streamed event which contains a delta of tool plan text.
/// </summary>
#if NET6_0_OR_GREATER
public global::Cohere.ChatToolPlanDeltaEvent? ToolPlanDeltaEvent { get; init; }
Expand Down Expand Up @@ -186,7 +186,7 @@ public StreamedChatResponse2(global::Cohere.ChatToolPlanDeltaEvent? value)
}

/// <summary>
///
/// A streamed event delta which signifies a tool call has started streaming.
/// </summary>
#if NET6_0_OR_GREATER
public global::Cohere.ChatToolCallStartEvent? ToolCallStartEvent { get; init; }
Expand Down Expand Up @@ -221,7 +221,7 @@ public StreamedChatResponse2(global::Cohere.ChatToolCallStartEvent? value)
}

/// <summary>
///
/// A streamed event delta which signifies a delta in tool call arguments.
/// </summary>
#if NET6_0_OR_GREATER
public global::Cohere.ChatToolCallDeltaEvent? ToolCallDeltaEvent { get; init; }
Expand Down Expand Up @@ -256,7 +256,7 @@ public StreamedChatResponse2(global::Cohere.ChatToolCallDeltaEvent? value)
}

/// <summary>
///
/// A streamed event delta which signifies a tool call has finished streaming.
/// </summary>
#if NET6_0_OR_GREATER
public global::Cohere.ChatToolCallEndEvent? ToolCallEndEvent { get; init; }
Expand Down Expand Up @@ -291,7 +291,7 @@ public StreamedChatResponse2(global::Cohere.ChatToolCallEndEvent? value)
}

/// <summary>
///
/// A streamed event which signifies that the chat message has ended.
/// </summary>
#if NET6_0_OR_GREATER
public global::Cohere.ChatMessageEndEvent? MessageEndEvent { get; init; }
Expand Down

0 comments on commit 548df9f

Please sign in to comment.