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).
Inherited Members
Namespace: Glitch9.AIDevKit
Assembly: Glitch9.AIDevKit.dll
Syntax
[JsonConverter(typeof(ContentPartConverter))]
public class ContentPart
Constructors
| Edit this page View SourceContentPart()
Declaration
public ContentPart()
Properties
| Edit this page View SourceFormat
Required. The format of the content part. Values: Text, Url, Base64, Id
Declaration
public ContentFormat Format { get; set; }
Property Value
| Type | Description |
|---|---|
| ContentFormat |
Type
Required. The type of the content part.
Declaration
public ContentType Type { get; set; }
Property Value
| Type | Description |
|---|---|
| ContentType |