Handbook
Safe formula evaluation
formula_eval_safe (see src/forge_lcdl/math_safe.py) evaluates restricted arithmetic expressions for cookbook-style transforms—not a replacement for a full CAS.
Updated
- Prefer deterministic parsing over passing arbitrary strings to
eval. - Combine with schema validation on task outputs so LLM-generated numbers are checked before use downstream.