1 instantiation of ChoiceEvent
Aspire.Dashboard (1)
GenAIEventsContext.ChoiceEvent.g.cs (1)
31ObjectCreator = () => new global::Aspire.Dashboard.Model.GenAI.ChoiceEvent(),
29 references to ChoiceEvent
Aspire.Dashboard (29)
GenAIEventsContext.ChoiceEvent.g.cs (26)
13private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Aspire.Dashboard.Model.GenAI.ChoiceEvent>? _ChoiceEvent; 19public global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Aspire.Dashboard.Model.GenAI.ChoiceEvent> ChoiceEvent 22get => _ChoiceEvent ??= (global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Aspire.Dashboard.Model.GenAI.ChoiceEvent>)Options.GetTypeInfo(typeof(global::Aspire.Dashboard.Model.GenAI.ChoiceEvent)); 25private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Aspire.Dashboard.Model.GenAI.ChoiceEvent> Create_ChoiceEvent(global::System.Text.Json.JsonSerializerOptions options) 27if (!TryGetTypeInfoForRuntimeCustomConverter<global::Aspire.Dashboard.Model.GenAI.ChoiceEvent>(options, out global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Aspire.Dashboard.Model.GenAI.ChoiceEvent> jsonTypeInfo)) 29var objectInfo = new global::System.Text.Json.Serialization.Metadata.JsonObjectInfoValues<global::Aspire.Dashboard.Model.GenAI.ChoiceEvent> 35ConstructorAttributeProviderFactory = static () => typeof(global::Aspire.Dashboard.Model.GenAI.ChoiceEvent).GetConstructor(InstanceMemberBindingFlags, binder: null, global::System.Array.Empty<global::System.Type>(), modifiers: null), 39jsonTypeInfo = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreateObjectInfo<global::Aspire.Dashboard.Model.GenAI.ChoiceEvent>(options, objectInfo); 56DeclaringType = typeof(global::Aspire.Dashboard.Model.GenAI.ChoiceEvent), 58Getter = static obj => ((global::Aspire.Dashboard.Model.GenAI.ChoiceEvent)obj).FinishReason, 59Setter = static (obj, value) => ((global::Aspire.Dashboard.Model.GenAI.ChoiceEvent)obj).FinishReason = value!, 66AttributeProviderFactory = static () => typeof(global::Aspire.Dashboard.Model.GenAI.ChoiceEvent).GetProperty("FinishReason", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null), 76DeclaringType = typeof(global::Aspire.Dashboard.Model.GenAI.ChoiceEvent), 78Getter = static obj => ((global::Aspire.Dashboard.Model.GenAI.ChoiceEvent)obj).Index, 79Setter = static (obj, value) => ((global::Aspire.Dashboard.Model.GenAI.ChoiceEvent)obj).Index = value!, 86AttributeProviderFactory = static () => typeof(global::Aspire.Dashboard.Model.GenAI.ChoiceEvent).GetProperty("Index", InstanceMemberBindingFlags, null, typeof(int), global::System.Array.Empty<global::System.Type>(), null), 96DeclaringType = typeof(global::Aspire.Dashboard.Model.GenAI.ChoiceEvent), 98Getter = static obj => ((global::Aspire.Dashboard.Model.GenAI.ChoiceEvent)obj).Message, 99Setter = static (obj, value) => ((global::Aspire.Dashboard.Model.GenAI.ChoiceEvent)obj).Message = value!, 106AttributeProviderFactory = static () => typeof(global::Aspire.Dashboard.Model.GenAI.ChoiceEvent).GetProperty("Message", InstanceMemberBindingFlags, null, typeof(global::Aspire.Dashboard.Model.GenAI.AssistantEvent), global::System.Array.Empty<global::System.Type>(), null), 116private void ChoiceEventSerializeHandler(global::System.Text.Json.Utf8JsonWriter writer, global::Aspire.Dashboard.Model.GenAI.ChoiceEvent? value) 126string __value_FinishReason = ((global::Aspire.Dashboard.Model.GenAI.ChoiceEvent)value).FinishReason; 131writer.WriteNumber(PropName_index, ((global::Aspire.Dashboard.Model.GenAI.ChoiceEvent)value).Index); 132global::Aspire.Dashboard.Model.GenAI.AssistantEvent __value_Message = ((global::Aspire.Dashboard.Model.GenAI.ChoiceEvent)value).Message;
GenAIEventsContext.GetJsonTypeInfo.g.cs (1)
26if (type == typeof(global::Aspire.Dashboard.Model.GenAI.ChoiceEvent))
Model\GenAI\GenAIEvents.cs (1)
51[JsonSerializable(typeof(ChoiceEvent))]
Model\GenAI\GenAIVisualizerDialogViewModel.cs (1)
460var choiceEvent = DeserializeEventJson(message, GenAIEventsContext.Default.ChoiceEvent)!;