Search Results for

    Show / Hide Table of Contents

    Class GeminiContent

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

    Inheritance
    object
    GeminiContent
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    Namespace: Glitch9.AIDevKit.Google
    Assembly: Glitch9.AIDevKit.Provider.Google.dll
    Syntax
    public class GeminiContent

    Constructors

    | Edit this page View Source

    GeminiContent()

    Declaration
    public GeminiContent()
    | Edit this page View Source

    GeminiContent(ChatRole, Blob)

    Declaration
    public GeminiContent(ChatRole role, GeminiContentPart.Blob inlineData)
    Parameters
    Type Name Description
    ChatRole role
    GeminiContentPart.Blob inlineData
    | Edit this page View Source

    GeminiContent(ChatRole, GeminiContentPart[])

    Declaration
    public GeminiContent(ChatRole role, GeminiContentPart[] parts)
    Parameters
    Type Name Description
    ChatRole role
    GeminiContentPart[] parts
    | Edit this page View Source

    GeminiContent(ChatRole, string)

    Declaration
    public GeminiContent(ChatRole role, string text)
    Parameters
    Type Name Description
    ChatRole role
    string text
    | Edit this page View Source

    GeminiContent(string)

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

    Properties

    | Edit this page View Source

    Parts

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

    Declaration
    [JsonProperty("parts")]
    public GeminiContentPart[] Parts { get; set; }
    Property Value
    Type Description
    GeminiContentPart[]
    | Edit this page View Source

    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
    [JsonProperty("role")]
    public ChatRole Role { get; set; }
    Property Value
    Type Description
    ChatRole

    Methods

    | Edit this page View Source

    FunctionResponse(string, string)

    Declaration
    public static GeminiContent FunctionResponse(string functionName, string responseJson)
    Parameters
    Type Name Description
    string functionName
    string responseJson
    Returns
    Type Description
    GeminiContent
    | Edit this page View Source

    ToString()

    Declaration
    public override string ToString()
    Returns
    Type Description
    string
    Overrides
    object.ToString()

    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