Search Results for

    Show / Hide Table of Contents

    Class TextPart

    Text, Refusal, InputText, OutputText content part.

    Inheritance
    object
    ContentPart
    ContentPart<TextContentData>
    TextPart
    Inherited Members
    ContentPart<TextContentData>.Value
    ContentPart<TextContentData>.ToString()
    ContentPart.Type
    ContentPart.Format
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.ReferenceEquals(object, object)
    Namespace: Glitch9.AIDevKit
    Assembly: Glitch9.AIDevKit.dll
    Syntax
    public sealed class TextPart : ContentPart<TextContentData>

    Constructors

    | Edit this page View Source

    TextPart()

    Declaration
    public TextPart()
    | Edit this page View Source

    TextPart(ContentType, string)

    Declaration
    public TextPart(ContentType type, string text)
    Parameters
    Type Name Description
    ContentType type
    string text
    | Edit this page View Source

    TextPart(ContentType, string, params Annotation[])

    Declaration
    public TextPart(ContentType type, string text, params Annotation[] annotations)
    Parameters
    Type Name Description
    ContentType type
    string text
    Annotation[] annotations

    Methods

    | Edit this page View Source

    InputMessageText(string)

    Declaration
    public static TextPart InputMessageText(string text)
    Parameters
    Type Name Description
    string text
    Returns
    Type Description
    TextPart
    | Edit this page View Source

    MessageText(string)

    Declaration
    public static TextPart MessageText(string text)
    Parameters
    Type Name Description
    string text
    Returns
    Type Description
    TextPart
    | Edit this page View Source

    OutputMessageText(string)

    Declaration
    public static TextPart OutputMessageText(string text)
    Parameters
    Type Name Description
    string text
    Returns
    Type Description
    TextPart
    | Edit this page View Source

    RefusalText(string)

    Declaration
    public static TextPart RefusalText(string text)
    Parameters
    Type Name Description
    string text
    Returns
    Type Description
    TextPart

    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