Waterflai
  • Welcome to Waterflai
  • Getting Started
    • Concepts
    • Quickstart
  • Providers
    • Providers Overview
    • Providers setup
    • AI models
    • Choose the right models
  • Knowledge
    • Knowledge Overview
    • Knowledge connectors
    • Knowledge collections
  • Studio
    • Studio Overview
    • Studio Builders
      • Light Builder
      • Dream Builder
      • Workflow Builder
      • Flow components (nodes)
        • Input Node
        • Output Node
        • LLM model Node
        • Multimodal LLM Node
        • Dall-E 2 (image generation) Node
        • Dall-E 3 (image generation) Node
        • Sora video generation Node
        • Text-to-Speech (TTS) Node
        • Speech-to-Text (STT) Node
        • OCR Node
        • Agent Node
        • Reranker Node
        • Knowledge retrieval Node
        • Vector store insert Node
        • Vector store record delete Node
        • Gitbook loader
        • Notion Database Node
        • Figma Node
        • Webpage scraper Node
        • Sitemap Scraper Node
        • API Request Node
        • Document metadata extraction Node
        • Document metadata update Node
        • Character splitter Node
        • HTML splitter Node
        • Markdown Splitter
        • Calculator tool Node
        • Text as tool Node
        • Knowledge retrieval tool Node
        • Conditional Node
        • Iteration loop Node
      • Testing and Debugging
    • Publishing
    • Integration with API
    • Embedding in website
  • Analytics
    • Analytics Overview
    • Dashboards
    • Logs
  • Administration
    • Organization users
    • Workspace
    • Security and permissions
  • Troubleshooting
    • Support
Powered by GitBook
On this page
  • Overview
  • Configuration
  • Best Practices
  • Common Issues
  1. Studio
  2. Studio Builders
  3. Flow components (nodes)

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

  1. Expression Formatting

    • Use clear mathematical syntax

    • Ensure proper operator spacing

    • Group complex expressions with parentheses

    • Validate input expressions

  2. 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

PreviousMarkdown SplitterNextText as tool Node

Last updated 3 months ago