AI Dev Kit
Search Results for

    Show / Hide Table of Contents

    Interface IFunctionManager

    Namespace: Glitch9.AIDevKit.Components
    Assembly: .dll
    Syntax
    public interface IFunctionManager

    Properties

    IsEmpty

    List of functions registered in this manager.

    Declaration
    bool IsEmpty { get; }
    Property Value
    Type Description
    bool

    Methods

    ExecuteFunction(string, string)

    Invokes a function by name with JSON-serialized arguments.

    Declaration
    JToken ExecuteFunction(string methodName, string jsonArguments)
    Parameters
    Type Name Description
    string methodName
    string jsonArguments
    Returns
    Type Description
    JToken

    GetFunctionDeclarations()

    Retrieves function declarations for AI function calling.

    Declaration
    FunctionDeclaration[] GetFunctionDeclarations()
    Returns
    Type Description
    FunctionDeclaration[]

    HasFunction(string)

    Declaration
    bool HasFunction(string methodName)
    Parameters
    Type Name Description
    string methodName
    Returns
    Type Description
    bool

    OnReceiveToolCalls(ToolCall[])

    Handles a tool call and invokes the corresponding function.

    Declaration
    void OnReceiveToolCalls(ToolCall[] toolCalls)
    Parameters
    Type Name Description
    ToolCall[] toolCalls
    In this article
    Back to top Generated by DocFX