Fluxival

src/lib/energy-engine

Engine layers

LLM → optimization engine → hard constraints → safety layer → controller. The LLM never directly controls physical assets.

  1. 1. llm.reason
  2. 2. forecasting.buildForecastBundle
  3. 3. optimization.optimize
  4. 4. safety.applyHardConstraints
  5. 5. safety.evaluateSafety
  6. 6. safety.clearForControl
  7. 7. control.dispatchCommands

LLM tools (read/propose)

Deliberately absent tools

These names do not exist in the catalogue.

write_setpoint · modbus_write · ocpp_remote_start · bacnet_write_property · relay_close

Example · advice mode

Pipeline on a sample cold store

Illustrative. Does not actuate hardware. Commands stay empty while safety does not allow in advice mode.