16 instantiations of ChatMessage
Aspire.Dashboard (1)
GenAIMessagesContext.ChatMessage.g.cs (1)
31ObjectCreator = () => new global::Aspire.Dashboard.Model.GenAI.ChatMessage(),
Aspire.Dashboard.Components.Tests (4)
Controls\GenAIVisualizerDialogTests.cs (4)
71new ChatMessage 76new ChatMessage 81new ChatMessage 90new ChatMessage
Aspire.Dashboard.Tests (11)
Model\GenAIVisualizerDialogViewModelTests.cs (11)
323new ChatMessage 328new ChatMessage 333new ChatMessage 342new ChatMessage 446new ChatMessage 451new ChatMessage 456new ChatMessage 519new ChatMessage 524new ChatMessage 529new ChatMessage 538new ChatMessage
50 references to ChatMessage
Aspire.Dashboard (43)
GenAIMessagesContext.ChatMessage.g.cs (26)
13private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Aspire.Dashboard.Model.GenAI.ChatMessage>? _ChatMessage; 19public global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Aspire.Dashboard.Model.GenAI.ChatMessage> ChatMessage 22get => _ChatMessage ??= (global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Aspire.Dashboard.Model.GenAI.ChatMessage>)Options.GetTypeInfo(typeof(global::Aspire.Dashboard.Model.GenAI.ChatMessage)); 25private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Aspire.Dashboard.Model.GenAI.ChatMessage> Create_ChatMessage(global::System.Text.Json.JsonSerializerOptions options) 27if (!TryGetTypeInfoForRuntimeCustomConverter<global::Aspire.Dashboard.Model.GenAI.ChatMessage>(options, out global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Aspire.Dashboard.Model.GenAI.ChatMessage> jsonTypeInfo)) 29var objectInfo = new global::System.Text.Json.Serialization.Metadata.JsonObjectInfoValues<global::Aspire.Dashboard.Model.GenAI.ChatMessage> 35ConstructorAttributeProviderFactory = static () => typeof(global::Aspire.Dashboard.Model.GenAI.ChatMessage).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.ChatMessage>(options, objectInfo); 56DeclaringType = typeof(global::Aspire.Dashboard.Model.GenAI.ChatMessage), 58Getter = static obj => ((global::Aspire.Dashboard.Model.GenAI.ChatMessage)obj).Role, 59Setter = static (obj, value) => ((global::Aspire.Dashboard.Model.GenAI.ChatMessage)obj).Role = value!, 66AttributeProviderFactory = static () => typeof(global::Aspire.Dashboard.Model.GenAI.ChatMessage).GetProperty("Role", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null), 78DeclaringType = typeof(global::Aspire.Dashboard.Model.GenAI.ChatMessage), 80Getter = static obj => ((global::Aspire.Dashboard.Model.GenAI.ChatMessage)obj).Parts, 81Setter = static (obj, value) => ((global::Aspire.Dashboard.Model.GenAI.ChatMessage)obj).Parts = value!, 88AttributeProviderFactory = static () => typeof(global::Aspire.Dashboard.Model.GenAI.ChatMessage).GetProperty("Parts", InstanceMemberBindingFlags, null, typeof(global::System.Collections.Generic.List<global::Aspire.Dashboard.Model.GenAI.MessagePart>), global::System.Array.Empty<global::System.Type>(), null), 100DeclaringType = typeof(global::Aspire.Dashboard.Model.GenAI.ChatMessage), 102Getter = static obj => ((global::Aspire.Dashboard.Model.GenAI.ChatMessage)obj).FinishReason, 103Setter = static (obj, value) => ((global::Aspire.Dashboard.Model.GenAI.ChatMessage)obj).FinishReason = value!, 110AttributeProviderFactory = static () => typeof(global::Aspire.Dashboard.Model.GenAI.ChatMessage).GetProperty("FinishReason", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null), 120private void ChatMessageSerializeHandler(global::System.Text.Json.Utf8JsonWriter writer, global::Aspire.Dashboard.Model.GenAI.ChatMessage? value) 130string __value_Role = ((global::Aspire.Dashboard.Model.GenAI.ChatMessage)value).Role; 135global::System.Collections.Generic.List<global::Aspire.Dashboard.Model.GenAI.MessagePart> __value_Parts = ((global::Aspire.Dashboard.Model.GenAI.ChatMessage)value).Parts; 141string __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; 19public global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.List<global::Aspire.Dashboard.Model.GenAI.ChatMessage>> ListChatMessage 22get => _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>)); 25private 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) 27if (!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)) 29var info = new global::System.Text.Json.Serialization.Metadata.JsonCollectionInfoValues<global::System.Collections.Generic.List<global::Aspire.Dashboard.Model.GenAI.ChatMessage>> 31ObjectCreator = () => new global::System.Collections.Generic.List<global::Aspire.Dashboard.Model.GenAI.ChatMessage>(), 35jsonTypeInfo = 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); 45private 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)
135[JsonSerializable(typeof(ChatMessage))] 136[JsonSerializable(typeof(List<ChatMessage>))]
Model\GenAI\GenAIVisualizerDialogViewModel.cs (1)
307foreach (var msg in inputParts)
Aspire.Dashboard.Components.Tests (2)
Controls\GenAIVisualizerDialogTests.cs (2)
69var inputMessages = JsonSerializer.Serialize(new List<ChatMessage> 88var outputMessages = JsonSerializer.Serialize(new List<ChatMessage>
Aspire.Dashboard.Tests (5)
Model\GenAIVisualizerDialogViewModelTests.cs (5)
321var inputMessages = JsonSerializer.Serialize(new List<ChatMessage> 340var outputMessages = JsonSerializer.Serialize(new List<ChatMessage> 444var inputMessages = JsonSerializer.Serialize(new List<ChatMessage> 517var inputMessages = JsonSerializer.Serialize(new List<ChatMessage> 536var outputMessages = JsonSerializer.Serialize(new List<ChatMessage>