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:232

Type Parameters

TContent

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

Properties

content

ts
content: TContent;
content: TContent;

Defined in: types.ts:239


name?

ts
optional name: string;
optional name: string;

Defined in: types.ts:240


role

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

Defined in: types.ts:238


toolCallId?

ts
optional toolCallId: string;
optional toolCallId: string;

Defined in: types.ts:242


toolCalls?

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

Defined in: types.ts:241