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

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;
optional metadata: TMetadata;

Defined in: types.ts:174

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


source

ts
source: ContentPartSource;
source: ContentPartSource;

Defined in: types.ts:172

Source of the document content


type

ts
type: "document";
type: "document";

Defined in: types.ts:170