Class ContentPart<T>
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).
Inheritance
ContentPart<T>
Assembly: Glitch9.AIDevKit.dll
Syntax
public abstract class ContentPart<T> : ContentPart where T : IContentData
Type Parameters
Constructors
|
Edit this page
View Source
ContentPart()
Declaration
|
Edit this page
View Source
ContentPart(ContentType, ContentFormat, T)
Declaration
protected ContentPart(ContentType type, ContentFormat dataType, T value)
Parameters
Properties
|
Edit this page
View Source
Value
Declaration
public T Value { get; set; }
Property Value
Methods
|
Edit this page
View Source
ToString()
Indicates if the content part is in base64 format.
This is true if the content part is a base64 encoded image, file, or audio.
Declaration
public override string ToString()
Returns
Overrides
Operators
|
Edit this page
View Source
implicit operator T(ContentPart<T>)
Declaration
public static implicit operator T(ContentPart<T> content)
Parameters
Returns
Extension Methods