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

Function chatPromptForGoal

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

Source from the content-addressed store, hash-verified

27}
28
29function chatPromptForGoal(goal, target) {
30 const label = targetLabel(target);
31 if (goal === "analysis") {
32 return `Give me a full analysis of this ${label}, including benchmark setup.`;
33 }
34 if (goal === "evaluate") {
35 return `Evaluate this ${label}.`;
36 }
37 if (goal === "budget") {
38 return `Explain the token budget for this ${label}.`;
39 }
40 if (goal === "measure") {
41 return `Measure the real token usage of this ${label}.`;
42 }
43 if (goal === "benchmark") {
44 return `Help me benchmark this ${label}.`;
45 }
46 return "What should I run next?";
47}
48
49function requestSignal(phrases, reason) {
50 return {

Callers 1

createEntryFunction · 0.85

Calls 1

targetLabelFunction · 0.70

Tested by

no test coverage detected