Class CalcLogTool
A built-in tool for logarithmic and exponential calculations.
Supports natural logarithm, base-10 logarithm, and exponential function.
public sealed class CalcLogTool : IBuiltInTool, ITool, IToolMetadata
- Inheritance
-
CalcLogTool
- Implements
- Inherited Members
Examples
var tool = new CalcLogTool();
registry.Register(tool);
// Agent can now calculate: ln(100), log10(1000), e^2, etc.
Properties
- Description
Gets a concise description of what the tool does.
- InputSchema
Gets the JSON Schema defining the expected input arguments.
- Name
Gets the stable, unique identifier for this tool.
Methods
- InvokeAsync(string, CancellationToken)
Executes the tool with the specified JSON arguments.