API Reference
Interface
ITool
Represents a tool that can be called by the model.
Usage
This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.
Accepted by parameters
- Method ToolRegistry.Register
- Method ToolRegistry.Register
- Method ToolRegistry.TryGet
Methods
public abstract Task<String> InvokeAsync(JsonObject arguments, CancellationToken cancellationToken) #Returns:
Task<String>Executes the tool with the provided arguments.
Parameters
- arguments IntelligenceX.Json.JsonObject
- Parsed tool arguments (may be null).
- cancellationToken System.Threading.CancellationToken
- Cancellation token.
Returns
Tool output text.
Properties
public abstract ToolDefinition Definition { get; } #Tool definition metadata.