Math Tools
Math-related tools exposed as an UnfoldingTool.
When used as a tool group, exposes a single "math" UnfoldingTool. When the LLM invokes this tool, it reveals the individual math operations (add, subtract, multiply, divide, mean, min, max, floor, ceiling, round).
Can be used in two ways:
As a tool group - register with the platform for automatic resolution
Directly - use unfoldingTool or innerTools with PromptRunner
Example usage:
// As a tool group (exposes single UnfoldingTool)
val toolGroup: ToolGroup = MathTools()
// Direct use of the UnfoldingTool
ai.withTool(MathTools().unfoldingTool)
// Direct use of inner tools (bypasses UnfoldingTool)
ai.withTools(MathTools().innerTools)Content copied to clipboard
Properties
Link copied to clipboard
Link copied to clipboard
The inner tools - individual math operations. These are the tools that get revealed when the UnfoldingTool is invoked.
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
The UnfoldingTool facade that wraps all math operations.