Search Results for

    Show / Hide Table of Contents

    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).

    Inheritance
    object
    ContentPart
    ContentPart<T>
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: Glitch9.AIDevKit
    Assembly: Glitch9.AIDevKit.dll
    Syntax
    [JsonConverter(typeof(ContentPartConverter))]
    public class ContentPart

    Constructors

    | Edit this page View Source

    ContentPart()

    Declaration
    public ContentPart()

    Properties

    | Edit this page View Source

    Format

    Required. The format of the content part. Values: Text, Url, Base64, Id

    Declaration
    public ContentFormat Format { get; set; }
    Property Value
    Type Description
    ContentFormat
    | Edit this page View Source

    Type

    Required. The type of the content part.

    Declaration
    public ContentType Type { get; set; }
    Property Value
    Type Description
    ContentType

    Extension Methods

    ArrayExtensions.ToArrayOrEmpty<T>(T)
    ArrayExtensions.ToArrayOrNull<T>(T)
    EventExtensions.ToDelta<T>(T, string, int, string, bool)
    EventExtensions.ToDone<T>(T, string, int, string)
    EventExtensions.ToEvent<T>(T)
    EventExtensions.UpcastDelta<T1, T2>(T1, string, int, string, bool)
    FallbackExtensions.IsOr<TParent, TChild>(TParent, TChild)
    ResponseCastingExtensions.GetResult<T>(T)
    SystemExtensions.GetName(object)
    • Edit this page
    • View Source
    In this article
    Back to top AI DevKit Documentation