Skip to main content
Loading navigation

Vercel AI SDK Stream Object Setup

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.