UNPKG

@plastichub/osr-ai-tools

Version:

CLI and library for LLM tools

9 lines (8 loc) 394 B
import { RunnableToolFunctionWithParse } from 'openai/lib/RunnableFunction'; import { ZodSchema, z } from 'zod'; export declare const zodFunction: <T extends object>({ function: fn, schema, description, name, }: { function: (args: T) => Promise<object>; schema: ZodSchema<T, z.ZodTypeDef, T>; description?: string; name?: string; }) => RunnableToolFunctionWithParse<T>;