StopCondition
Namespace: Vercel.AI
public abstract class StopConditionStops the tool loop. The default for generateText is IsStepCount(int) of 1.
Inheritance: object
Methods
Section titled “Methods”ShouldStop(IReadOnlyList<StepResult>)
Section titled “ShouldStop(IReadOnlyList<StepResult>)”public abstract bool ShouldStop(IReadOnlyList<StepResult> steps)Returns true when the loop should stop after <code class=“paramref”>steps</code>.
Parameters
| Name | Type | Description |
|---|---|---|
steps |
IReadOnlyList<StepResult> |
Returns: bool
Apache-2.0 · Copyright 2023 Vercel, Inc. · unofficial community port, not an official Vercel product