AI Dev Kit
Search Results for

    Show / Hide Table of Contents

    Class Content

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

    Constructors

    Content()

    Declaration
    public Content()

    Content(ContentPartWrapper[])

    Declaration
    public Content(ContentPartWrapper[] parts)
    Parameters
    Type Name Description
    ContentPartWrapper[] parts

    Content(string)

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

    Content(string[])

    Declaration
    public Content(string[] texts)
    Parameters
    Type Name Description
    string[] texts

    Properties

    HasValue

    Declaration
    public bool HasValue { 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

    Length

    Returns the length of the array if the value is an array, returns the length of the string if the value is a string, otherwise returns 0.

    Declaration
    public int Length { get; }
    Property Value
    Type Description
    int

    Methods

    AddPartRange<T>(IEnumerable<T>)

    Declaration
    public void AddPartRange<T>(IEnumerable<T> parts) where T : ContentPart
    Parameters
    Type Name Description
    IEnumerable<T> parts
    Type Parameters
    Name Description
    T

    AddPart<T>(T)

    Declaration
    public void AddPart<T>(T part) where T : ContentPart
    Parameters
    Type Name Description
    T part
    Type Parameters
    Name Description
    T

    FromParts(IEnumerable<ContentPart>)

    Declaration
    public static Content FromParts(IEnumerable<ContentPart> parts)
    Parameters
    Type Name Description
    IEnumerable<ContentPart> parts
    Returns
    Type Description
    Content

    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(Content)

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

    implicit operator Content(ContentPartWrapper[])

    Declaration
    public static implicit operator Content(ContentPartWrapper[] parts)
    Parameters
    Type Name Description
    ContentPartWrapper[] parts
    Returns
    Type Description
    Content

    implicit operator Content(string)

    Declaration
    public static implicit operator Content(string text)
    Parameters
    Type Name Description
    string text
    Returns
    Type Description
    Content

    Extension Methods

    GENTaskExtensions.GENModeration(Content, IEnumerable<SafetySetting>)
    In this article
    Back to top Generated by DocFX