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 #798 from aashish254/feat-integrations-routing-controls

Nandakishor3b0ea92d4f85
diff --cc laya/integrations/crewai.py
index 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: E402
from ._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: E402
diff --cc laya/integrations/langchain.py
index 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_confidence
from ._controls import budget_kwargs as _budget_kwargs, hook_kwargs as _hook_kwargs
+ from ._controls import decision_kwargs as _decision_kwargs
from ._controls import predict_kwargs as _predict_kwargs
from ._controls import reject_remote_hooks as _reject_remote_hooks