Class CalcTrigTool
A built-in tool for trigonometric calculations.
Supports sine, cosine, and tangent with angle input in degrees.
public sealed class CalcTrigTool : IBuiltInTool, ITool, IToolMetadata
- Inheritance
-
CalcTrigTool
- Implements
- Inherited Members
Examples
var tool = new CalcTrigTool();
registry.Register(tool);
// Agent can now calculate: sin(45), cos(60), tan(30), 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.