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.

Merge pull request #644 from Swatantra-66/feat/ts-min-confidence

Nandakishor380de5833cdd
diff --cc laya-ts/src/agent.ts
index ce6af461,64c96022..647c5c0c
--- a/laya-ts/src/agent.ts
+++ b/laya-ts/src/agent.ts
@@@ -136,11 -133,10 +141,15 @@@ export interface PredictOptions
onPredictStart?: PredictHook;
onPredictEnd?: PredictHook;
hooksRaise?: boolean;
+ /** Per-call token-budget overrides; null = agent config. A start hook may also set them. */
+ maxLen?: number | null;
+ headMaxLen?: number | null;
+ /** predictBatch: cap on states per shared forward pass; null sends them all in one pass. */
+ batchSize?: number | null;
+ /** Minimum confidence threshold in [0.0, 1.0]. Low confidence answers get `low_confidence: true`. */
+ minConfidence?: number | null;
+ /** Python parity alias for minConfidence. */
+ min_confidence?: number | null;
}
function qidStr(qid: string): string {