๐Ÿ“ฆ colinhacks / zod-ai-excessively-deep

๐Ÿ“„ index.ts ยท 12 lines
1
2
3
4
5
6
7
8
9
10
11
12import { tool } from "ai";
import { z } from "zod";

const classifyAccount = tool({
  description: "Analyze account",
  inputSchema: z.object({
    projectProbability: z.number().min(0).max(1).describe("test"),
    humanProbability: z.number().min(0).max(1).describe("test"),
    reason: z.string().describe("test"),
  }),
});