11 writes to Type
Aspire.Dashboard (9)
Model\GenAI\GenAIMessages.cs (9)
37
Type
= TextType;
50
Type
= ToolCallType;
65
Type
= ToolCallResponseType;
79
Type
= BlobType;
94
Type
= FileType;
109
Type
= UriType;
124
Type
= ReasoningType;
137
Type
= ServerToolCallType;
152
Type
= ServerToolCallResponseType;
Aspire.Dashboard.Tests (2)
Model\GenAIItemPartViewModelTests.cs (2)
156
Type
= "custom",
176
Type
= "text",
13 references to Type
Aspire.Dashboard (3)
Model\GenAI\GenAIItemViewModel.cs (3)
40
if (ItemParts.Any(p => p.MessagePart?.
Type
is MessagePart.ToolCallType or MessagePart.ServerToolCallType))
49
if (ItemParts.Any(p => p.MessagePart?.
Type
is MessagePart.ToolCallType or MessagePart.ServerToolCallType))
53
if (ItemParts.Any(p => p.MessagePart?.
Type
is MessagePart.ToolCallResponseType or MessagePart.ServerToolCallResponseType))
Aspire.Dashboard.Tests (10)
Model\GenAIMessageParsingHelperTests.cs (10)
134
Assert.Equal("tool_call", toolCallPart.
Type
);
184
Assert.Equal("blob", blobPart.
Type
);
199
Assert.Equal("file", filePart.
Type
);
214
Assert.Equal("uri", uriPart.
Type
);
229
Assert.Equal("reasoning", reasoningPart.
Type
);
242
Assert.Equal("server_tool_call", serverToolCallPart.
Type
);
258
Assert.Equal("server_tool_call_response", serverToolCallResponsePart.
Type
);
275
Assert.Equal("custom_widget", richGeneric.
Type
);
282
Assert.Equal("unknown", bareGeneric.
Type
);
352
Assert.Equal("text", errorPart.
Type
);