# Function wrapResilientWithFallback

Adapters exports - Model adapters (Claude, OpenAI, Gemini, Ollama) Split from index.ts for file size compliance (Issue #285)

- wrapResilientWithFallback<T extends ResilientLike>(
  inner: T,
  options?: ModelNotFoundFallbackOptions,
  ): T

  Wrap an `IResilientAdapter` (or anything that satisfies `ResilientLike`) so its `complete()` path retries on MODEL_NOT_FOUND while its health/lifecycle methods continue to work unchanged.

  #### Type Parameters

  - T extends ResilientLike

  #### Parameters

  - inner: T
  - options: ModelNotFoundFallbackOptions = {}

  #### Returns T

  - Defined in packages/nexus-agents/src/adapters/model-not-found-fallback.ts:371