Class AgentEngine
Default implementation. Drives the tool-loop with
governance, idempotency, approval, conversation persistence and audit
observability — every dependency is optional and defaults to a Noop
implementation so that simple cases (a tool-less, persistence-less call
against ) work out of the box.
public sealed class AgentEngine : IAgentEngine
Inheritance
Implements
Methods
FindRegistered(IRouteContext)
Finds the engine a host registered — first in the route context's own locator, then in the DI
public static IAgentEngine? FindRegistered(IRouteContext context)
FromContext(IRouteContext)
Builds an engine from whatever the route context and its DI container can provide — the
public static AgentEngine FromContext(IRouteContext context)
RunAsync(AgentRequest, CancellationToken)
Runs the agent to completion.
public Task<AgentResponse> RunAsync(AgentRequest request, CancellationToken ct = default)
Constructors
AgentEngine(ILogger<AgentEngine>?, IProducerTemplate?, IAgentObserver?, IBudgetEnforcer?, IApprovalGate?, IRedactionFilter?, IShadowRunner?, IConversationStore?, IToolIdempotencyStore?, IApprovalStore?, IToolClaimsSource?, IToolCacheStore?, ICostCalculator?)
Creates an engine with explicit governance / storage dependencies.
AgentEngine(ILogger<AgentEngine>?)
Backwards-compatible constructor — wires every dependency to its no-op