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 #535 from LEVELING2108/feat/crewai-integration

Nandakishorc55d4d59d0fa
diff --cc docs/.nav.yml
index 3a1df5f4,60d17341..0f1da4ba
--- a/docs/.nav.yml
+++ b/docs/.nav.yml
@@@ -6,7 -6,7 +6,8 @@@ nav
- structured.md
- hooks
- langchain.md
+ - llamaindex.md
+ - crewai.md
- glob: "*"
ignore_no_matches: true
- Deployment:
diff --cc laya/integrations/__init__.py
index 7364d96f,13d7b2e6..7eb80c55
--- a/laya/integrations/__init__.py
+++ b/laya/integrations/__init__.py
@@@ -1,6 -1,12 +1,13 @@@
"""Third-party agent and framework integrations for Laya."""
+ from .crewai import (
+ CrewRouteDecision,
+ LayaCrewRouter,
+ LayaLowConfidenceError,
+ LayaTaskGuard,
+ LayaTaskGuardError,
+ )
from .langchain import (
+ LayaDecision,
LayaEvaluator,
LayaGuardrail,
LayaGuardrailError,
@@@ -20,9 -20,9 +27,13 @@@ __all__ =
"LayaGuardrailError",
"LayaTriage",
"LayaEvaluator",
+ "LayaDecision",
+ "LayaSingleSelector",
+ "LayaMultiSelector",
+ "LayaQueryRouter",
+ "LayaCrewRouter",
+ "LayaTaskGuard",
+ "LayaTaskGuardError",
+ "CrewRouteDecision",
"LayaLowConfidenceError",
]
diff --cc pyproject.toml
index 8b0afd5b,1732b929..7221a4d9
--- a/pyproject.toml
+++ b/pyproject.toml
@@@ -66,11 -64,11 +66,16 @@@ langgraph =
"langgraph>=0.1.0",
]
+# `pip install laya[llamaindex]` adds the LlamaIndex query router & selector integrations (laya.integrations).
+llamaindex = [
+ "llama-index-core>=0.10.0",
+]
+
+ # `pip install laya[crewai]` adds the CrewAI multi-agent delegation router (laya.integrations).
+ crewai = [
+ "crewai>=0.28.0",
+ ]
+
[project.scripts]
laya = "laya.cli:main"
laya-serve = "laya.serve:main"