On this page
Plain SDK
Call a complete calculator definition with a checked scenario. The selected definition infers the report.
For input from users, parse exact decimal text with native Result before constructing the scenario.
createClient() owns a reusable lazy lifetime. Call client.calculate(definition, input) or client.calculateSafe(definition, input) and await client.dispose() or use await using client = createClient(). Closing interrupts pending work and waits for finalisers. One-shot helpers clean up before settling.
See Safe SDK and Effect SDK.