Path: redb-route/redb.Route.Llm/Engine/IAgentEngine.cs
Snapshot: redb-route, development snapshot 2026-12-06. This is the development state of the public mirrors; it may differ from the published packages.
License: Apache-2.0. Repository: https://github.com/redbase-app/redb-route
Page: https://redbase.app/src/dev-2026-12-06/redb-route/redb.Route.Llm/Engine/IAgentEngine.cs
----
namespace redb.Route.Llm.Engine;
///
/// Drives the tool-loop: provider call → tool dispatch → provider call → ... until
/// end_turn, max iterations, budget cap or cancellation. Owns governance
/// (budget, shadow, idempotency, approval) — provider implementations stay pure.
///
public interface IAgentEngine
{
/// Runs the agent to completion.
Task RunAsync(AgentRequest request, CancellationToken ct = default);
}