Class FinancialInvestmentTool
A built-in tool for investment analysis calculations.
Computes Net Present Value (NPV), Internal Rate of Return (IRR), and Return on Investment (ROI).
public sealed class FinancialInvestmentTool : IBuiltInTool, ITool, IToolMetadata
- Inheritance
-
FinancialInvestmentTool
- Implements
- Inherited Members
Examples
var tool = new FinancialInvestmentTool();
var result = await tool.InvokeAsync(@"{""cashFlows"":[-1000,300,400,500],""rate"":0.1,""metric"":""npv""}");
Constructors
- FinancialInvestmentTool()
Initializes a new instance of the FinancialInvestmentTool class.
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.