Class CustomToolCallManager
public class CustomToolCallManager : ToolCallManager<CustomToolCall, CustomToolOutput>, ICustomToolCallExecutor, IToolCallExecutor<CustomToolCall, CustomToolOutput>
- Inheritance
-
objectCustomToolCallManager
- 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
toolNamestring
Returns
- bool
ExecuteAsync(CustomToolCall, CancellationToken)
public override UniTask<CustomToolOutput> ExecuteAsync(CustomToolCall toolCall, CancellationToken ct)
Parameters
toolCallCustomToolCallctCancellationToken
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
toolNamestringinputstringtoolResultJToken
Returns
- bool