Search Results for

    Show / Hide Table of Contents

    Class GeminiContentPart

    A datatype containing media that is part of a multi-part GeminiContent message.

    A GeminiContentPart consists of data which has an associated datatype.A GeminiContentPart can only contain one of the accepted types in GeminiContentPart.Data.

    A GeminiContentPart must have a fixed IANA MIME type identifying the type and subtype of the media if the InlineData field is filled with raw bytes.

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

    Constructors

    | Edit this page View Source

    GeminiContentPart()

    Declaration
    public GeminiContentPart()
    | Edit this page View Source

    GeminiContentPart(FunctionResponse)

    Declaration
    public GeminiContentPart(FunctionResponse response)
    Parameters
    Type Name Description
    FunctionResponse response

    Properties

    | Edit this page View Source

    FileData

    URI based data.

    Declaration
    [JsonProperty("fileData")]
    public GoogleFileData FileData { get; set; }
    Property Value
    Type Description
    GoogleFileData
    | Edit this page View Source

    FunctionCall

    A predicted FunctionCall returned from the model that contains a string representing the Name with the arguments and their values.

    Declaration
    [JsonProperty("functionCall")]
    [JsonConverter(typeof(GeminiFunctionCallConverter))]
    public FunctionCall FunctionCall { get; set; }
    Property Value
    Type Description
    FunctionCall
    | Edit this page View Source

    FunctionResponse

    The result output of a FunctionCall that contains a string representing the Name and a structured JSON object containing any output from the function is used as context to the model.

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

    ImageContent

    Declaration
    [JsonIgnore]
    public File<Texture2D> ImageContent { get; set; }
    Property Value
    Type Description
    File<Texture2D>
    | Edit this page View Source

    InlineData

    Inline media bytes.

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

    IsImage

    Declaration
    [JsonIgnore]
    public bool IsImage { get; }
    Property Value
    Type Description
    bool
    | Edit this page View Source

    Text

    Inline text.

    Declaration
    [JsonProperty("text")]
    public string Text { get; set; }
    Property Value
    Type Description
    string

    Methods

    | Edit this page View Source

    CreateFileUrl(string)

    Declaration
    public static GeminiContentPart CreateFileUrl(string fileUrl)
    Parameters
    Type Name Description
    string fileUrl
    Returns
    Type Description
    GeminiContentPart
    | Edit this page View Source

    CreateInlineData(string, MimeType)

    Declaration
    public static GeminiContentPart CreateInlineData(string base64File, MimeType mimeType)
    Parameters
    Type Name Description
    string base64File
    MimeType mimeType
    Returns
    Type Description
    GeminiContentPart
    | Edit this page View Source

    CreateText(string)

    Declaration
    public static GeminiContentPart CreateText(string text)
    Parameters
    Type Name Description
    string text
    Returns
    Type Description
    GeminiContentPart

    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