AI DevKit
Search Results for

    Show / Hide Table of Contents

    Class FunctionManager

    Manages and invokes serialized functions with metadata for AI function calling.

    Inheritance
    object
    FunctionManager
    Implements
    IFunctionManager
    Namespace: Glitch9.AIDevKit.Components
    Assembly: .dll
    Syntax
    public class FunctionManager : MonoBehaviour, IFunctionManager

    Properties

    Functions

    Declaration
    public List<FunctionReference> Functions { get; }
    Property Value
    Type Description
    List<FunctionReference>

    IsEmpty

    List of functions registered in this manager.

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

    Methods

    ExecuteFunction(string, string)

    Invokes a function by name with JSON-serialized arguments.

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

    HasFunction(string)

    Declaration
    public 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
    public void OnReceiveToolCalls(ToolCall[] toolCalls)
    Parameters
    Type Name Description
    ToolCall[] toolCalls

    Implements

    IFunctionManager

    Extension Methods

    ComponentExtensions.GetFunctionDeclarations(IFunctionManager)
    ComponentExtensions.GetFunctions(IFunctionManager)
    In this article
    Back to top Generated by DocFX