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
Persistence (Advanced)
Embeddings
Reranking
Evaluate
Sandboxes (Advanced)
Class References
Function References
Interface References
Type Alias References
Variable References
Interface References

DocumentPart

Defined in: packages/ai/src/types.ts:315

Document content part for multimodal messages (e.g., PDFs). AG-UI DocumentPart with typed metadata.

Extends

  • DocumentPart

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: packages/ai/src/types.ts:317

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

Overrides

ts
AGUIDocumentPart.metadata
AGUIDocumentPart.metadata