Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ namespace Cohere
/// <summary>
///
/// </summary>
public static implicit operator ChatCitationGenerationEvent(global::Cohere.ChatStreamEvent value) => new ChatCitationGenerationEvent(value);
public static implicit operator ChatCitationGenerationEvent(global::Cohere.ChatStreamEvent value) => new ChatCitationGenerationEvent((global::Cohere.ChatStreamEvent?)value);

/// <summary>
///
Expand Down Expand Up @@ -64,7 +64,7 @@ public ChatCitationGenerationEvent(global::Cohere.ChatStreamEvent? value)
/// <summary>
///
/// </summary>
public static implicit operator ChatCitationGenerationEvent(global::Cohere.ChatCitationGenerationEventVariant2 value) => new ChatCitationGenerationEvent(value);
public static implicit operator ChatCitationGenerationEvent(global::Cohere.ChatCitationGenerationEventVariant2 value) => new ChatCitationGenerationEvent((global::Cohere.ChatCitationGenerationEventVariant2?)value);

/// <summary>
///
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ namespace Cohere
/// <summary>
///
/// </summary>
public static implicit operator ChatContentDeltaEvent(global::Cohere.ChatStreamEventType value) => new ChatContentDeltaEvent(value);
public static implicit operator ChatContentDeltaEvent(global::Cohere.ChatStreamEventType value) => new ChatContentDeltaEvent((global::Cohere.ChatStreamEventType?)value);

/// <summary>
///
Expand Down Expand Up @@ -64,7 +64,7 @@ public ChatContentDeltaEvent(global::Cohere.ChatStreamEventType? value)
/// <summary>
///
/// </summary>
public static implicit operator ChatContentDeltaEvent(global::Cohere.ChatContentDeltaEventVariant2 value) => new ChatContentDeltaEvent(value);
public static implicit operator ChatContentDeltaEvent(global::Cohere.ChatContentDeltaEventVariant2 value) => new ChatContentDeltaEvent((global::Cohere.ChatContentDeltaEventVariant2?)value);

/// <summary>
///
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ namespace Cohere
/// <summary>
///
/// </summary>
public static implicit operator ChatContentEndEvent(global::Cohere.ChatStreamEventType value) => new ChatContentEndEvent(value);
public static implicit operator ChatContentEndEvent(global::Cohere.ChatStreamEventType value) => new ChatContentEndEvent((global::Cohere.ChatStreamEventType?)value);

/// <summary>
///
Expand Down Expand Up @@ -64,7 +64,7 @@ public ChatContentEndEvent(global::Cohere.ChatStreamEventType? value)
/// <summary>
///
/// </summary>
public static implicit operator ChatContentEndEvent(global::Cohere.ChatContentEndEventVariant2 value) => new ChatContentEndEvent(value);
public static implicit operator ChatContentEndEvent(global::Cohere.ChatContentEndEventVariant2 value) => new ChatContentEndEvent((global::Cohere.ChatContentEndEventVariant2?)value);

/// <summary>
///
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ namespace Cohere
/// <summary>
///
/// </summary>
public static implicit operator ChatContentStartEvent(global::Cohere.ChatStreamEventType value) => new ChatContentStartEvent(value);
public static implicit operator ChatContentStartEvent(global::Cohere.ChatStreamEventType value) => new ChatContentStartEvent((global::Cohere.ChatStreamEventType?)value);

/// <summary>
///
Expand Down Expand Up @@ -64,7 +64,7 @@ public ChatContentStartEvent(global::Cohere.ChatStreamEventType? value)
/// <summary>
///
/// </summary>
public static implicit operator ChatContentStartEvent(global::Cohere.ChatContentStartEventVariant2 value) => new ChatContentStartEvent(value);
public static implicit operator ChatContentStartEvent(global::Cohere.ChatContentStartEventVariant2 value) => new ChatContentStartEvent((global::Cohere.ChatContentStartEventVariant2?)value);

