2 instantiations of AgentContext
Microsoft.AspNetCore.Components.AI (2)
Components\AgentBoundary.cs (2)
33
_context = new
AgentContext
(Agent);
46
_context = new
AgentContext
(Agent);
16 references to AgentContext
Microsoft.AspNetCore.Components.AI (16)
Components\AgentBoundary.cs (4)
9
/// Creates the <see cref="
AgentContext
"/> for a <see cref="UIAgent"/> and cascades it to the
14
private
AgentContext
_context = default!;
58
builder.OpenComponent<CascadingValue<
AgentContext
>>(0);
71
/// Disposes the <see cref="
AgentContext
"/> owned by this boundary.
Components\ConversationTurnRenderer.cs (1)
18
AgentContext
agentContext,
Components\MessageInput.cs (2)
16
private
AgentContext
_agentContext = default!;
28
public
AgentContext
AgentContext { get; set; } = default!;
Components\MessageList.cs (5)
16
private
AgentContext
_agentContext = default!;
18
private RenderFragment<
AgentContext
>? _footer;
28
public
AgentContext
AgentContext { get; set; } = default!;
48
public RenderFragment<
AgentContext
>? Footer { get; set; }
58
var
newAgentContext = AgentContext
Engine\AgentContext.cs (1)
31
/// Initializes a new instance of the <see cref="
AgentContext
"/> class.
Engine\ConversationStatus.cs (3)
7
/// The state of a conversation driven by an <see cref="
AgentContext
"/>.
27
/// The last turn failed. <see cref="
AgentContext
.Error"/> holds the exception and
28
/// <see cref="
AgentContext
.RetryAsync(CancellationToken)"/> replays the turn.