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

ModelMessage

Interface: ModelMessage<TContent>

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

Type Parameters

TContent

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

Properties

content

ts
content: TContent;
content: TContent;

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


name?

ts
optional name: string;
optional name: string;

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


role

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

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


thinking?

ts
optional thinking: object[];
optional thinking: object[];

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

content

ts
content: string;
content: string;

signature?

ts
optional signature: string;
optional signature: string;

toolCallId?

ts
optional toolCallId: string;
optional toolCallId: string;

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


toolCalls?

ts
optional toolCalls: ToolCall<unknown>[];
optional toolCalls: ToolCall<unknown>[];

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