/// <summary>
///
Expand Down
4 changes: 2 additions & 2 deletions src/libs/Cohere/Generated/Cohere.Models.ChatDebugEvent.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ namespace Cohere
/// <summary>
///
/// </summary>
public static implicit operator ChatDebugEvent(global::Cohere.ChatStreamEvent value) => new ChatDebugEvent(value);
public static implicit operator ChatDebugEvent(global::Cohere.ChatStreamEvent value) => new ChatDebugEvent((global::Cohere.ChatStreamEvent?)value);

/// <summary>
///
Expand Down Expand Up @@ -64,7 +64,7 @@ public ChatDebugEvent(global::Cohere.ChatStreamEvent? value)
/// <summary>
///
/// </summary>
public static implicit operator ChatDebugEvent(global::Cohere.ChatDebugEventVariant2 value) => new ChatDebugEvent(value);
public static implicit operator ChatDebugEvent(global::Cohere.ChatDebugEventVariant2 value) => new ChatDebugEvent((global::Cohere.ChatDebugEventVariant2?)value);

/// <summary>
///
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ namespace Cohere
/// <summary>
///
/// </summary>
public static implicit operator ChatMessageEndEvent(global::Cohere.ChatStreamEventType value) => new ChatMessageEndEvent(value);
public static implicit operator ChatMessageEndEvent(global::Cohere.ChatStreamEventType value) => new ChatMessageEndEvent((global::Cohere.ChatStreamEventType?)value);

/// <summary>
///
Expand Down Expand Up @@ -64,7 +64,7 @@ public ChatMessageEndEvent(global::Cohere.ChatStreamEventType? value)
/// <summary>
///
/// </summary>
public static implicit operator ChatMessageEndEvent(global::Cohere.ChatMessageEndEventVariant2 value) => new ChatMessageEndEvent(value);
public static implicit operator ChatMessageEndEvent(global::Cohere.ChatMessageEndEventVariant2 value) => new ChatMessageEndEvent((global::Cohere.ChatMessageEndEventVariant2?)value);

/// <summary>
///
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ namespace Cohere
/// <summary>
///
/// </summary>
public static implicit operator ChatMessageStartEvent(global::Cohere.ChatStreamEventType value) => new ChatMessageStartEvent(value);
public static implicit operator ChatMessageStartEvent(global::Cohere.ChatStreamEventType value) => new ChatMessageStartEvent((global::Cohere.ChatStreamEventType?)value);

/// <summary>
///
Expand Down Expand Up @@ -64,7 +64,7 @@ public ChatMessageStartEvent(global::Cohere.ChatStreamEventType? value)
/// <summary>
///
/// </summary>
public static implicit operator ChatMessageStartEvent(global::Cohere.ChatMessageStartEventVariant2 value) => new ChatMessageStartEvent(value);
public static implicit operator ChatMessageStartEvent(global::Cohere.ChatMessageStartEventVariant2 value) => new ChatMessageStartEvent((global::Cohere.ChatMessageStartEventVariant2?)value);

/// <summary>
///
Expand Down
8 changes: 4 additions & 4 deletions src/libs/Cohere/Generated/Cohere.Models.ChatMessageV2.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ namespace Cohere
/// <summary>
///
/// </summary>
public static implicit operator ChatMessageV2(global::Cohere.UserMessage value) => new ChatMessageV2(value);
public static implicit operator ChatMessageV2(global::Cohere.UserMessage value) => new ChatMessageV2((global::Cohere.UserMessage?)value);

/// <summary>
///
Expand Down Expand Up @@ -69,7 +69,7 @@ public ChatMessageV2(global::Cohere.UserMessage? value)
/// <summary>
///
/// </summary>
public static implicit operator ChatMessageV2(global::Cohere.AssistantMessage value) => new ChatMessageV2(value);
public static implicit operator ChatMessageV2(global::Cohere.AssistantMessage value) => new ChatMessageV2((global::Cohere.AssistantMessage?)value);

/// <summary>
///
Expand Down Expand Up @@ -104,7 +104,7 @@ public ChatMessageV2(global::Cohere.AssistantMessage? value)
/// <summary>
///
/// </summary>
public static implicit operator ChatMessageV2(global::Cohere.SystemMessage value) => new ChatMessageV2(value);
public static implicit operator ChatMessageV2(global::Cohere.SystemMessage value) => new ChatMessageV2((global::Cohere.SystemMessage?)value);

