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
Merge pull request #798 from aashish254/feat-integrations-routing-controls
Nandakishor3b0ea92d4f85
diff --cc laya/integrations/crewai.pyindex e8fe02d8,8f712b75..057349d4--- a/laya/integrations/crewai.py+++ b/laya/integrations/crewai.py@@@ -55,8 -55,8 +55,9 @@@ class LayaTaskGuardError(ValueError)# `predict` call and the same laya-serve request body, and three copies of the rule is how two of# them came to forward only `model`.from ._controls import budget_kwargs as _budget_kwargs, hook_kwargs as _hook_kwargs # noqa: E402+ from ._controls import decision_kwargs as _decision_kwargs # noqa: E402from ._controls import predict_kwargs as _predict_kwargs, reject_remote_hooks as _reject_remote_hooks # noqa: E402+from ..confidence import _gate_confidence # noqa: E402# One class for every integration, so `except LayaLowConfidenceError` catches all of them.from ._errors import LayaLowConfidenceError # noqa: E402diff --cc laya/integrations/langchain.pyindex 78b20e16,868b19ca..77d93b7a--- a/laya/integrations/langchain.py+++ b/laya/integrations/langchain.py@@@ -29,8 -29,8 +29,9 @@@ except ImportError# The per-call control rules live in `._controls` because the CrewAI and LlamaIndex wrappers end# at the same `predict` call and the same laya-serve body; keeping the rule in three places is how# two of them ended up forwarding only `model`.+from ..confidence import _gate_confidencefrom ._controls import budget_kwargs as _budget_kwargs, hook_kwargs as _hook_kwargs+ from ._controls import decision_kwargs as _decision_kwargsfrom ._controls import predict_kwargs as _predict_kwargsfrom ._controls import reject_remote_hooks as _reject_remote_hooks