Docs
CodeRabbit
Cloudflare
Railway
AG Grid
Clerk
OpenRouter
SerpAPI
WorkOS
Netlify
Unkey
Prisma
Electric
Sentry
CodeRabbit
Cloudflare
Railway
AG Grid
Clerk
OpenRouter
SerpAPI
WorkOS
Netlify
Unkey
Prisma
Electric
Sentry
Class References
Function References
Interface References
Type Alias References
Variable References
Type Alias References

Modality

Type Alias: Modality

ts
type Modality = "text" | "image" | "audio" | "video" | "document";
type Modality = "text" | "image" | "audio" | "video" | "document";

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

Supported input modality types for multimodal content.

  • 'text': Plain text content
  • 'image': Image content (base64 or URL)
  • 'audio': Audio content (base64 or URL)
  • 'video': Video content (base64 or URL)
  • 'document': Document content like PDFs (base64 or URL)