/// <summary>
///
Expand Down Expand Up @@ -139,7 +139,7 @@ public ChatMessageV2(global::Cohere.SystemMessage? value)
/// <summary>
///
/// </summary>
public static implicit operator ChatMessageV2(global::Cohere.ToolMessageV2 value) => new ChatMessageV2(value);
public static implicit operator ChatMessageV2(global::Cohere.ToolMessageV2 value) => new ChatMessageV2((global::Cohere.ToolMessageV2?)value);

/// <summary>
///
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ namespace Cohere
/// <summary>
///
/// </summary>
public static implicit operator ChatSearchQueriesGenerationEvent(global::Cohere.ChatStreamEvent value) => new ChatSearchQueriesGenerationEvent(value);
public static implicit operator ChatSearchQueriesGenerationEvent(global::Cohere.ChatStreamEvent value) => new ChatSearchQueriesGenerationEvent((global::Cohere.ChatStreamEvent?)value);

/// <summary>
///
Expand Down Expand Up @@ -64,7 +64,7 @@ public ChatSearchQueriesGenerationEvent(global::Cohere.ChatStreamEvent? value)
/// <summary>
///
/// </summary>
public static implicit operator ChatSearchQueriesGenerationEvent(global::Cohere.ChatSearchQueriesGenerationEventVariant2 value) => new ChatSearchQueriesGenerationEvent(value);
public static implicit operator ChatSearchQueriesGenerationEvent(global::Cohere.ChatSearchQueriesGenerationEventVariant2 value) => new ChatSearchQueriesGenerationEvent((global::Cohere.ChatSearchQueriesGenerationEventVariant2?)value);

/// <summary>
///
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ namespace Cohere
/// <summary>
///
/// </summary>
public static implicit operator ChatSearchResultsEvent(global::Cohere.ChatStreamEvent value) => new ChatSearchResultsEvent(value);
public static implicit operator ChatSearchResultsEvent(global::Cohere.ChatStreamEvent value) => new ChatSearchResultsEvent((global::Cohere.ChatStreamEvent?)value);

/// <summary>
///
Expand Down Expand Up @@ -64,7 +64,7 @@ public ChatSearchResultsEvent(global::Cohere.ChatStreamEvent? value)
/// <summary>
///
/// </summary>
public static implicit operator ChatSearchResultsEvent(global::Cohere.ChatSearchResultsEventVariant2 value) => new ChatSearchResultsEvent(value);
public static implicit operator ChatSearchResultsEvent(global::Cohere.ChatSearchResultsEventVariant2 value) => new ChatSearchResultsEvent((global::Cohere.ChatSearchResultsEventVariant2?)value);

/// <summary>
///
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ namespace Cohere
/// <summary>
///
/// </summary>
public static implicit operator ChatStreamEndEvent(global::Cohere.ChatStreamEvent value) => new ChatStreamEndEvent(value);
public static implicit operator ChatStreamEndEvent(global::Cohere.ChatStreamEvent value) => new ChatStreamEndEvent((global::Cohere.ChatStreamEvent?)value);

/// <summary>
///
Expand Down Expand Up @@ -64,7 +64,7 @@ public ChatStreamEndEvent(global::Cohere.ChatStreamEvent? value)
/// <summary>
///
/// </summary>
public static implicit operator ChatStreamEndEvent(global::Cohere.ChatStreamEndEventVariant2 value) => new ChatStreamEndEvent(value);
public static implicit operator ChatStreamEndEvent(global::Cohere.ChatStreamEndEventVariant2 value) => new ChatStreamEndEvent((global::Cohere.ChatStreamEndEventVariant2?)value);

/// <summary>
///
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ namespace Cohere
/// <summary>
///
/// </summary>
public static implicit operator ChatStreamStartEvent(global::Cohere.ChatStreamEvent value) => new ChatStreamStartEvent(value);
public static implicit operator ChatStreamStartEvent(global::Cohere.ChatStreamEvent value) => new ChatStreamStartEvent((global::Cohere.ChatStreamEvent?)value);

