mirror of
https://github.com/NandhaKishorM/laya.git
synced 2026-09-28 16:02:56 +08:00
The Python API docstrings now have browsable pages under docs/reference/, rendered with mkdocstrings. Handler options keep signatures and multi-line Returns sections readable and put the constructor on the class page without changing the source. The Docs workflow also runs on laya/** so docstring changes rebuild the site.
793 B
793 B
Python API
These pages are generated from the docstrings in laya/, so they change with the code. Apart
from ONNXAgent, every name below can be imported from the top-level package, for example
from laya import Router.
- Agent:
Agentandloadrun one checkpoint;ONNXAgentruns an exported ONNX model. - Router:
Routerpicks the checkpoint for each request;RouteDecisionrecords the choice. - Helpers: language detection, email cleaning, question presets, shortlisting and calibration utilities.
- LangChain components:
LayaRouter,LayaGuardrail,LayaTriageandLayaEvaluator.
Prediction hooks have a hand-written API reference with the rest of the hooks guide.