TaskPart type

A single multimodal content part (text, image, or audio; also exported as ContentPart).

Signature:

export declare interface TextPart {
  kind: 'TEXT';
  text: string;
}

export declare interface ImagePart {
  kind: 'IMAGE';
  image: ImageSource;
}

export declare interface AudioPart {
  kind: 'AUDIO';
  samples: Float32Array;
  sampleRate: number;
}

export declare type TaskPart = TextPart | ImagePart | AudioPart;
export declare type ContentPart = TaskPart;