AI Dev Kit
Search Results for

    Show / Hide Table of Contents

    Class Tool

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

    Constructors

    Tool()

    Declaration
    public Tool()

    Tool(params FunctionDeclaration[])

    Declaration
    public Tool(params FunctionDeclaration[] functionDeclarations)
    Parameters
    Type Name Description
    FunctionDeclaration[] functionDeclarations

    Tool(params IFunctionDelegate[])

    Declaration
    public Tool(params IFunctionDelegate[] functionDelegates)
    Parameters
    Type Name Description
    IFunctionDelegate[] functionDelegates

    Tool(IEnumerable<FunctionDeclaration>)

    Declaration
    public Tool(IEnumerable<FunctionDeclaration> selectMany)
    Parameters
    Type Name Description
    IEnumerable<FunctionDeclaration> selectMany

    Tool(params string[])

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

    Properties

    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
    public List<FunctionDeclaration> FunctionDeclarations { get; set; }
    Property Value
    Type Description
    List<FunctionDeclaration>
    In this article
    Back to top Generated by DocFX