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

DocumentPart

Interface: DocumentPart<TMetadata>

Defined in: types.ts:169

Document content part for multimodal messages (e.g., PDFs).

Type Parameters

TMetadata

TMetadata = unknown

Provider-specific metadata type (e.g., Anthropic's media_type)

Properties

metadata?

ts
optional metadata: TMetadata;

Defined in: types.ts:174

Provider-specific metadata (e.g., media_type for PDFs)


source

ts
source: ContentPartSource;

Defined in: types.ts:172

Source of the document content


type

ts
type: "document";

Defined in: types.ts:170