AI Dev Kit
Search Results for

    Show / Hide Table of Contents

    Class FunctionManager

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

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

    Properties

    Functions

    List of functions registered in this manager.

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

    Methods

    CallFunction(string, string)

    Dynamically calls a registered method by name with JSON-serialized arguments.

    Declaration
    public void CallFunction(string methodName, string jsonArguments)
    Parameters
    Type Name Description
    string methodName

    The name of the method to invoke.

    string jsonArguments

    The arguments as a JSON string.

    GetFunctions()

    Converts the registered functions into FunctionDeclaration objects with JSON schema info.

    Declaration
    public FunctionDeclaration[] GetFunctions()
    Returns
    Type Description
    FunctionDeclaration[]

    Array of FunctionDeclaration containing metadata and parameters.

    Extension Methods

    FunctionExtensions.GetFunctionLibrary(FunctionManager)
    In this article
    Back to top Generated by DocFX