Expand description
mathsolver — BYOK AI math solver with independent verification.
An answer is only verified: true when the model’s verification
expression (pure arithmetic) is evaluated locally by this crate and
matches the answer numerically. No model output is ever executed as code.
Structs§
- Math
Solver - BYOK client for an OpenAI-compatible endpoint.
- Solve
Options - Solve
Result - Solver
Error
Constants§
Functions§
- default_
transport - eval_
expression - Evaluate a pure arithmetic expression string to a number (no variables).
- eval_
expression_ with - Evaluate with variable bindings from let-statements.
- run_
check - Substitute {x} with the computed answer; passes when value ~ 0.
- run_
program - Execute a model-generated JS-dialect program (let / assignment / result).