@ai-billing/nextjs / server / configureChatTools
Function: configureChatTools()
configureChatTools<Defined in: packages/nextjs/src/chat/chatTools.ts:19 Registers tools and step limit for the chat server action. Call this at module level before any chat requests. Generic to avoid TypeScript’s deep-union instantiation limit on ToolSet while still accepting any record of tool objects at the call site.T>(config):void
Type Parameters
T
T extends Record<string, object>
Parameters
config
Tools configuration with optional step limit.tools
T
maxSteps?
number
Returns
void