Docs
Cloudflare
CodeRabbit
Railway
Netlify
WorkOS
Clerk
AG Grid
SerpAPI
OpenRouter
Unkey
Sentry
Electric
Prisma
Cloudflare
CodeRabbit
Railway
Netlify
WorkOS
Clerk
AG Grid
SerpAPI
OpenRouter
Unkey
Sentry
Electric
Prisma
Class References
Function References
Interface References
Type Alias References
Variable References

StructuredOutputStartEvent

Interface: StructuredOutputStartEvent

Defined in: packages/ai/src/types.ts:1251

Emitted at the start of a streaming structured-output run, before the JSON deltas. Tells consumers that the upcoming TEXT_MESSAGE_CONTENT deltas belong to a structured response so they can route those bytes into a StructuredOutputPart instead of building a TextPart. Carries the messageId the deltas will be tagged with so the routing decision can be made per-message rather than globally.

Extends

Indexable

ts
[k: string]: unknown
[k: string]: unknown

Properties

model?

ts
optional model: string;
optional model: string;

Defined in: packages/ai/src/types.ts:1215

Model identifier for multi-model support

Inherited from

CustomEvent.model


name

ts
name: "structured-output.start";
name: "structured-output.start";

Defined in: packages/ai/src/types.ts:1252

Overrides

ts
CustomEvent.name
CustomEvent.name

value

ts
value: object;
value: object;

Defined in: packages/ai/src/types.ts:1253

messageId

ts
messageId: string;
messageId: string;

Overrides

ts
CustomEvent.value
CustomEvent.value