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

ModelMessage.md

64 lines1.2 KB

Interface: ModelMessage<TContent>

Defined in: types.ts:223

Type Parameters

TContent

TContent extends string | null | ContentPart[] = string | null | ContentPart[]

Properties

content

content: TContent;

Defined in: types.ts:230


name?

optional name: string;

Defined in: types.ts:231


role

role: "user" | "assistant" | "tool";

Defined in: types.ts:229


toolCallId?

optional toolCallId: string;

Defined in: types.ts:233


toolCalls?

optional toolCalls: ToolCall[];

Defined in: types.ts:232