14 references to MarkdownFormat
Aspire.Dashboard (9)
Components\Dialogs\TextVisualizerDialog.razor.cs (3)
27internal bool IsMarkdownFormat => TextVisualizerViewModel.FormatKind == DashboardUIHelpers.MarkdownFormat; 62new SelectViewModel<string> { Id = DashboardUIHelpers.MarkdownFormat, Name = Loc[nameof(Resources.Dialogs.TextVisualizerDialogMarkdownFormat)] }, 98EnabledOptions.Add(DashboardUIHelpers.MarkdownFormat);
Model\DashboardCommandExecutor.cs (1)
366CommandResultFormat.Markdown => DashboardUIHelpers.MarkdownFormat,
Model\GenAI\GenAIItemPartViewModel.cs (4)
70return new TextVisualizerViewModel(textPart.Content ?? string.Empty, indentText: true, fallbackFormat: DashboardUIHelpers.MarkdownFormat); 93return new TextVisualizerViewModel(toolResponseContent, indentText: true, fallbackFormat: DashboardUIHelpers.MarkdownFormat); 109return new TextVisualizerViewModel(reasoningPart.Content ?? string.Empty, indentText: true, fallbackFormat: DashboardUIHelpers.MarkdownFormat); 129return new TextVisualizerViewModel(responseContent, indentText: true, fallbackFormat: DashboardUIHelpers.MarkdownFormat);
Model\TextVisualizerViewModel.cs (1)
311else if (newFormat is DashboardUIHelpers.MarkdownFormat or DashboardUIHelpers.SqlFormat)
Aspire.Dashboard.Components.Tests (4)
Controls\TextVisualizerDialogTests.cs (4)
59content = content with { Text = "**Content**", FixedFormat = DashboardUIHelpers.MarkdownFormat }; 229Assert.Equal([DashboardUIHelpers.MarkdownFormat, DashboardUIHelpers.PlaintextFormat, DashboardUIHelpers.SqlFormat], instance.EnabledOptions.ToImmutableSortedSet()); 443var markdownOption = options.Single(o => o.Id == DashboardUIHelpers.MarkdownFormat); 484Assert.Equal(initialFormat is null, select.Instance.OptionDisabled!(options.Single(o => o.Id == DashboardUIHelpers.MarkdownFormat)));
Aspire.Dashboard.Tests (1)
Model\GenAIItemPartViewModelTests.cs (1)
28Assert.Equal(DashboardUIHelpers.MarkdownFormat, itemPart.TextVisualizerViewModel.FormatKind);