Class AgentIterationContext

Assembly: redb.Route.Llm.dll

Per-iteration snapshot — usage, stop reason, content shape.

public sealed class AgentIterationContext

Inheritance

Object→AgentIterationContext

Properties

Duration

Wall-clock duration of the provider call.

public required TimeSpan Duration { get; init; }

Iteration

Iteration index, starting from 1.

public required int Iteration { get; init; }

IterationUsage

Usage produced by this iteration alone (not cumulative).

public required LlmUsage IterationUsage { get; init; }

Run

Identifiers shared with the rest of the run.

public required AgentRunContext Run { get; init; }

StopReason

Stop reason of this iteration's provider response.

public required LlmStopReason StopReason { get; init; }