Module Message.Content_part

module Image_url : sig ... end
module File_data : sig ... end
type t =
  1. | Text of {
    1. text : string;
    }
  2. | Image_url of {
    1. image_url : Image_url.t;
    }
  3. | File of {
    1. file : File_data.t;
    }
val sexp_of_t : t -> Sexplib0.Sexp.t
val text : string -> t
val image_base64 : mime_type:string -> data:string -> t

mime_type should be e.g. "image/jpeg", "image/png", "image/webp", "image/gif"

val file : filename:string -> file_data:string -> t

file_data can be either a URL (for publicly accessible files) or a data URL like "data:application/pdf;base64,..." for local files