INNER CODE UNIT · JavaScript
buildReaderPrompt
meursyphus/flitter · dev/llm-playground/app.js:16
function buildReaderPrompt(testCase) {
const recommendedCharts = testCase.recommendedCharts.length
? `Preferred chart families: ${testCase.recommendedCharts.join(", ")}.`
: "Preferred chart families: none. Treat this as a likely escape-hatch case.";
return [
"You are the first-read implementation agent.",
"Use only the linked Flitter LLM pack documents below.",
"",
"Pack links:",
...testCase.pack.map((item) => `- ${item}`),
"",
"Task prompt:",
testCase.prompt,
"",
recommendedCharts,
"",
"Return exactly these sections:",