Skip to main content
@ai-billing/nextjs
@ai-billing/nextjs / server / configureChatTools

Function: configureChatTools()

configureChatTools<T>(config): void
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.

Type Parameters

T

T extends Record<string, object>

Parameters

config

Tools configuration with optional step limit.

tools

T

maxSteps?

number

Returns

void
Last modified on October 29, 2026