Search Results for

    Show / Hide Table of Contents

    Class GeminiTool

    Inheritance
    object
    GeminiTool
    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 GeminiTool

    Constructors

    | Edit this page View Source

    GeminiTool()

    Declaration
    [JsonConstructor]
    public GeminiTool()
    | Edit this page View Source

    GeminiTool(params Function[])

    Declaration
    public GeminiTool(params Function[] functionDeclarations)
    Parameters
    Type Name Description
    Function[] functionDeclarations
    | Edit this page View Source

    GeminiTool(IEnumerable<Function>)

    Declaration
    public GeminiTool(IEnumerable<Function> selectMany)
    Parameters
    Type Name Description
    IEnumerable<Function> selectMany
    | Edit this page View Source

    GeminiTool(params string[])

    Declaration
    public GeminiTool(params string[] toolNames)
    Parameters
    Type Name Description
    string[] toolNames

    Properties

    | Edit this page View Source

    FunctionDeclarations

    Optional.

    A list of FunctionDeclarations available to the model that can be used for function calling.

    The model or system does not execute the function. Instead, the defined function may be returned as a [FunctionCall][content.part.function_call] with arguments to the client side for execution.

    The model may decide to call a subset of these functions by populating[FunctionCall][content.part.function_call] in the response. The next conversation turn may contain a [FunctionResponse][content.part.function_response] with the [content.role] "function" generation context for the next model turn.

    Declaration
    [JsonProperty("function_declarations")]
    public List<Function> FunctionDeclarations { get; set; }
    Property Value
    Type Description
    List<Function>

    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