Defined in: packages/ai/src/activities/chat/tools/unique-tool-names.ts:11
Thrown when chat({ tools }) (or a provider converter) receives two tools with the same public name.
The common case is a provider-native factory (webSearchTool()) next to an ordinary function that reused the reserved name (web_search). Providers reject that pair, so we fail before the request is built.
new DuplicateToolNameError(toolName, message): DuplicateToolNameError;Defined in: packages/ai/src/activities/chat/tools/unique-tool-names.ts:14
string
string
DuplicateToolNameError
Error.constructorreadonly toolName: string;Defined in: packages/ai/src/activities/chat/tools/unique-tool-names.ts:12