ToolUseBehavior
type ToolUseBehavior = | ToolUseBehaviorFlags | { stopAtToolNames: string[]; } | ToolToFinalOutputFunction;
The behavior of the agent when a tool is called.
Type declaration
Section titled “Type declaration”{
stopAtToolNames
: string
[];
}
stopAtToolNames
Section titled “stopAtToolNames”stopAtToolNames: string[];
List of tool names that will stop the agent from running further. The final output will be the output of the first tool in the list that was called.