@arizeai/phoenix-client
Version:
A client for the Phoenix API
18 lines • 802 B
TypeScript
import { z } from "zod";
/**
* Vercel AI Tool Definition Schema
*
* Produces the same result as if you called `import { jsonSchema } from "ai"`
* https://github.com/vercel/ai/blob/83976abfa99bf26f8227cf493386b8a6f0e71fdd/packages/ui-utils/src/schema.ts#L34
*/
export declare const vercelAIToolDefinitionSchema: z.ZodObject<{
type: z.ZodLiteral<"function">;
description: z.ZodOptional<z.ZodString>;
inputSchema: z.ZodObject<{
_type: z.ZodDefault<z.ZodOptional<z.ZodUnknown>>;
validate: z.ZodDefault<z.ZodOptional<z.ZodUnknown>>;
jsonSchema: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
}, z.core.$strip>;
}, z.core.$strip>;
export type VercelAIToolDefinition = z.infer<typeof vercelAIToolDefinitionSchema>;
//# sourceMappingURL=toolSchemas.d.ts.map