Docs
CodeRabbit
Cloudflare
AG Grid
SerpAPI
Netlify
OpenRouter
Neon
WorkOS
Clerk
Electric
PowerSync
Sentry
Railway
Prisma
Strapi
Unkey
CodeRabbit
Cloudflare
AG Grid
SerpAPI
Netlify
OpenRouter
Neon
WorkOS
Clerk
Electric
PowerSync
Sentry
Railway
Prisma
Strapi
Unkey
Persistence (Advanced)
Embeddings
Reranking
Evaluate
Sandboxes (Advanced)
Class References
Function References
Interface References
Type Alias References
Variable References

Structured Outputs (Moved)

The structured-outputs guide has moved to its own top-level section, split by what you're building. Pick the journey that fits:

  • Overview — what structured output is, schema library options, provider support, and "which page do I read?"
  • One-Shot Extraction — single prompt in, single typed object out. Use this when you don't need streaming or chat history.
  • Streaming UIs — useChat({ outputSchema }) with partial and final populating a UI field by field.
  • Multi-Turn Chat — each successfully completed structured-output run adds a typed response to message history, and messages[i].parts.find(p => p.type === "structured-output").data is typed by your schema.
  • With Tools — combining outputSchema with the agent loop, including pause/resume for server-tool approvals and client-tool invocations.
  • Harness Agents — a coding agent in a sandbox inspects files, then returns a typed object.

Note: This URL is kept for backward compatibility. New content lives under /structured-outputs/* — update existing bookmarks when you can.