# Class AgenticAdapter

Agents exports - Agent framework, Orchestrator, Experts Split from index.ts for file size compliance (Issue #285)

#### Implements

- IAgenticAdapter

- Defined in packages/nexus-agents/src/agents/agentic/agentic-adapter.ts:95

##### Index

### Constructors

constructor

### Properties

providerId
modelId
adapterStrategy

### Methods

getProfile
getResolvedIdentity
runAgent

## Constructors

### constructor

- new AgenticAdapter(
  modelAdapter: IModelAdapter,
  options?: AgenticAdapterOptions,
  ): AgenticAdapter

  #### Parameters

  - modelAdapter: IModelAdapter
  - options: AgenticAdapterOptions = {}

  #### Returns AgenticAdapter

  - Defined in packages/nexus-agents/src/agents/agentic/agentic-adapter.ts:118

## Properties

### `Readonly` providerId

providerId: string

Implementation of IAgenticAdapter.providerId

- Defined in packages/nexus-agents/src/agents/agentic/agentic-adapter.ts:96

### `Readonly` modelId

modelId: string

Implementation of IAgenticAdapter.modelId

- Defined in packages/nexus-agents/src/agents/agentic/agentic-adapter.ts:97

### adapterStrategy

adapterStrategy: string

Adapter strategy stamp — composed from the resolved model identity, NOT the IModelAdapter's providerId. For a custom OpenAI gateway fronting Claude, this reads `native:anthropic` even though `IModelAdapter.providerId === 'openai'`.

Initialised eagerly from the modelId parse (sync); upgraded after the first `runAgent` if the probe contributes a higher-confidence vendor signal.

Implementation of IAgenticAdapter.adapterStrategy

- Defined in packages/nexus-agents/src/agents/agentic/agentic-adapter.ts:108

## Methods

### getProfile

- getProfile(): ModelEntry

  Read-only accessor for the resolved profile. Mostly used in tests

  - observability surfaces; production callers shouldn't need this.

  #### Returns ModelEntry

  - Defined in packages/nexus-agents/src/agents/agentic/agentic-adapter.ts:150

### getResolvedIdentity

- getResolvedIdentity(): ResolvedModelIdentity

  Read-only accessor for the resolved identity. After the first `runAgent` call (if a probe ran), this may differ from what the sync constructor stored — useful for audit logs.

  #### Returns ResolvedModelIdentity

  - Defined in packages/nexus-agents/src/agents/agentic/agentic-adapter.ts:159

### runAgent

- runAgent(args: RunAgentArgs): Promise<Result<AgentRunResult, AgentError>>

  #### Parameters

  - args: RunAgentArgs

  #### Returns Promise<Result<AgentRunResult, AgentError>>

  Implementation of IAgenticAdapter.runAgent

  - Defined in packages/nexus-agents/src/agents/agentic/agentic-adapter.ts:226