16 instantiations of ChatMessage
Aspire.Dashboard (1)
GenAIMessagesContext.ChatMessage.g.cs (1)
29ObjectCreator = () => new global::Aspire.Dashboard.Model.GenAI.ChatMessage(),
Aspire.Dashboard.Components.Tests (4)
Controls\GenAIVisualizerDialogTests.cs (4)
69new ChatMessage 74new ChatMessage 79new ChatMessage 88new ChatMessage
Aspire.Dashboard.Tests (11)
Model\GenAIVisualizerDialogViewModelTests.cs (11)
322new ChatMessage 327new ChatMessage 332new ChatMessage 341new ChatMessage 445new ChatMessage 450new ChatMessage 455new ChatMessage 518new ChatMessage 523new ChatMessage 528new ChatMessage 537new ChatMessage
46 references to ChatMessage
Aspire.Dashboard (39)
GenAIMessagesContext.ChatMessage.g.cs (22)
13private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Aspire.Dashboard.Model.GenAI.ChatMessage>? _ChatMessage; 18public global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Aspire.Dashboard.Model.GenAI.ChatMessage> ChatMessage 20get => _ChatMessage ??= (global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Aspire.Dashboard.Model.GenAI.ChatMessage>)Options.GetTypeInfo(typeof(global::Aspire.Dashboard.Model.GenAI.ChatMessage)); 23private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Aspire.Dashboard.Model.GenAI.ChatMessage> Create_ChatMessage(global::System.Text.Json.JsonSerializerOptions options) 25if (!TryGetTypeInfoForRuntimeCustomConverter<global::Aspire.Dashboard.Model.GenAI.ChatMessage>(options, out global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Aspire.Dashboard.Model.GenAI.ChatMessage> jsonTypeInfo)) 27var objectInfo = new global::System.Text.Json.Serialization.Metadata.JsonObjectInfoValues<global::Aspire.Dashboard.Model.GenAI.ChatMessage> 36jsonTypeInfo = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreateObjectInfo<global::Aspire.Dashboard.Model.GenAI.ChatMessage>(options, objectInfo); 53DeclaringType = typeof(global::Aspire.Dashboard.Model.GenAI.ChatMessage), 55Getter = static obj => ((global::Aspire.Dashboard.Model.GenAI.ChatMessage)obj).Role, 56Setter = static (obj, value) => ((global::Aspire.Dashboard.Model.GenAI.ChatMessage)obj).Role = value!, 72DeclaringType = typeof(global::Aspire.Dashboard.Model.GenAI.ChatMessage), 74Getter = static obj => ((global::Aspire.Dashboard.Model.GenAI.ChatMessage)obj).Parts, 75Setter = static (obj, value) => ((global::Aspire.Dashboard.Model.GenAI.ChatMessage)obj).Parts = value!, 91DeclaringType = typeof(global::Aspire.Dashboard.Model.GenAI.ChatMessage), 93Getter = static obj => ((global::Aspire.Dashboard.Model.GenAI.ChatMessage)obj).FinishReason, 94Setter = static (obj, value) => ((global::Aspire.Dashboard.Model.GenAI.ChatMessage)obj).FinishReason = value!, 110private void ChatMessageSerializeHandler(global::System.Text.Json.Utf8JsonWriter writer, global::Aspire.Dashboard.Model.GenAI.ChatMessage? value) 120string __value_Role = ((global::Aspire.Dashboard.Model.GenAI.ChatMessage)value).Role; 125global::System.Collections.Generic.List<global::Aspire.Dashboard.Model.GenAI.MessagePart> __value_Parts = ((global::Aspire.Dashboard.Model.GenAI.ChatMessage)value).Parts; 131string __value_FinishReason = ((global::Aspire.Dashboard.Model.GenAI.ChatMessage)value).FinishReason;
GenAIMessagesContext.GetJsonTypeInfo.g.cs (2)
22if (type == typeof(global::Aspire.Dashboard.Model.GenAI.ChatMessage)) 50if (type == typeof(global::System.Collections.Generic.List<global::Aspire.Dashboard.Model.GenAI.ChatMessage>))
GenAIMessagesContext.ListChatMessage.g.cs (12)
13private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.List<global::Aspire.Dashboard.Model.GenAI.ChatMessage>>? _ListChatMessage; 18public global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.List<global::Aspire.Dashboard.Model.GenAI.ChatMessage>> ListChatMessage 20get => _ListChatMessage ??= (global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.List<global::Aspire.Dashboard.Model.GenAI.ChatMessage>>)Options.GetTypeInfo(typeof(global::System.Collections.Generic.List<global::Aspire.Dashboard.Model.GenAI.ChatMessage>)); 23private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.List<global::Aspire.Dashboard.Model.GenAI.ChatMessage>> Create_ListChatMessage(global::System.Text.Json.JsonSerializerOptions options) 25if (!TryGetTypeInfoForRuntimeCustomConverter<global::System.Collections.Generic.List<global::Aspire.Dashboard.Model.GenAI.ChatMessage>>(options, out global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.List<global::Aspire.Dashboard.Model.GenAI.ChatMessage>> jsonTypeInfo)) 27var info = new global::System.Text.Json.Serialization.Metadata.JsonCollectionInfoValues<global::System.Collections.Generic.List<global::Aspire.Dashboard.Model.GenAI.ChatMessage>> 29ObjectCreator = () => new global::System.Collections.Generic.List<global::Aspire.Dashboard.Model.GenAI.ChatMessage>(), 33jsonTypeInfo = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreateListInfo<global::System.Collections.Generic.List<global::Aspire.Dashboard.Model.GenAI.ChatMessage>, global::Aspire.Dashboard.Model.GenAI.ChatMessage>(options, info); 43private void ListChatMessageSerializeHandler(global::System.Text.Json.Utf8JsonWriter writer, global::System.Collections.Generic.List<global::Aspire.Dashboard.Model.GenAI.ChatMessage>? value)
Model\GenAI\GenAIMessages.cs (2)
121[JsonSerializable(typeof(ChatMessage))] 122[JsonSerializable(typeof(List<ChatMessage>))]
Model\GenAI\GenAIVisualizerDialogViewModel.cs (1)
240foreach (var msg in inputParts)
Aspire.Dashboard.Components.Tests (2)
Controls\GenAIVisualizerDialogTests.cs (2)
67var inputMessages = JsonSerializer.Serialize(new List<ChatMessage> 86var outputMessages = JsonSerializer.Serialize(new List<ChatMessage>
Aspire.Dashboard.Tests (5)
Model\GenAIVisualizerDialogViewModelTests.cs (5)
320var inputMessages = JsonSerializer.Serialize(new List<ChatMessage> 339var outputMessages = JsonSerializer.Serialize(new List<ChatMessage> 443var inputMessages = JsonSerializer.Serialize(new List<ChatMessage> 516var inputMessages = JsonSerializer.Serialize(new List<ChatMessage> 535var outputMessages = JsonSerializer.Serialize(new List<ChatMessage>