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

Function summaryForGoal

plugins/plugin-eval/src/core/workflow-guide.js:269–309  ·  view source on GitHub ↗
(goal, target, status)

Source from the content-addressed store, hash-verified

267}
268
269function summaryForGoal(goal, target, status) {
270 const label = targetLabel(target);
271
272 if (goal === "analysis") {
273 if (status.hasUsageLog) {
274 return `Use this when you want the full report plus measured usage follow-through for this ${label}.`;
275 }
276 if (status.hasBenchmarkConfig) {
277 return `Use this when you want the full report and already have benchmark scaffolding ready for this ${label}.`;
278 }
279 return `Use this when you want the full report and starter benchmark setup for this ${label} in one guided path.`;
280 }
281
282 if (goal === "evaluate") {
283 return `Start here when you want the overall report for a ${label}, including structure, budgets, and code checks.`;
284 }
285
286 if (goal === "budget") {
287 return `Use this when the main question is why the ${label} feels expensive before you collect any live measurements.`;
288 }
289
290 if (goal === "measure") {
291 return status.hasUsageLog
292 ? `You already have a local usage log, so the next step is to fold those real measurements back into the report.`
293 : `Use this when you want real token usage instead of only the static estimate.`;
294 }
295
296 if (goal === "benchmark") {
297 return `Use this when you want starter scenarios and a repeatable real-Codex benchmark run for this ${label}.`;
298 }
299
300 if (status.hasUsageLog) {
301 return "You already collected benchmark output, so the best next step is to analyze the real usage and decide what to improve.";
302 }
303
304 if (status.hasBenchmarkConfig) {
305 return "You already have a benchmark config, so the next step is to run it.";
306 }
307
308 return `If you are new to plugin-eval, start with the overall evaluation report for this ${label}.`;
309}
310
311function inferRecommendedGoal(status, explicitGoal) {
312 if (explicitGoal && explicitGoal !== "next") {

Callers 1

createEntryFunction · 0.85

Calls 1

targetLabelFunction · 0.70

Tested by

no test coverage detected