/// <summary>
///
Expand Down Expand Up @@ -64,7 +64,7 @@ public ChatStreamStartEvent(global::Cohere.ChatStreamEvent? value)
/// <summary>
///
/// </summary>
public static implicit operator ChatStreamStartEvent(global::Cohere.ChatStreamStartEventVariant2 value) => new ChatStreamStartEvent(value);
public static implicit operator ChatStreamStartEvent(global::Cohere.ChatStreamStartEventVariant2 value) => new ChatStreamStartEvent((global::Cohere.ChatStreamStartEventVariant2?)value);

/// <summary>
///
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ namespace Cohere
/// <summary>
///
/// </summary>
public static implicit operator ChatTextGenerationEvent(global::Cohere.ChatStreamEvent value) => new ChatTextGenerationEvent(value);
public static implicit operator ChatTextGenerationEvent(global::Cohere.ChatStreamEvent value) => new ChatTextGenerationEvent((global::Cohere.ChatStreamEvent?)value);

/// <summary>
///
Expand Down Expand Up @@ -64,7 +64,7 @@ public ChatTextGenerationEvent(global::Cohere.ChatStreamEvent? value)
/// <summary>
///
/// </summary>
public static implicit operator ChatTextGenerationEvent(global::Cohere.ChatTextGenerationEventVariant2 value) => new ChatTextGenerationEvent(value);
public static implicit operator ChatTextGenerationEvent(global::Cohere.ChatTextGenerationEventVariant2 value) => new ChatTextGenerationEvent((global::Cohere.ChatTextGenerationEventVariant2?)value);

/// <summary>
///
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ namespace Cohere
/// <summary>
///
/// </summary>
public static implicit operator ChatToolCallDeltaEvent(global::Cohere.ChatStreamEventType value) => new ChatToolCallDeltaEvent(value);
public static implicit operator ChatToolCallDeltaEvent(global::Cohere.ChatStreamEventType value) => new ChatToolCallDeltaEvent((global::Cohere.ChatStreamEventType?)value);

/// <summary>
///
Expand Down Expand Up @@ -64,7 +64,7 @@ public ChatToolCallDeltaEvent(global::Cohere.ChatStreamEventType? value)
/// <summary>
///
/// </summary>
public static implicit operator ChatToolCallDeltaEvent(global::Cohere.ChatToolCallDeltaEventVariant2 value) => new ChatToolCallDeltaEvent(value);
public static implicit operator ChatToolCallDeltaEvent(global::Cohere.ChatToolCallDeltaEventVariant2 value) => new ChatToolCallDeltaEvent((global::Cohere.ChatToolCallDeltaEventVariant2?)value);

/// <summary>
///
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ namespace Cohere
/// <summary>
///
/// </summary>
public static implicit operator ChatToolCallEndEvent(global::Cohere.ChatStreamEventType value) => new ChatToolCallEndEvent(value);
public static implicit operator ChatToolCallEndEvent(global::Cohere.ChatStreamEventType value) => new ChatToolCallEndEvent((global::Cohere.ChatStreamEventType?)value);

/// <summary>
///
Expand Down Expand Up @@ -64,7 +64,7 @@ public ChatToolCallEndEvent(global::Cohere.ChatStreamEventType? value)
/// <summary>
///
/// </summary>
public static implicit operator ChatToolCallEndEvent(global::Cohere.ChatToolCallEndEventVariant2 value) => new ChatToolCallEndEvent(value);
public static implicit operator ChatToolCallEndEvent(global::Cohere.ChatToolCallEndEventVariant2 value) => new ChatToolCallEndEvent((global::Cohere.ChatToolCallEndEventVariant2?)value);

/// <summary>
///
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ namespace Cohere
/// <summary>
///
/// </summary>
public static implicit operator ChatToolCallStartEvent(global::Cohere.ChatStreamEventType value) => new ChatToolCallStartEvent(value);
public static implicit operator ChatToolCallStartEvent(global::Cohere.ChatStreamEventType value) => new ChatToolCallStartEvent((global::Cohere.ChatStreamEventType?)value);

