UNPKG

tinyagent-ts

Version:

Modern TypeScript framework for building AI agents with pluggable tools and ReAct reasoning

7 lines (6 loc) 250 B
import { ZodSchema } from 'zod'; /** * Compile a reusable validator function from a Zod schema. * Throws a formatted error message on validation failure. */ export declare function compileValidator<T>(schema: ZodSchema<T>): (input: unknown) => T;