Table of Contents

Interface IFunctionManager

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

methodName string
jsonArguments string

Returns

JToken

HasFunction(string)

bool HasFunction(string methodName)

Parameters

methodName string

Returns

bool

OnReceiveToolCalls(ToolCall[])

Handles a tool call and invokes the corresponding function.

void OnReceiveToolCalls(ToolCall[] toolCalls)

Parameters

toolCalls ToolCall[]