MCPcopy Create free account
hub / github.com/openai/plugins / createComparisonNextAction

Function createComparisonNextAction

plugins/plugin-eval/src/core/presentation.js:181–191  ·  view source on GitHub ↗
(diff)

Source from the content-addressed store, hash-verified

179}
180
181export function createComparisonNextAction(diff) {
182 const chatPrompt = diff.newFailures.length > 0 ? "What should I fix first?" : "What should I run next?";
183 return {
184 label: diff.newFailures.length > 0 ? "Address the new failures first" : "Continue from the improved baseline",
185 why: diff.newFailures.length > 0
186 ? "New failures block trust in the comparison, even if the score improved elsewhere."
187 : "The comparison is trending in the right direction, so the next move is to keep the workflow tight and repeatable.",
188 command: buildStartCommand(diff.target, chatPrompt),
189 chatPrompt,
190 };
191}

Callers 2

compareResultsFunction · 0.90
ensureComparisonPayloadFunction · 0.90

Calls 1

buildStartCommandFunction · 0.85

Tested by

no test coverage detected