AI Dev Kit
Search Results for

    Show / Hide Table of Contents

    Class Content

    The base structured datatype containing multi-part content of a message. It's a ChatMessage in a demonic form.

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

    Constructors

    Content()

    Declaration
    public Content()

    Content(ChatRole, ContentPart[])

    Declaration
    public Content(ChatRole role, ContentPart[] parts)
    Parameters
    Type Name Description
    ChatRole role
    ContentPart[] parts

    Content(ChatRole, string, Blob)

    Declaration
    public Content(ChatRole role, string text, Blob inlineData = null)
    Parameters
    Type Name Description
    ChatRole role
    string text
    Blob inlineData

    Properties

    Parts

    Ordered Parts that constitute a single message. Parts may have different MIME types.

    Declaration
    public ContentPart[] Parts { get; set; }
    Property Value
    Type Description
    ContentPart[]

    Role

    Optional. The producer of the content. Must be either User or ChatRole.Model. Useful to set for multi-turn conversations, otherwise can be left blank or unset.

    Declaration
    public ChatRole Role { get; set; }
    Property Value
    Type Description
    ChatRole

    Methods

    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()
    In this article
    Back to top Generated by DocFX