Kind: Class
Source: atloria-monorepo/libs/agent-core/src/runtime/model-adapter.ts
Azure OpenAI Model — implements the SDK's Model interface using Azure Responses API.
Implements: Model
Methods
| Method | Signature | Returns |
|---|---|---|
getResponse | getResponse(request: ModelRequest) | Promise<ModelResponse> |
getStreamedResponse | getStreamedResponse(request: ModelRequest) | AsyncIterable<import('@openai/agents').ResponseStreamEvent> |
getRetryAdvice | getRetryAdvice(args: ModelRetryAdviceRequest) | `ModelRetryAdvice |
Where it refuses work
AzureResponsesModelstops the work with an early return when!event?.type.AzureResponsesModelstops the work with an early return when!usage.AzureResponsesModelstops the work with an early return when!Array.isArray(output).AzureResponsesModelstops the work with an early return when!item || typeof item !== 'object'.AzureResponsesModelstops the work with an early return whenmessage.includes('429') || message.includes('throttled').AzureResponsesModelstops the work with an early return whenmessage.includes('500') || message.includes('502') || message.includes('503').
When something fails
AzureResponsesModelhandles failure in 4 places: it lets it reach the caller in 2, turns it into a return value in 1, and discards it silently in 1. A failure discarded silently leaves no trace for whoever debugs this later.
Was this page helpful?