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 @@ -76,6 +76,7 @@ public class ChatCitationGenerationEventJsonConverter : global::System.Text.Json
{
try
{

var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Cohere.ChatStreamEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Cohere.ChatStreamEvent> ??
throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Cohere.ChatStreamEvent).Name}");
stream = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo);
Expand All @@ -86,9 +87,13 @@ public class ChatCitationGenerationEventJsonConverter : global::System.Text.Json
catch (global::System.InvalidOperationException)
{
}
}

if (stream == null && lg3v2o == null)
{
try
{

var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Cohere.ChatCitationGenerationEventLg3v2o), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Cohere.ChatCitationGenerationEventLg3v2o> ??
throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Cohere.ChatCitationGenerationEventLg3v2o).Name}");
lg3v2o = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,7 @@ public class ChatContentDeltaEventJsonConverter : global::System.Text.Json.Seria
{
try
{

var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Cohere.ChatStreamEventType), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Cohere.ChatStreamEventType> ??
throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Cohere.ChatStreamEventType).Name}");
streamType = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo);
Expand All @@ -99,9 +100,13 @@ public class ChatContentDeltaEventJsonConverter : global::System.Text.Json.Seria
catch (global::System.InvalidOperationException)
{
}
}

if (streamType == null && event3m0vqs == null)
{
try
{

var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Cohere.ChatContentDeltaEvent3m0vqs), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Cohere.ChatContentDeltaEvent3m0vqs> ??
throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Cohere.ChatContentDeltaEvent3m0vqs).Name}");
event3m0vqs = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ public class ChatContentEndEventJsonConverter : global::System.Text.Json.Seriali
{
try
{

var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Cohere.ChatStreamEventType), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Cohere.ChatStreamEventType> ??
throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Cohere.ChatStreamEventType).Name}");
streamType = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo);
Expand All @@ -86,9 +87,13 @@ public class ChatContentEndEventJsonConverter : global::System.Text.Json.Seriali
catch (global::System.InvalidOperationException)
{
}
}

if (streamType == null && ma278i == null)
{
try
{

var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Cohere.ChatContentEndEventMa278i), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Cohere.ChatContentEndEventMa278i> ??
throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Cohere.ChatContentEndEventMa278i).Name}");
ma278i = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@ public class ChatContentStartEventJsonConverter : global::System.Text.Json.Seria
{
try
{

var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Cohere.ChatStreamEventType), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Cohere.ChatStreamEventType> ??
throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Cohere.ChatStreamEventType).Name}");
streamType = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo);
Expand All @@ -95,9 +96,13 @@ public class ChatContentStartEventJsonConverter : global::System.Text.Json.Seria
catch (global::System.InvalidOperationException)
{
}
}

if (streamType == null && event6xvlq1 == null)
{
try
{

var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Cohere.ChatContentStartEvent6xvlq1), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Cohere.ChatContentStartEvent6xvlq1> ??
throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Cohere.ChatContentStartEvent6xvlq1).Name}");
event6xvlq1 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ public class ChatDebugEventJsonConverter : global::System.Text.Json.Serializatio
{
try
{

var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Cohere.ChatStreamEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Cohere.ChatStreamEvent> ??
throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Cohere.ChatStreamEvent).Name}");
stream = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo);
Expand All @@ -86,9 +87,13 @@ public class ChatDebugEventJsonConverter : global::System.Text.Json.Serializatio
catch (global::System.InvalidOperationException)
{
}
}

if (stream == null && event352j0t == null)
{
try
{

var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Cohere.ChatDebugEvent352j0t), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Cohere.ChatDebugEvent352j0t> ??
throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Cohere.ChatDebugEvent352j0t).Name}");
event352j0t = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,7 @@ public class ChatMessageEndEventJsonConverter : global::System.Text.Json.Seriali
{
try
{

var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Cohere.ChatStreamEventType), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Cohere.ChatStreamEventType> ??
throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Cohere.ChatStreamEventType).Name}");
streamType = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo);
Expand All @@ -97,9 +98,13 @@ public class ChatMessageEndEventJsonConverter : global::System.Text.Json.Seriali
catch (global::System.InvalidOperationException)
{
}
}

if (streamType == null && u3fzny == null)
{
try
{

var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Cohere.ChatMessageEndEventU3fzny), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Cohere.ChatMessageEndEventU3fzny> ??
throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Cohere.ChatMessageEndEventU3fzny).Name}");
u3fzny = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@ public class ChatMessageStartEventJsonConverter : global::System.Text.Json.Seria
{
try
{

var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Cohere.ChatStreamEventType), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Cohere.ChatStreamEventType> ??
throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Cohere.ChatStreamEventType).Name}");
streamType = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo);
Expand All @@ -95,9 +96,13 @@ public class ChatMessageStartEventJsonConverter : global::System.Text.Json.Seria
catch (global::System.InvalidOperationException)
{
}
}

