Skip to main content
Use generateObject for typed outputs.

Notes

  • Prefer explicit enums and required fields in schemas.
  • Keep prompts aligned with the schema shape.
  • Handle parse/validation errors in caller code.
Last modified on July 26, 2026