mirror of
https://github.com/SikongJueluo/pi-extensions.git
synced 2026-10-05 11:52:55 +08:00
feat(ai-judge): prompt v3 few-shot calibration and corpus replay harness (PIEXTENSIO-18)
This commit is contained in:
@@ -26,7 +26,9 @@ describe("buildJudgeContext", () => {
|
||||
fullCommand: `cd /repo && ${command}`,
|
||||
triggeringUnit: command,
|
||||
});
|
||||
const message = context.messages[0];
|
||||
// The real evidence message is the last user message, after the
|
||||
// few-shot examples (prompt v3).
|
||||
const message = context.messages.at(-1);
|
||||
expect(message?.role).toBe("user");
|
||||
const text =
|
||||
message?.role === "user" && Array.isArray(message.content)
|
||||
|
||||
Reference in New Issue
Block a user