Class AgentRunCompletedContext

Assembly: redb.Route.Llm.dll

Final state of an agent run.

public sealed class AgentRunCompletedContext

Inheritance

Object→AgentRunCompletedContext

Properties

Cancelled

True when the run was cancelled (via CancellationToken or budget stop).

public bool Cancelled { get; init; }

Exception

Exception that terminated the run, if any.

public Exception? Exception { get; init; }

Iterations

Number of iterations the loop completed.

public required int Iterations { get; init; }

Run

Identifiers shared with the rest of the run.

public required AgentRunContext Run { get; init; }

StopReason

Final stop reason from the last iteration.

public required LlmStopReason StopReason { get; init; }

TotalUsage

Aggregate usage across all iterations.

public required LlmUsage TotalUsage { get; init; }