Interface: IUiMessageMetadata
Defined in: entries/vercel-ui/types.ts:28
What the module adds to a UI message: the thread, the dates and model of the turns, and on a streamed answer the results
of the call (citations, issues, the structured value); pause on a thread that waits for a human.
The METADATA of every TGatewayUiMessage and TGatewayUiChunk; the client merges every message-metadata chunk into it.
Properties
citations?
optionalcitations?:string[]
Defined in: entries/vercel-ui/types.ts:38
The chunk ids the answer was grounded on, as IAnswerResponse.citations. Streamed answers only.
createdAt?
optionalcreatedAt?:string
Defined in: entries/vercel-ui/types.ts:32
ISO date of the (first) turn of the message.
endedByTool?
optionalendedByTool?:string
Defined in: entries/vercel-ui/types.ts:44
The tool that ended the run (D86).
issues?
optionalissues?:IIssue[]
Defined in: entries/vercel-ui/types.ts:40
The warnings of the checks, as IAnswerResponse.issues; after withdrawn, the issues that withdrew it. Streamed answers only.
modelId?
optionalmodelId?:string
Defined in: entries/vercel-ui/types.ts:34
Assistant messages: the model of the answer.
pause?
optionalpause?:IUiPause
Defined in: entries/vercel-ui/types.ts:48
The pause the thread waits on: what the SDK's approval card cannot show, and what AIGatewayVercelUi.resume takes.
structured?
optionalstructured?:unknown
Defined in: entries/vercel-ui/types.ts:42
The parsed answer of a use case with an outputSchema. Streamed answers only.
threadId?
optionalthreadId?:string
Defined in: entries/vercel-ui/types.ts:30
The thread of the message; on a streamed answer set once it is known (the finish chunk at the latest).
usage?
optionalusage?:IUsage
Defined in: entries/vercel-ui/types.ts:36
Assistant messages: the tokens of the answer.
withdrawn?
optionalwithdrawn?:boolean
Defined in: entries/vercel-ui/types.ts:46
The streamed text is not kept (D74): the renderer drops or greys it.