Table of Contents

Class CustomToolCallManager

public class CustomToolCallManager : ToolCallManager<CustomToolCall, CustomToolOutput>, ICustomToolCallExecutor, IToolCallExecutor<CustomToolCall, CustomToolOutput>
Inheritance
object
CustomToolCallManager
Implements
Inherited Members

Properties

IsEmpty

public bool IsEmpty { get; }

Property Value

bool

Tools

public List<CustomToolDescriptor> Tools { get; }

Property Value

List<CustomToolDescriptor>

Methods

CanExecute(string)

public bool CanExecute(string toolName)

Parameters

toolName string

Returns

bool

ExecuteAsync(CustomToolCall, CancellationToken)

public override UniTask<CustomToolOutput> ExecuteAsync(CustomToolCall toolCall, CancellationToken ct)

Parameters

toolCall CustomToolCall
ct CancellationToken

Returns

UniTask<CustomToolOutput>

TryExecuteTool(string, string, out JToken)

Executes a registered custom tool by name and raw input. Returns true if the tool name exists, regardless of execution success.

public bool TryExecuteTool(string toolName, string input, out JToken toolResult)

Parameters

toolName string
input string
toolResult JToken

Returns

bool