RAiN — Rivium AI Network
Back to Help

Calculator

Evaluate a basic arithmetic expression, e.g. '1500 * 12 * 0.8'.

What it does

Evaluates arithmetic. Small, and more important than it looks: models are unreliable at mental arithmetic and confident about it, so anything with money in it should go through this rather than through the model's head.

What you need

Nothing. This one runs on RAiN — no key, no account, no per-use cost from the provider.

Connecting it

Nothing to connect. It is available to every project already — tick it on an agent, or choose it in an Action step.

Using it in a step

An Action step runs one tool with the arguments you type, exactly as written, with no model involved — so it costs nothing per run and behaves the same every time. Add one from the canvas toolbar, choose Calculator, and fill in:

Field Required What goes in it
expression yes Arithmetic only, e.g. 14 * 12500 * 1.075.

Values can carry results forward: {{previous}} is the step before, and {{row:column}} is a column from the row this run is about when the trigger fans out.

Press Try it to run the step on its own before committing to a whole sequence.

Using it with an agent

Tick Calculator on any agent that should be able to call it, and the agent decides when to. Use an agent when the judgement matters and an Action step when the certainty does.

A worked example

A quote agent totals 14 items at ₦12,500 plus 7.5% VAT and gets the same answer every time.

When it goes wrong

It only does arithmetic. No currency conversion, no dates, no lookups.

See also