Kind: Class
Source: atloria-monorepo/libs/agent-core/src/runtime/anthropic-adapter.ts
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
AnthropicModelstops the work with an early return whenthis.azureHosted.AnthropicModelstops the work with an early return whenmsg.includes('429') || msg.includes('overloaded').AnthropicModelstops the work with an early return whenmsg.includes('500') || msg.includes('529') || msg.includes('ECONNRESET').AnthropicModelstops the work with an early return whentypeof request.input === 'string'.AnthropicModelstops the work with an early return when!request.tools || request.tools.length === 0.
When something fails
AnthropicModelhandles failure in 4 places: it discards it silently in 2, logs it and continues in 1, and lets it reach the caller in 1.
Was this page helpful?