Type API
The symbol-level reference is generated from the source, not written by hand. Browse it at Type API, or reach it from the top navigation.
What it covers
Every public entry point is documented from its declarations:
Because it is generated, it always matches the shipped types: signatures, unions, defaults, and the error classes each surface can throw. When this Reference section and the generated pages disagree, the generated pages are correct.
Generated pages are language-neutral
The site mirrors the generated reference under both locales, so /api/ and /zh/api/ resolve for readers of either language. The content is not translated: the symbol documentation is extracted from source comments and stays in the language it was authored in.
That is deliberate. A translated copy of generated output would drift from the source on the first refactor, and a symbol reference whose types are current but whose prose is stale is worse than one that is honestly monolingual. Hand-written pages — everything in the Guide and the rest of this Reference — are complete translations.
Where to start
- Compiling from a script:
buildandvalidateinagent-bundle/api. - Writing tests:
renderRoute,expectDocument, and the matrices inagent-bundle/test, explained in Testing. - Writing evals:
defineEvalSuiteand the assertions inagent-bundle/eval, explained in Evaluations.