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

Function inferRecommendedGoal

plugins/plugin-eval/src/core/workflow-guide.js:311–325  ·  view source on GitHub ↗
(status, explicitGoal)

Source from the content-addressed store, hash-verified

309}
310
311function inferRecommendedGoal(status, explicitGoal) {
312 if (explicitGoal && explicitGoal !== "next") {
313 return explicitGoal;
314 }
315
316 if (status.hasUsageLog) {
317 return "measure";
318 }
319
320 if (status.hasBenchmarkConfig) {
321 return "benchmark";
322 }
323
324 return "evaluate";
325}
326
327function createEntry(goal, target, status) {
328 const commandTargetPath = formatCommandPath(target.path);

Callers 1

buildWorkflowGuideFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected