@pushpalsdev/cli 1.1.42 → 1.1.43
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -7773,20 +7773,29 @@ ${JSON.stringify(input.messages ?? [])}`),
|
|
|
7773
7773
|
return;
|
|
7774
7774
|
}
|
|
7775
7775
|
this.setPhase("scoring");
|
|
7776
|
-
|
|
7777
|
-
|
|
7778
|
-
|
|
7779
|
-
|
|
7780
|
-
|
|
7781
|
-
|
|
7782
|
-
|
|
7783
|
-
|
|
7784
|
-
|
|
7785
|
-
|
|
7786
|
-
|
|
7787
|
-
|
|
7788
|
-
|
|
7789
|
-
|
|
7776
|
+
let scoringJson = { scores: [] };
|
|
7777
|
+
try {
|
|
7778
|
+
const scoringPhase = await this.llmPhase("scoring", runId, snapshot.snapshot_id, {
|
|
7779
|
+
system: SCORING_SYSTEM_PROMPT,
|
|
7780
|
+
json: true,
|
|
7781
|
+
maxTokens: 1400,
|
|
7782
|
+
temperature: 0.1,
|
|
7783
|
+
messages: [
|
|
7784
|
+
{
|
|
7785
|
+
role: "user",
|
|
7786
|
+
content: JSON.stringify({ candidates: normalizedCandidates, top_k: this.cfg.topK })
|
|
7787
|
+
}
|
|
7788
|
+
]
|
|
7789
|
+
});
|
|
7790
|
+
llmCalls.push(scoringPhase.llmCall);
|
|
7791
|
+
scoringJson = scoringPhase.json;
|
|
7792
|
+
} catch (error) {
|
|
7793
|
+
if (error instanceof Error && error.message === "autonomy scoring phase timeout") {
|
|
7794
|
+
console.warn(`[RemoteBuddyAutonomousEngine] tick ${runId}: scoring timed out; continuing with deterministic candidate scoring.`);
|
|
7795
|
+
} else {
|
|
7796
|
+
throw error;
|
|
7797
|
+
}
|
|
7798
|
+
}
|
|
7790
7799
|
if (this.isSnapshotExpired(snapshot) || Date.now() > cycleDeadline) {
|
|
7791
7800
|
this.setPhase("record_snapshot_expired");
|
|
7792
7801
|
await this.recordSnapshotExpired(runId, snapshot.snapshot_id, llmCalls, candidatesPayload);
|