Skip to content
Source
Sign inSign up
TanStack/ai
Open History to see the last commit

UIMessage.md

51 lines973 Bytes

Interface: UIMessage

Defined in: types.ts:284

UIMessage - Domain-specific message format optimized for building chat UIs Contains parts that can be text, tool calls, or tool results

Properties

createdAt?

optional createdAt: Date;

Defined in: types.ts:288


id

id: string;

Defined in: types.ts:285


parts

parts: MessagePart[];

Defined in: types.ts:287


role

role: "user" | "assistant" | "system";

Defined in: types.ts:286