Class FunctionManager
Manages and invokes serialized functions with metadata for AI function calling.
Inheritance
object
FunctionManager
Assembly: .dll
Syntax
public class FunctionManager : MonoBehaviour, IFunctionManager
Properties
Functions
Declaration
public List<FunctionReference> Functions { get; }
Property Value
IsEmpty
List of functions registered in this manager.
Declaration
public bool IsEmpty { get; }
Property Value
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
HasFunction(string)
Declaration
public bool HasFunction(string methodName)
Parameters
Type |
Name |
Description |
string |
methodName |
|
Returns
Handles a tool call and invokes the corresponding function.
Declaration
public void OnReceiveToolCalls(ToolCall[] toolCalls)
Parameters
Type |
Name |
Description |
ToolCall[] |
toolCalls |
|
Implements
Extension Methods