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.

docs(mcp): clarify shared routing projection callers

xp8142023cee6c
diff --git a/laya/mcp/tools.py b/laya/mcp/tools.py
index f832f0f4..52de9d2b 100644
--- a/laya/mcp/tools.py
+++ b/laya/mcp/tools.py
@@ -556,7 +556,7 @@ def _call_route(route: Callable, *args, explain: bool, **kwargs) -> Any:
def _route_to_dict(decision: Any, *, explain: bool) -> dict:
- # Predict tools also use _decision_to_dict; only routing tools expose this opt-in field.
+ # laya_shortlist and laya_tournament share _decision_to_dict; keep their routing output unchanged.
out = _decision_to_dict(decision)
if explain:
detection = decision.get("detection") if isinstance(decision, dict) else getattr(decision, "detection", None)