API Reference¶
This section documents the public CLI and Python APIs exposed by the llmrouter package.
Note
The docs site is built from the website branch, but the runnable implementation lives on main.
Source links in this section point to main to reduce drift.
Quick links¶
Conventions¶
- CLI router names are lowercase strings (for example,
knnrouter). See Routers for aliases. - Relative YAML paths resolve against the directory containing
llmrouter/. See Config reference. llmrouter inferreads/writes JSON. See Data formats for schemas.
Layout¶
Each page follows a consistent structure so you can scan quickly: - Summary of the object or command - Signature - Key responsibilities - Parameters and return values - Examples and notes