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.
Type Parameters
Section titled “Type Parameters”TOOLS extends ToolSet
Parameters
Section titled “Parameters”toolName
Section titled “toolName”…(string & object | keyof TOOLS)[]
The names of the tools that should stop the loop.
Returns
Section titled “Returns”StopCondition<TOOLS, any>