Interface IFunctionManager
- Namespace
- Glitch9.AIDevKit.Components
public interface IFunctionManager
- Extension Methods
Properties
Functions
List<FunctionReference> Functions { get; }
Property Value
- List<FunctionReference>
IsEmpty
List of functions registered in this manager.
bool IsEmpty { get; }
Property Value
- bool
Methods
ExecuteFunction(string, string)
Invokes a function by name with JSON-serialized arguments.
JToken ExecuteFunction(string methodName, string jsonArguments)
Parameters
methodNamestringjsonArgumentsstring
Returns
- JToken
HasFunction(string)
bool HasFunction(string methodName)
Parameters
methodNamestring
Returns
- bool
OnReceiveToolCalls(ToolCall[])
Handles a tool call and invokes the corresponding function.
void OnReceiveToolCalls(ToolCall[] toolCalls)
Parameters
toolCallsToolCall[]