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

var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vectara.AgentEventBase), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Vectara.AgentEventBase> ??
throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vectara.AgentEventBase).Name}");
@base = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo);
Expand All @@ -89,9 +90,13 @@ public class AgentOutputEventJsonConverter : global::System.Text.Json.Serializat
catch (global::System.InvalidOperationException)
{
}
}

if (@base == null && agentOutputEventVariant2 == null)
{
try
{

var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vectara.AgentOutputEventVariant2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Vectara.AgentOutputEventVariant2> ??
throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vectara.AgentOutputEventVariant2).Name}");
agentOutputEventVariant2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo);
Expand Down
3 changes: 3 additions & 0 deletions src/libs/Vectara/Generated/Vectara.JsonConverters.AllOf2.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,10 @@ public class AllOfJsonConverter<T1, T2> : global::System.Text.Json.Serialization
catch (global::System.InvalidOperationException)
{
}
}

if (value1 == null && value2 == null)
{
try
{

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,7 @@ public class ArtifactCreateToolJsonConverter : global::System.Text.Json.Serializ
{
try
{

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

if (@base == null && artifactCreateToolVariant2 == null)
{
try
{

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

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

if (@base == null && artifactGrepToolVariant2 == null)
{
try
{

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

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

if (@base == null && artifactReadToolVariant2 == null)
{
try
{

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

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

if (agentBase == null && artifactUploadEventVariant2 == null)
{
try
{

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

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

if (agentBase == null && chatTraceSpanVariant2 == null)
{
try
{

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

var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vectara.AgentEventBase), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Vectara.AgentEventBase> ??
throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vectara.AgentEventBase).Name}");
agentBase = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo);
Expand All @@ -92,9 +93,13 @@ public class CompactionEventJsonConverter : global::System.Text.Json.Serializati
catch (global::System.InvalidOperationException)
{
}
}

if (agentBase == null && compactionEventVariant2 == null)
{
try
{

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

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

if (agentBase == null && compactionStartedEventVariant2 == null)
{
try
{

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

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

if (agentBase == null && compactionTraceSpanVariant2 == null)
{
try
{

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

var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Vectara.AgentEventBase), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Vectara.AgentEventBase> ??
throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Vectara.AgentEventBase).Name}");
agentBase = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo);
Expand All @@ -91,9 +92,13 @@ public class ContextLimitExceededEventJsonConverter : global::System.Text.Json.S
catch (global::System.InvalidOperationException)
{
}
}

if (agentBase == null && contextLimitExceededEventVariant2 == null)
{
try
{

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

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

if (@base == null && corporaSearchToolVariant2 == null)
{
try
{

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

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

if (inputBase == null && createCompactRequestVariant2 == null)
{
try
{

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

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