(goal, target)
| 27 | } |
| 28 | |
| 29 | function 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 | |
| 49 | function requestSignal(phrases, reason) { |
| 50 | return { |
no test coverage detected