UNPKG

ai

Version:

AI SDK by Vercel - build apps like ChatGPT, Claude, Gemini, and more with a single interface for any model using the Vercel AI Gateway or go direct to OpenAI, Anthropic, Google, or any other model provider.

13 lines (11 loc) 396 B
import type { ToolSet } from '@ai-sdk/provider-utils'; /** * Tool names that are enabled for a generation step. * * `undefined` means no tool restriction is applied. Tool names are object keys * at runtime, so the type is restricted to the string keys of the configured * tool set. */ export type ActiveTools<TOOLS extends ToolSet> = | ReadonlyArray<keyof TOOLS & string> | undefined;