|
// <auto-generated/>
#nullable enable annotations
#nullable disable warnings
// Suppress warnings about [Obsolete] member usage in generated code.
#pragma warning disable CS0612, CS0618
namespace Aspire.Dashboard.Model.GenAI
{
public sealed partial class GenAIEventsContext : global::System.Text.Json.Serialization.Metadata.IJsonTypeInfoResolver
{
/// <inheritdoc/>
public override global::System.Text.Json.Serialization.Metadata.JsonTypeInfo? GetTypeInfo(global::System.Type type)
{
Options.TryGetTypeInfo(type, out global::System.Text.Json.Serialization.Metadata.JsonTypeInfo? typeInfo);
return typeInfo;
}
global::System.Text.Json.Serialization.Metadata.JsonTypeInfo? global::System.Text.Json.Serialization.Metadata.IJsonTypeInfoResolver.GetTypeInfo(global::System.Type type, global::System.Text.Json.JsonSerializerOptions options)
{
if (type == typeof(global::Aspire.Dashboard.Model.GenAI.AssistantEvent))
{
return Create_AssistantEvent(options);
}
if (type == typeof(global::Aspire.Dashboard.Model.GenAI.ChoiceEvent))
{
return Create_ChoiceEvent(options);
}
if (type == typeof(global::Aspire.Dashboard.Model.GenAI.SystemOrUserEvent))
{
return Create_SystemOrUserEvent(options);
}
if (type == typeof(global::Aspire.Dashboard.Model.GenAI.ToolCall))
{
return Create_ToolCall(options);
}
if (type == typeof(global::Aspire.Dashboard.Model.GenAI.ToolCall[]))
{
return Create_ToolCallArray(options);
}
if (type == typeof(global::Aspire.Dashboard.Model.GenAI.ToolCallFunction))
{
return Create_ToolCallFunction(options);
}
if (type == typeof(global::Aspire.Dashboard.Model.GenAI.ToolEvent))
{
return Create_ToolEvent(options);
}
if (type == typeof(global::System.Text.Json.Nodes.JsonNode))
{
return Create_JsonNode(options);
}
if (type == typeof(int))
{
return Create_Int32(options);
}
if (type == typeof(string))
{
return Create_String(options);
}
return null;
}
}
}
|