Interface IFunctionManager
Assembly: .dll
Syntax
public interface IFunctionManager
Properties
IsEmpty
List of functions registered in this manager.
Declaration
Property Value
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
GetFunctionDeclarations()
Retrieves function declarations for AI function calling.
Declaration
FunctionDeclaration[] GetFunctionDeclarations()
Returns
HasFunction(string)
Declaration
bool HasFunction(string methodName)
Parameters
Type |
Name |
Description |
string |
methodName |
|
Returns
Handles a tool call and invokes the corresponding function.
Declaration
void OnReceiveToolCalls(ToolCall[] toolCalls)
Parameters
Type |
Name |
Description |
ToolCall[] |
toolCalls |
|