if (streamType == null && lsegeq == null)
{
try
{

var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Cohere.ChatMessageStartEventLsegeq), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Cohere.ChatMessageStartEventLsegeq> ??
throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Cohere.ChatMessageStartEventLsegeq).Name}");
lsegeq = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ public class ChatSearchQueriesGenerationEventJsonConverter : global::System.Text
{
try
{

var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Cohere.ChatStreamEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Cohere.ChatStreamEvent> ??
throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Cohere.ChatStreamEvent).Name}");
stream = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo);
Expand All @@ -86,9 +87,13 @@ public class ChatSearchQueriesGenerationEventJsonConverter : global::System.Text
catch (global::System.InvalidOperationException)
{
}
}

if (stream == null && event6evypd == null)
{
try
{

var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Cohere.ChatSearchQueriesGenerationEvent6evypd), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Cohere.ChatSearchQueriesGenerationEvent6evypd> ??
throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Cohere.ChatSearchQueriesGenerationEvent6evypd).Name}");
event6evypd = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@ public class ChatSearchResultsEventJsonConverter : global::System.Text.Json.Seri
{
try
{

var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Cohere.ChatStreamEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Cohere.ChatStreamEvent> ??
throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Cohere.ChatStreamEvent).Name}");
stream = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo);
Expand All @@ -87,9 +88,13 @@ public class ChatSearchResultsEventJsonConverter : global::System.Text.Json.Seri
catch (global::System.InvalidOperationException)
{
}
}

if (stream == null && event44axt5 == null)
{
try
{

var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Cohere.ChatSearchResultsEvent44axt5), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Cohere.ChatSearchResultsEvent44axt5> ??
throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Cohere.ChatSearchResultsEvent44axt5).Name}");
event44axt5 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,7 @@ public class ChatStreamEndEventJsonConverter : global::System.Text.Json.Serializ
{
try
{

var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Cohere.ChatStreamEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Cohere.ChatStreamEvent> ??
throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Cohere.ChatStreamEvent).Name}");
chatStreamEvent = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo);
Expand All @@ -106,9 +107,13 @@ public class ChatStreamEndEventJsonConverter : global::System.Text.Json.Serializ
catch (global::System.InvalidOperationException)
{
}
}

if (chatStreamEvent == null && y8gq2x == null)
{
try
{

var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Cohere.ChatStreamEndEventY8gq2x), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Cohere.ChatStreamEndEventY8gq2x> ??
throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Cohere.ChatStreamEndEventY8gq2x).Name}");
y8gq2x = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ public class ChatStreamStartEventJsonConverter : global::System.Text.Json.Serial
{
try
{

var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Cohere.ChatStreamEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Cohere.ChatStreamEvent> ??
throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Cohere.ChatStreamEvent).Name}");
chatStreamEvent = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo);
Expand All @@ -86,9 +87,13 @@ public class ChatStreamStartEventJsonConverter : global::System.Text.Json.Serial
catch (global::System.InvalidOperationException)
{
}
}

if (chatStreamEvent == null && event5v9jyv == null)
{
try
{

var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Cohere.ChatStreamStartEvent5v9jyv), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Cohere.ChatStreamStartEvent5v9jyv> ??
throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Cohere.ChatStreamStartEvent5v9jyv).Name}");
event5v9jyv = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ public class ChatTextGenerationEventJsonConverter : global::System.Text.Json.Ser
{
try
{

var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Cohere.ChatStreamEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Cohere.ChatStreamEvent> ??
throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Cohere.ChatStreamEvent).Name}");
stream = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo);
Expand All @@ -86,9 +87,13 @@ public class ChatTextGenerationEventJsonConverter : global::System.Text.Json.Ser
catch (global::System.InvalidOperationException)
{
}
}

if (stream == null && event8yyj22 == null)
{
try
{

var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Cohere.ChatTextGenerationEvent8yyj22), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Cohere.ChatTextGenerationEvent8yyj22> ??
throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Cohere.ChatTextGenerationEvent8yyj22).Name}");
event8yyj22 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@ public class ChatToolCallDeltaEventJsonConverter : global::System.Text.Json.Seri
{
try
{

var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Cohere.ChatStreamEventType), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Cohere.ChatStreamEventType> ??
throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Cohere.ChatStreamEventType).Name}");
streamType = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo);
Expand All @@ -95,9 +96,13 @@ public class ChatToolCallDeltaEventJsonConverter : global::System.Text.Json.Seri
catch (global::System.InvalidOperationException)
{
}
}

if (streamType == null && event2bxzoc == null)
{
try
{

var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Cohere.ChatToolCallDeltaEvent2bxzoc), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Cohere.ChatToolCallDeltaEvent2bxzoc> ??
throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Cohere.ChatToolCallDeltaEvent2bxzoc).Name}");
event2bxzoc = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo);
Expand Down
Loading