Search Results for

    Show / Hide Table of Contents

    Class GenerateContentRequestExtensions

    Inheritance
    object
    GenerateContentRequestExtensions
    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 static class GenerateContentRequestExtensions

    Methods

    | Edit this page View Source

    Append(GenerateContentRequest, GeminiContent)

    Declaration
    public static GenerateContentRequest Append(this GenerateContentRequest req, GeminiContent content)
    Parameters
    Type Name Description
    GenerateContentRequest req
    GeminiContent content
    Returns
    Type Description
    GenerateContentRequest
    | Edit this page View Source

    SetFunctionSchema(GenerateContentRequest, JsonSchema)

    Declaration
    public static GenerateContentRequest SetFunctionSchema(this GenerateContentRequest req, JsonSchema jsonSchema)
    Parameters
    Type Name Description
    GenerateContentRequest req
    JsonSchema jsonSchema
    Returns
    Type Description
    GenerateContentRequest
    | Edit this page View Source

    SetFunctionSchema(GenerateContentRequest, Type)

    Declaration
    public static GenerateContentRequest SetFunctionSchema(this GenerateContentRequest req, Type type)
    Parameters
    Type Name Description
    GenerateContentRequest req
    Type type
    Returns
    Type Description
    GenerateContentRequest
    | Edit this page View Source

    SetPrompt(GenerateContentRequest, ImagePrompt)

    Declaration
    public static GenerateContentRequest SetPrompt(this GenerateContentRequest req, ImagePrompt prompt)
    Parameters
    Type Name Description
    GenerateContentRequest req
    ImagePrompt prompt
    Returns
    Type Description
    GenerateContentRequest
    | Edit this page View Source

    SetTools(GenerateContentRequest, Tool[], ToolChoice)

    Declaration
    public static GenerateContentRequest SetTools(this GenerateContentRequest req, Tool[] tools, ToolChoice toolChoice = null)
    Parameters
    Type Name Description
    GenerateContentRequest req
    Tool[] tools
    ToolChoice toolChoice
    Returns
    Type Description
    GenerateContentRequest
    | Edit this page View Source

    SetVoice(GenerateContentRequest, string)

    Declaration
    public static GenerateContentRequest SetVoice(this GenerateContentRequest req, string voiceId)
    Parameters
    Type Name Description
    GenerateContentRequest req
    string voiceId
    Returns
    Type Description
    GenerateContentRequest
    | Edit this page View Source

    SetVoiceInput(GenerateContentRequest, AudioClip)

    Add STT (Speech to Text) audio prompt. The maximum request size is 20 MB, which includes text prompts, system instructions, and files provided inline.

    If your file's size will make the total request size exceed 20 MB, then use the Files API to upload an audio file for use in the request. If you're using an audio sample multiple times, it's more efficient to upload an audio file.

    Declaration
    public static GenerateContentRequest SetVoiceInput(this GenerateContentRequest req, AudioClip clip)
    Parameters
    Type Name Description
    GenerateContentRequest req
    AudioClip clip
    Returns
    Type Description
    GenerateContentRequest
    • Edit this page
    • View Source
    In this article
    Back to top AI DevKit Documentation