48 references to AIAssistant
Aspire.Dashboard (45)
Components\Controls\AssistantChat.razor.cs (1)
34
public required IStringLocalizer<
AIAssistant
> Loc { get; init; }
Components\Controls\ExplainErrorsButton.razor.cs (1)
17
public required IStringLocalizer<
AIAssistant
> Loc { get; init; }
Components\Layout\MainLayout.razor.cs (1)
51
public required IStringLocalizer<Resources.
AIAssistant
> AIAssistantLoc { get; init; }
Components\Layout\MobileNavMenu.razor.cs (2)
26
public required IStringLocalizer<Resources.
AIAssistant
> AIAssistantLoc { get; init; }
95
AIAssistantLoc[nameof(Resources.
AIAssistant
.AIAssistantLaunchButtonText)],
Components\Pages\ConsoleLogs.razor.cs (1)
96
public required IStringLocalizer<Dashboard.Resources.
AIAssistant
> AIAssistantLoc { get; init; }
Components\Pages\Resources.razor.cs (1)
73
public required IStringLocalizer<Dashboard.Resources.
AIAssistant
> AIAssistantLoc { get; init; }
Model\Assistant\AssistantChatDataContext.cs (14)
22
private readonly IStringLocalizer<
AIAssistant
> _loc;
36
IStringLocalizer<
AIAssistant
> loc,
64
await InvokeToolCallbackAsync(nameof(GetResourceGraphAsync), _loc[nameof(
AIAssistant
.ToolNotificationResourceGraph)], cancellationToken).ConfigureAwait(false);
91
await InvokeToolCallbackAsync(nameof(GetTraceAsync), _loc.GetString(nameof(
AIAssistant
.ToolNotificationTraceFailure), OtlpHelpers.ToShortenedId(traceId)), cancellationToken).ConfigureAwait(false);
95
await InvokeToolCallbackAsync(nameof(GetTraceAsync), _loc.GetString(nameof(
AIAssistant
.ToolNotificationTrace), OtlpHelpers.ToShortenedId(traceId)), cancellationToken).ConfigureAwait(false);
115
await InvokeToolCallbackAsync(nameof(GetStructuredLogsAsync), _loc.GetString(nameof(
AIAssistant
.ToolNotificationStructuredLogsResourceFailure), resourceName), cancellationToken).ConfigureAwait(false);
120
? _loc.GetString(nameof(
AIAssistant
.ToolNotificationStructuredLogsResource), key.GetCompositeName())
121
: _loc[nameof(
AIAssistant
.ToolNotificationStructuredLogsAll)];
160
await InvokeToolCallbackAsync(nameof(GetTracesAsync), _loc.GetString(nameof(
AIAssistant
.ToolNotificationTracesResourceFailure), resourceName), cancellationToken).ConfigureAwait(false);
165
? _loc.GetString(nameof(
AIAssistant
.ToolNotificationTracesResource), key.GetCompositeName())
166
: _loc[nameof(
AIAssistant
.ToolNotificationTracesAll)];
215
await InvokeToolCallbackAsync(nameof(GetTraceStructuredLogsAsync), _loc.GetString(nameof(
AIAssistant
.ToolNotificationTraceStructuredLogs), OtlpHelpers.ToShortenedId(traceId)), cancellationToken).ConfigureAwait(false);
246
await InvokeToolCallbackAsync(nameof(GetConsoleLogsAsync), _loc.GetString(nameof(
AIAssistant
.ToolNotificationConsoleLogsFailure), resourceName), cancellationToken).ConfigureAwait(false);
250
await InvokeToolCallbackAsync(nameof(GetConsoleLogsAsync), _loc.GetString(nameof(
AIAssistant
.ToolNotificationConsoleLogs), resourceName), cancellationToken).ConfigureAwait(false);
Model\Assistant\AssistantChatViewModel.cs (11)
109
private readonly IStringLocalizer<
AIAssistant
> _loc;
130
IStringLocalizer<
AIAssistant
> loc,
516
_currentAssistantResponse.AppendMarkdown(_loc[nameof(
AIAssistant
.ChatThinkingText)], _markdownProcessor);
601
_currentAssistantResponse.ErrorMessage = _loc[nameof(
AIAssistant
.ChatRequestErrorCanceled)];
605
responseText.Append(_loc[nameof(
AIAssistant
.ChatRequestErrorCanceled)]);
631
_currentAssistantResponse.ErrorMessage = _loc[nameof(
AIAssistant
.ChatRequestErrorReachedLimit)];
642
errorMessage = _loc[nameof(
AIAssistant
.ChatRequestErrorUnknown)];
665
errorMessage = _loc[nameof(
AIAssistant
.ChatRequestErrorUnknown)];
668
errorMessage = _loc[nameof(
AIAssistant
.ChatRequestErrorForbidden)];
672
errorMessage = _loc.GetString(nameof(
AIAssistant
.ChatRequestErrorStatusCode), clientResultEx.Status);
681
_currentAssistantResponse.ErrorMessage = _loc[nameof(
AIAssistant
.ChatRequestErrorUnknown)];
Model\ResourceMenuBuilder.cs (3)
40
private readonly IStringLocalizer<Resources.
AIAssistant
> _aiAssistantLoc;
54
IStringLocalizer<Resources.
AIAssistant
> aiAssistantLoc,
153
Text = _aiAssistantLoc[nameof(
AIAssistant
.MenuTextAskGitHubCopilot)],
Model\SpanMenuBuilder.cs (3)
32
private readonly IStringLocalizer<
AIAssistant
> _aiAssistantLoc;
45
IStringLocalizer<
AIAssistant
> aiAssistantLoc,
131
Text = _aiAssistantLoc[nameof(
AIAssistant
.MenuTextAskGitHubCopilot)],
Model\StructuredLogMenuBuilder.cs (3)
30
private readonly IStringLocalizer<
AIAssistant
> _aiAssistantLoc;
41
IStringLocalizer<
AIAssistant
> aiAssistantLoc,
115
Text = _aiAssistantLoc[nameof(
AIAssistant
.MenuTextAskGitHubCopilot)],
Model\TraceMenuBuilder.cs (3)
30
private readonly IStringLocalizer<
AIAssistant
> _aiAssistantLoc;
43
IStringLocalizer<
AIAssistant
> aiAssistantLoc,
119
Text = _aiAssistantLoc[nameof(
AIAssistant
.MenuTextAskGitHubCopilot)],
Resources\AIAssistant.Designer.cs (1)
42
global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("Aspire.Dashboard.Resources.AIAssistant", typeof(
AIAssistant
).Assembly);
Aspire.Dashboard.Tests (3)
Markdown\MarkdownProcessorTests.cs (1)
374
new TestStringLocalizer<Dashboard.Resources.
AIAssistant
>(),
Model\AIAssistant\AssistantChatDataContextTests.cs (1)
144
new TestStringLocalizer<Dashboard.Resources.
AIAssistant
>(),
Model\ResourceMenuBuilderTests.cs (1)
45
new TestStringLocalizer<Resources.
AIAssistant
>(),