Skip to content

hasToolCall

hasToolCall<TOOLS>(…toolName): StopCondition<TOOLS, any>

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

Creates a stop condition that returns true when the most recent step contains a tool call with any of the specified names.

TOOLS extends ToolSet

…(string & object | keyof TOOLS)[]

The names of the tools that should stop the loop.

StopCondition<TOOLS, any>