iwfm.diagnostics.llm_supervisorΒΆ
LLM Supervisor for IWFM/PEST calibration.
Runs an outer loop around the pypest optimizer. After each epoch (a short optimizer run with noptmax iterations), the supervisor:
Assembles a diagnostic bundle from HDF5 diagnostics + PEST state
Sends it to Claude for analysis
Receives structured decisions (fix/unfix params, adjust bounds, etc.)
Writes a modified PST and launches the next epoch
Usage:
from iwfm.diagnostics.llm_supervisor import LLMSupervisor
supervisor = LLMSupervisor(
pest_dir='/path/to/pest/run',
pst_file='model.pst',
max_epochs=5,
noptmax_per_epoch=3,
)
result = supervisor.run()
Classes
|
Result from one optimizer epoch. |
|
Outer-loop LLM supervisor for PEST calibration. |
|
Structured decision from the LLM supervisor. |
|
Result from the full supervisor run. |