Readonly attemptReadonly llmsReadonly maxReadonly retryReadonly retryThe model of the instance that serves next (see nextInstance). Spans and metrics read
this, so a failover shows the model expected to answer rather than the adapter; the instance
that actually served is stamped per request by the stream.
The provider of the instance that serves next (see model).
Returns a LLMStream that can be used to push text and receive LLM responses.
Optional connOptional extraOptional parallelOptional toolOptional toolPre-warm connection to the LLM service.
Establishes DNS resolution and the TLS connection to the provider before the first inference request, reducing time-to-first-token on the initial reply. Non-blocking (fire-and-forget) and idempotent; calls made after aclose are ignored. Providers enable it by overriding _prewarmImpl.
Agent Fallback Adapter for LLM. Manages multiple LLM instances with automatic fallback when the current LLM fails.
Example