3 instantiations of AIContext
Aspire.Dashboard (1)
Model\Assistant\AIContextProvider.cs (1)
64
context = new
AIContext
(this, () => RaiseContextChange(context))
Aspire.Dashboard.Components.Tests (1)
tests\Shared\TestAIContextProvider.cs (1)
21
return new
AIContext
(this, raiseChange: () => { }) { Description = description };
Aspire.Dashboard.Tests (1)
tests\Shared\TestAIContextProvider.cs (1)
21
return new
AIContext
(this, raiseChange: () => { }) { Description = description };
45 references to AIContext
Aspire.Dashboard (29)
Components\Controls\ResourceDetails.razor.cs (2)
111
private
AIContext
? _aiContext;
366
private
AIContext
CreateAIContext()
Components\Controls\SpanDetails.razor.cs (2)
82
private
AIContext
? _aiContext;
244
private
AIContext
CreateAIContext()
Components\Controls\StructuredLogDetails.razor.cs (2)
56
private
AIContext
? _aiContext;
186
private
AIContext
CreateAIContext()
Components\Pages\ConsoleLogs.razor.cs (2)
157
private
AIContext
? _aiContext;
1079
private
AIContext
CreateAIContext()
Components\Pages\Resources.razor.cs (1)
135
private
AIContext
? _aiContext;
Components\Pages\StructuredLogs.razor.cs (2)
56
private
AIContext
? _aiContext;
230
private
AIContext
CreateAIContext()
Components\Pages\TraceDetail.razor.cs (2)
45
private
AIContext
? _aiContext;
255
private
AIContext
CreateAIContext()
Components\Pages\Traces.razor.cs (2)
52
private
AIContext
? _aiContext;
433
private
AIContext
CreateAIContext()
Model\Assistant\AIContextProvider.cs (8)
20
private readonly List<
AIContext
> _contextsStack = new List<
AIContext
>();
46
public
AIContext
? GetContext()
59
public
AIContext
AddNew(string description, Action<
AIContext
> configure)
63
AIContext
context = null!;
80
private void RaiseContextChange(
AIContext
context)
126
public void Remove(
AIContext
context)
Model\Assistant\AssistantChatViewModel.cs (2)
413
var
context = _aiContextProvider.GetContext();
449
private void PopulatePrompts(
AIContext
? context)
Model\Assistant\IAIContextProvider.cs (4)
12
AIContext
AddNew(string description, Action<
AIContext
> configure);
13
void Remove(
AIContext
context);
14
AIContext
? GetContext();
Aspire.Dashboard.Components.Tests (4)
tests\Shared\TestAIContextProvider.cs (4)
19
public
AIContext
AddNew(string description, Action<
AIContext
> configure)
24
public
AIContext
? GetContext()
64
public void Remove(
AIContext
context)
Aspire.Dashboard.Tests (12)
Model\AIAssistant\AIContextProviderTests.cs (8)
26
var
context = provider.AddNew("test", c => { });
38
var
context = provider.AddNew("test", c => { });
55
var
context1 = provider.AddNew("test1", c => { });
56
var
context2 = provider.AddNew("test2", c => { });
81
var changeChannel = Channel.CreateUnbounded<
AIContext
?>();
92
var
context1 = provider.AddNew("test1", c => { });
93
var
newContext = await changeChannel.Reader.ReadAsync().DefaultTimeout();
96
var
context2 = provider.AddNew("test2", c => { });
tests\Shared\TestAIContextProvider.cs (4)
19
public
AIContext
AddNew(string description, Action<
AIContext
> configure)
24
public
AIContext
? GetContext()
64
public void Remove(
AIContext
context)