11 writes to Type
Aspire.Dashboard (9)
Model\GenAI\GenAIMessages.cs (9)
38
Type
= TextType;
51
Type
= ToolCallType;
66
Type
= ToolCallResponseType;
80
Type
= BlobType;
95
Type
= FileType;
110
Type
= UriType;
125
Type
= ReasoningType;
138
Type
= ServerToolCallType;
153
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
);