Function: hasToolResult()
hasToolResult(
toolName,predicate?):StopCondition
Defined in: packages/core/src/utils/stop-conditions.ts:68
Stop when a specific tool has produced a result on the latest step.
Optional predicate inspects the tool's return value (baleybots value-add
over AI SDK's hasToolCall, which only looks at call names).
Parameters
toolName
string
predicate?
(result) => boolean