Skip to content

AzureModelProvider

reference
1 min readUpdated

Kind: Class

Source: atloria-monorepo/libs/agent-core/src/runtime/model-adapter.ts

Azure Model Provider — factory that returns AzureResponsesModel instances. Passed to the SDK Runner as the modelProvider.

Supports model fallback: if a fallbackModel is configured, the provider wraps the primary model with automatic failover. When the primary model fails with a non-transient error (e.g., model unavailable, quota exceeded), it transparently switches to the fallback model for the rest of the run.

Inspired by Claude Code's FallbackTriggeredError → switch models pattern.

Implements: ModelProvider

Methods

MethodSignatureReturns
getProfilegetProfile()ModelCapabilityProfile
getModelgetModel(modelName: string)AzureResponsesModel

Was this page helpful?

Download as PDF