isLoopFinished
Stop when the model stops asking for tools.
Fires on the first step where the model returns no tool calls, which is the loop's natural end. Rarely needed explicitly, since the loop already stops there; useful when composing it with other conditions.
stopWhen: [isLoopFinished()]Signature
func isLoopFinished() -> StopConditionDefined in Sources/AI/Core/StepControl.swift.
Returns
A StopCondition.