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

TextPart

Interface: TextPart<TMetadata>

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

Message parts - building blocks of UIMessage

Type Parameters

TMetadata

TMetadata = unknown

Properties

content

ts
content: string;
content: string;

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


metadata?

ts
optional metadata: TMetadata;
optional metadata: TMetadata;

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


type

ts
type: "text";
type: "text";

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