Docs
Code Rabbit
Cloudflare
AG Grid
Netlify
Neon
WorkOS
Clerk
Convex
Electric
Sentry
Prisma
Strapi
Unkey
UI.dev
Code Rabbit
Cloudflare
AG Grid
Netlify
Neon
WorkOS
Clerk
Convex
Electric
Sentry
Prisma
Strapi
Unkey
UI.dev
Class References
Function References
Interface References
Type Alias References
Variable References
Interface References

ModelMessage

Interface: ModelMessage<TContent>

Defined in: types.ts:260

Type Parameters

TContent

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

Properties

content

ts
content: TContent;
content: TContent;

Defined in: types.ts:267


name?

ts
optional name: string;
optional name: string;

Defined in: types.ts:268


role

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

Defined in: types.ts:266


toolCallId?

ts
optional toolCallId: string;
optional toolCallId: string;

Defined in: types.ts:270


toolCalls?

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

Defined in: types.ts:269