Back to prompt library
Initialize Vercel AI SDK Health API
Linked challenge: Ayush Health DPI Triage API using Vercel AI SDK & Readme
Prompt source
implementation1 lines1 sectionsNo variables0 checklist items
Import `{ generateObject } from 'ai'` and setup a Next.js API route that accepts patient symptom inputs and enforces structured output via `zod` schema matching Ayush referral formats.