Loop State
class LoopState(val stepNumber: Int, val totalSteps: Int, val lastFinishReason: FinishReason, val toolCallsThisStep: List<ContentPart.ToolCall>, val toolCallsAllSteps: List<ContentPart.ToolCall>, val steps: List<StepResult> = emptyList())(source)
Since
0.3.0-beta01
Constructors
Link copied to clipboard
constructor(stepNumber: Int, totalSteps: Int, lastFinishReason: FinishReason, toolCallsThisStep: List<ContentPart.ToolCall>, toolCallsAllSteps: List<ContentPart.ToolCall>, steps: List<StepResult> = emptyList())
Properties
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
All completed steps so far, in order. Mirrors v6's {steps: StepResult[]} parameter shape (per historical parity gap #17). Lets custom stop conditions inspect per-step text / reasoning / usage instead of only the synthesized aggregate fields above. Empty during the pre-first-step check.
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard