API Reference

Types & errors

RunResult carries text, metrics, trace, and context. HTTP detail payloads are normalized into TokenSaverError subclasses.

Common exceptions: AuthenticationError, QuotaExceededError, ValidationError (including LLM_MODEL_NOT_SUPPORTED, RAG codes), ServerError (NETWORK_ERROR).

Full tables & signatures

See All methods (single page) for Return types and Errors cards, and copy-pasteable exception handling.

HTTP reference: Errors & quotas.