1 instantiation of ChoiceEvent
Aspire.Dashboard (1)
GenAIEventsContext.ChoiceEvent.g.cs (1)
29
ObjectCreator = () => new global::Aspire.Dashboard.Model.GenAI.
ChoiceEvent
(),
25 references to ChoiceEvent
Aspire.Dashboard (25)
GenAIEventsContext.ChoiceEvent.g.cs (22)
13
private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Aspire.Dashboard.Model.GenAI.
ChoiceEvent
>? _ChoiceEvent;
18
public global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Aspire.Dashboard.Model.GenAI.
ChoiceEvent
> ChoiceEvent
20
get => _ChoiceEvent ??= (global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Aspire.Dashboard.Model.GenAI.
ChoiceEvent
>)Options.GetTypeInfo(typeof(global::Aspire.Dashboard.Model.GenAI.
ChoiceEvent
));
23
private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Aspire.Dashboard.Model.GenAI.
ChoiceEvent
> Create_ChoiceEvent(global::System.Text.Json.JsonSerializerOptions options)
25
if (!TryGetTypeInfoForRuntimeCustomConverter<global::Aspire.Dashboard.Model.GenAI.
ChoiceEvent
>(options, out global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Aspire.Dashboard.Model.GenAI.
ChoiceEvent
> jsonTypeInfo))
27
var objectInfo = new global::System.Text.Json.Serialization.Metadata.JsonObjectInfoValues<global::Aspire.Dashboard.Model.GenAI.
ChoiceEvent
>
36
jsonTypeInfo = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreateObjectInfo<global::Aspire.Dashboard.Model.GenAI.
ChoiceEvent
>(options, objectInfo);
53
DeclaringType = typeof(global::Aspire.Dashboard.Model.GenAI.
ChoiceEvent
),
55
Getter = static obj => ((global::Aspire.Dashboard.Model.GenAI.
ChoiceEvent
)obj).FinishReason,
56
Setter = static (obj, value) => ((global::Aspire.Dashboard.Model.GenAI.
ChoiceEvent
)obj).FinishReason = value!,
72
DeclaringType = typeof(global::Aspire.Dashboard.Model.GenAI.
ChoiceEvent
),
74
Getter = static obj => ((global::Aspire.Dashboard.Model.GenAI.
ChoiceEvent
)obj).Index,
75
Setter = static (obj, value) => ((global::Aspire.Dashboard.Model.GenAI.
ChoiceEvent
)obj).Index = value!,
91
DeclaringType = typeof(global::Aspire.Dashboard.Model.GenAI.
ChoiceEvent
),
93
Getter = static obj => ((global::Aspire.Dashboard.Model.GenAI.
ChoiceEvent
)obj).Message,
94
Setter = static (obj, value) => ((global::Aspire.Dashboard.Model.GenAI.
ChoiceEvent
)obj).Message = value!,
110
private void ChoiceEventSerializeHandler(global::System.Text.Json.Utf8JsonWriter writer, global::Aspire.Dashboard.Model.GenAI.
ChoiceEvent
? value)
120
string __value_FinishReason = ((global::Aspire.Dashboard.Model.GenAI.
ChoiceEvent
)value).FinishReason;
125
writer.WriteNumber(PropName_index, ((global::Aspire.Dashboard.Model.GenAI.
ChoiceEvent
)value).Index);
126
global::Aspire.Dashboard.Model.GenAI.AssistantEvent __value_Message = ((global::Aspire.Dashboard.Model.GenAI.
ChoiceEvent
)value).Message;
GenAIEventsContext.GetJsonTypeInfo.g.cs (1)
26
if (type == typeof(global::Aspire.Dashboard.Model.GenAI.
ChoiceEvent
))
Model\GenAI\GenAIEvents.cs (1)
51
[JsonSerializable(typeof(
ChoiceEvent
))]
Model\GenAI\GenAIVisualizerDialogViewModel.cs (1)
291
var
choiceEvent = DeserializeEventJson(message, GenAIEventsContext.Default.ChoiceEvent)!;