/// <summary>
///
Expand Down Expand Up @@ -64,7 +64,7 @@ public ChatToolCallStartEvent(global::Cohere.ChatStreamEventType? value)
/// <summary>
///
/// </summary>
public static implicit operator ChatToolCallStartEvent(global::Cohere.ChatToolCallStartEventVariant2 value) => new ChatToolCallStartEvent(value);
public static implicit operator ChatToolCallStartEvent(global::Cohere.ChatToolCallStartEventVariant2 value) => new ChatToolCallStartEvent((global::Cohere.ChatToolCallStartEventVariant2?)value);

/// <summary>
///
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ namespace Cohere
/// <summary>
///
/// </summary>
public static implicit operator ChatToolCallsChunkEvent(global::Cohere.ChatStreamEvent value) => new ChatToolCallsChunkEvent(value);
public static implicit operator ChatToolCallsChunkEvent(global::Cohere.ChatStreamEvent value) => new ChatToolCallsChunkEvent((global::Cohere.ChatStreamEvent?)value);

/// <summary>
///
Expand Down Expand Up @@ -64,7 +64,7 @@ public ChatToolCallsChunkEvent(global::Cohere.ChatStreamEvent? value)
/// <summary>
///
/// </summary>
public static implicit operator ChatToolCallsChunkEvent(global::Cohere.ChatToolCallsChunkEventVariant2 value) => new ChatToolCallsChunkEvent(value);
public static implicit operator ChatToolCallsChunkEvent(global::Cohere.ChatToolCallsChunkEventVariant2 value) => new ChatToolCallsChunkEvent((global::Cohere.ChatToolCallsChunkEventVariant2?)value);

/// <summary>
///
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ namespace Cohere
/// <summary>
///
/// </summary>
public static implicit operator ChatToolCallsGenerationEvent(global::Cohere.ChatStreamEvent value) => new ChatToolCallsGenerationEvent(value);
public static implicit operator ChatToolCallsGenerationEvent(global::Cohere.ChatStreamEvent value) => new ChatToolCallsGenerationEvent((global::Cohere.ChatStreamEvent?)value);

/// <summary>
///
Expand Down Expand Up @@ -64,7 +64,7 @@ public ChatToolCallsGenerationEvent(global::Cohere.ChatStreamEvent? value)
/// <summary>
///
/// </summary>
public static implicit operator ChatToolCallsGenerationEvent(global::Cohere.ChatToolCallsGenerationEventVariant2 value) => new ChatToolCallsGenerationEvent(value);
public static implicit operator ChatToolCallsGenerationEvent(global::Cohere.ChatToolCallsGenerationEventVariant2 value) => new ChatToolCallsGenerationEvent((global::Cohere.ChatToolCallsGenerationEventVariant2?)value);

/// <summary>
///
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ namespace Cohere
/// <summary>
///
/// </summary>
public static implicit operator ChatToolPlanDeltaEvent(global::Cohere.ChatStreamEventType value) => new ChatToolPlanDeltaEvent(value);
public static implicit operator ChatToolPlanDeltaEvent(global::Cohere.ChatStreamEventType value) => new ChatToolPlanDeltaEvent((global::Cohere.ChatStreamEventType?)value);

/// <summary>
///
Expand Down Expand Up @@ -64,7 +64,7 @@ public ChatToolPlanDeltaEvent(global::Cohere.ChatStreamEventType? value)
/// <summary>
///
/// </summary>
public static implicit operator ChatToolPlanDeltaEvent(global::Cohere.ChatToolPlanDeltaEventVariant2 value) => new ChatToolPlanDeltaEvent(value);
public static implicit operator ChatToolPlanDeltaEvent(global::Cohere.ChatToolPlanDeltaEventVariant2 value) => new ChatToolPlanDeltaEvent((global::Cohere.ChatToolPlanDeltaEventVariant2?)value);

/// <summary>
///
Expand Down
Loading
Loading