MediaPart: {
    custom?: Record<string, unknown>;
    data?: unknown;
    media: { contentType?: string; url: string };
    metadata?: Record<string, unknown>;
    text?: undefined;
    toolRequest?: undefined;
    toolResponse?: undefined;
}

Media part.

Type declaration

  • Optionalcustom?: Record<string, unknown>
  • Optionaldata?: unknown
  • media: { contentType?: string; url: string }
  • Optionalmetadata?: Record<string, unknown>
  • Optionaltext?: undefined
  • OptionaltoolRequest?: undefined
  • OptionaltoolResponse?: undefined