Skip to content

stepCountIs

stepCountIs(stepCount): StopCondition<any, any>

Defined in: node_modules/.bun/ai@7.0.127+bca6845d7a0cc15a/node_modules/ai/dist/index.d.ts:1957

Creates a stop condition that returns true when the number of completed steps equals stepCount.

number

The number of steps to allow before stopping.

StopCondition<any, any>