Skip to content

SdkModelProviderBridge

reference
1 min readUpdated

Kind: Class

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

Wraps an existing SDK ModelProvider (AzureModelProvider, AnthropicModelProvider) as our IModelProvider interface. This lets the Live-SWE loop use the existing Azure adapter with all its optimizations (retries, incremental input, fallback).

Implements: IModelProvider

Methods

MethodSignatureReturns
getResponsegetResponse(request: ModelProviderRequest)Promise<ModelProviderResponse>
getStreamedResponsegetStreamedResponse(request: ModelProviderRequest)AsyncIterable<unknown>
getProfilegetProfile()ModelCapabilityProfile

Where it refuses work

  • SdkModelProviderBridge stops the work with Error when typeof sdkModel === 'object' && 'then' in sdkModel — “Async model resolution not supported in bridge”, in 2 places.
  • SdkModelProviderBridge stops the work with an early return when item.role === 'tool'.
  • SdkModelProviderBridge stops the work with an early return when item.role === 'assistant' && item.toolCalls?.length.

Was this page helpful?

Download as PDF