proposeInstruction

suspend fun proposeInstruction(module: OptimizableModule, currentInstruction: String, failures: List<GEPAReflectionProposer.FailureFeedback>): String

Proposes a new instruction for the given module based on failure analysis.

Return

The proposed new instruction text.

Parameters

module

The module whose instruction is being improved.

currentInstruction

The current instruction text.

failures

Failed execution traces with expected outputs.