Back to prompt library
Vercel AI SDK Stream Object Setup
Linked challenge: Singapore URA Tender Plot Ratio Analyzer using Vercel AI SDK
Prompt source
implementation3 lines1 sectionsNo variables0 checklist items
import { generateObject } from 'ai';
import { z } from 'zod';
// Write a server action that accepts URA press release text and uses generateObject to parse site_area_sqm, gross_plot_ratio, and compute max_gfa_sqm.