Skip to content

armgit / laya

Public Imported from GitHub
0

Non-autoregressive System 1 decision engine. Typed choice, score and yes/no decisions over any text in a single forward pass, in 100+ languages, with a router that picks the right checkpoint per request.

test(sdk): pin the ungated answer shape the client gets by default

Aashish620f7d9232cd
diff --git a/sdk/typescript/test/types.ts b/sdk/typescript/test/types.ts
index 9864d1f1..b25ae5b1 100644
--- a/sdk/typescript/test/types.ts
+++ b/sdk/typescript/test/types.ts
@@ -31,6 +31,9 @@ const gatedAnswer: ChoiceAnswer = { type: 'choice', confidence: 0.5, answer_conf
abstention_threshold: 0.8 };
// @ts-expect-error The gate writes `true` or writes nothing, so a cleared answer has no flag at all.
const clearedAnswer: ChoiceAnswer = { ...gatedAnswer, low_confidence: false };
+// An ungated call is the ordinary answer shape: no flag, no gate state, no threshold echo.
+const ungatedReport: ChoiceAnswer = { type: 'choice', confidence: 0.5, answer_confidence: 0.42,
+ choice: 'a', probabilities: { a: 0.42 } };
// @ts-expect-error An answer must carry the calibrated confidence it was gated on.
const uncalibratedAnswer: ChoiceAnswer = { type: 'choice', confidence: 0.5, choice: 'a',
probabilities: { a: 0.5 } };