Skip to content

distill::teacher

More...

Classes

Name
class distill::teacher::TeacherClient

Attributes

Name
dict HTTP_NON_RETRYABLE
int HTTP_RATE_LIMIT
tuple NON_RETRYABLE_EXCEPTIONS

Detailed Description

Multi-backend teacher API client with cost controls, retry, and circuit breaker.

Dispatches teacher calls to the correct backend (OpenAI or Anthropic) based on the
model's configured endpoint ``apiType``.  All backends produce a uniform response
wrapper so callers receive the same interface regardless of backend.

Attributes Documentation

variable HTTP_NON_RETRYABLE

dict HTTP_NON_RETRYABLE =  {400, 401, 402, 403, 404, 405, 422};

variable HTTP_RATE_LIMIT

int HTTP_RATE_LIMIT =  429;

variable NON_RETRYABLE_EXCEPTIONS

tuple NON_RETRYABLE_EXCEPTIONS =  (
    BudgetExceededError,
    CircuitBreakerOpenError,
    TeacherConfigError,
    BackendNotFoundError,
);

Updated on 2026-07-25 at 22:56:57 +0000