reflectorPrompt

fun reflectorPrompt(groundTruthLabel: String, usedPlaybook: ACEPlaybook, isSolved: Boolean, trajectory: Prompt): Prompt

Builds the reflector prompt that diagnoses a single agent trajectory into ACEOptimizer.TrajectoryInsights.

Parameters

groundTruthLabel

Expected answer for the task, used to identify the gap.

usedPlaybook

Playbook in effect during the run, rendered into the prompt so the reflector can tag its bullets.

isSolved

Whether the trajectory produced a correct result.

trajectory

The captured execution trajectory to analyze.