AI Dev Kit
Search Results for

    Show / Hide Table of Contents

    Class ContentPartWrapper

    An array of content parts with a defined type, each can be of type Text or Image_Url when passing in images. You can pass multiple images by adding multiple Image_Url content parts. Image input is only supported when using the gpt-4-visual-preview model.

    Inheritance
    object
    ContentPartWrapper
    Namespace: Glitch9.AIDevKit
    Assembly: .dll
    Syntax
    public class ContentPartWrapper

    Constructors

    ContentPartWrapper()

    Declaration
    public ContentPartWrapper()

    ContentPartWrapper(ContentPart)

    Declaration
    public ContentPartWrapper(ContentPart part)
    Parameters
    Type Name Description
    ContentPart part

    ContentPartWrapper(string)

    Declaration
    public ContentPartWrapper(string text)
    Parameters
    Type Name Description
    string text

    Properties

    HasValue

    Declaration
    public bool HasValue { get; }
    Property Value
    Type Description
    bool

    IsBase64

    Declaration
    public bool IsBase64 { get; }
    Property Value
    Type Description
    bool

    IsNull

    Declaration
    public bool IsNull { get; }
    Property Value
    Type Description
    bool

    IsString

    Declaration
    public bool IsString { get; }
    Property Value
    Type Description
    bool

    Type

    Declaration
    public ContentPartType Type { get; }
    Property Value
    Type Description
    ContentPartType

    Methods

    ToPart()

    Declaration
    public ContentPart ToPart()
    Returns
    Type Description
    ContentPart

    ToString()

    Returns a string that represents the current object.

    Declaration
    public override string ToString()
    Returns
    Type Description
    string

    A string that represents the current object.

    Overrides
    object.ToString()

    Operators

    implicit operator string(ContentPartWrapper)

    Declaration
    public static implicit operator string(ContentPartWrapper content)
    Parameters
    Type Name Description
    ContentPartWrapper content
    Returns
    Type Description
    string

    implicit operator ContentPartWrapper(string)

    Declaration
    public static implicit operator ContentPartWrapper(string text)
    Parameters
    Type Name Description
    string text
    Returns
    Type Description
    ContentPartWrapper
    In this article
    Back to top Generated by DocFX