Calculator tool Node
Overview
The Calculator Tool Node provides mathematical calculation capabilities to your flow, particularly useful in agent-based tasks. It enables real-time evaluation of mathematical expressions through a standardized tool interface that can be used by agent nodes.
Usage cost: 0 credit
Configuration
This node has no configurable settings as it provides a standard calculator tool interface.
Output Ports
calculator_tool
(Tool): A tool object that can:Evaluate mathematical expressions
Handle basic and complex calculations
Provide formatted results
Process numeric operations safely
Best Practices
Expression Formatting
Use clear mathematical syntax
Ensure proper operator spacing
Group complex expressions with parentheses
Validate input expressions
Error Handling
Plan for division by zero
Handle invalid expressions gracefully
Validate numeric inputs
Check for calculation overflow
Common Issues
Syntax errors in expressions
Floating-point precision errors
Invalid mathematical operations
Expression parsing failures
Invalid function calls
Last updated