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.

8 lines (6 loc) 252 B
import type { TypedToolError } from './tool-error'; import type { TypedToolResult } from './tool-result'; import type { ToolSet } from './tool-set'; export type ToolOutput<TOOLS extends ToolSet> = | TypedToolResult<TOOLS> | TypedToolError<TOOLS>;