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.
Python calibrationclassificationdecision-modelhuggingfacejevmodernbertmultilingualnlppythonpytorchroutingtyped-decisionszero-shot
docs(hooks): a non-finite hooks_timeout is rejected too
Aashish5a33e0a2879c
diff --git a/docs/hooks/errors.md b/docs/hooks/errors.mdindex 7ec1e57a..9a72b857 100644--- a/docs/hooks/errors.md+++ b/docs/hooks/errors.md@@ -144,9 +144,12 @@ laya.load("convaiinnovations/laya", on_predict_end=metrics, hooks_timeout=2.0)It can be set per instance or overridden per call on every public per-call surface of the threeagents: `Agent.predict_batch`, `Agent.system_one`, `Agent.predict_long`, `Router.route`,`Router.route_batch`, `Router.predict`, `Router.predict_batch`, `Router.predict_long`,-`ONNXAgent.system_one`, `ONNXAgent.predict_batch` and `ONNXAgent.predict_long`. The value must-be positive; `0` or a negative number raises `ValueError` at the point it is set, rather than-racing on a zero-length `join`.+`ONNXAgent.system_one`, `ONNXAgent.predict_batch` and `ONNXAgent.predict_long`. The value must be a+positive finite number; `0`, a negative number, `inf` and `nan` each raise `ValueError` at the point+it is set, rather than racing on a zero-length `join` -- passed straight to the underlying thread+`join`, `nan` would raise `ValueError` and an infinite value `OverflowError`, so neither bounds the+wait the way a limit is meant to. `None` is how to ask for no limit, not an arbitrarily large+number.A timed hook runs on a worker thread in a copy of the caller's `contextvars` context, so arequest id or tracing span set by the caller is visible to the hook.