Class ContentPart
Base class for different types of content parts in a message. Each content part has a defined type, such as Text, Image(Url/Base64/FileId), Audio(Base64), or File(Base64/FileId).
public class ContentPart
- Inheritance
-
objectContentPart
- Derived
Constructors
ContentPart()
public ContentPart()
Fields
File
public const string File = "file"
Field Value
- string
ImageFile
public const string ImageFile = "image_file"
Field Value
- string
ImageUrl
public const string ImageUrl = "image_url"
Field Value
- string
InputAudio
public const string InputAudio = "input_audio"
Field Value
- string
InputFile
public const string InputFile = "input_file"
Field Value
- string
InputImage
public const string InputImage = "input_image"
Field Value
- string
InputText
public const string InputText = "input_text"
Field Value
- string
OutputText
public const string OutputText = "output_text"
Field Value
- string
Refusal
public const string Refusal = "refusal"
Field Value
- string
Text
public const string Text = "text"
Field Value
- string
Properties
Format
public ContentFormat Format { get; set; }
Property Value
Type
Required. The type of the content part.
public string Type { get; set; }
Property Value
- string
Methods
IsBase64()
public bool IsBase64()
Returns
- bool