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

ModelMessage

Interface: ModelMessage<TContent>

Defined in: packages/typescript/ai/src/types.ts:288

Type Parameters

TContent

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

Properties

content

ts
content: TContent;
content: TContent;

Defined in: packages/typescript/ai/src/types.ts:295


name?

ts
optional name: string;
optional name: string;

Defined in: packages/typescript/ai/src/types.ts:296


role

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

Defined in: packages/typescript/ai/src/types.ts:294


toolCallId?

ts
optional toolCallId: string;
optional toolCallId: string;

Defined in: packages/typescript/ai/src/types.ts:298


toolCalls?

ts
optional toolCalls: ToolCall[];
optional toolCalls: ToolCall[];

Defined in: packages/typescript/ai/src/types.ts:297