OpenPond
1Branch0Tags
GL
glucryptochore: bump opentool to v0.8.28 and add template p...
1ee7b423 days ago4Commits
typescript
import { z } from "zod"; export const schema = z.object({ message: z.string().default("hello").describe("Message to echo"), }); export const metadata = { name: "example_tool", description: "Example tool scaffold", }; export async function POST(request: Request) { const input = schema.parse(await request.json()); return Response.json({ ok: true, input }); }