# Interface ExpertBridgeResult

Result of an expert execution.

interface ExpertBridgeResult {
success: boolean;
text: string;
expertType: BuiltInExpertType;
durationMs: number;
error?: string;
cli?: "claude" | "gemini" | "codex" | "opencode";
}

- Defined in packages/nexus-agents/src/pipeline/expert-bridge.ts:37

##### Index

### Properties

success
text
expertType
durationMs
error?
cli?

## Properties

### `Readonly` success

success: boolean

- Defined in packages/nexus-agents/src/pipeline/expert-bridge.ts:38

### `Readonly` text

text: string

- Defined in packages/nexus-agents/src/pipeline/expert-bridge.ts:39

### `Readonly` expertType

expertType: BuiltInExpertType

- Defined in packages/nexus-agents/src/pipeline/expert-bridge.ts:40

### `Readonly` durationMs

durationMs: number

- Defined in packages/nexus-agents/src/pipeline/expert-bridge.ts:41

### `Optional` `Readonly` error

error?: string

- Defined in packages/nexus-agents/src/pipeline/expert-bridge.ts:42

### `Optional` `Readonly` cli

cli?: "claude" | "gemini" | "codex" | "opencode"

CLI that actually executed the task, resolved from the underlying `CliResponse.model` via `getCliForModelId`. Undefined when the bridge failed before dispatch (no adapters / circuit-open / rate-limit cap). Callers writing to OutcomeStore should use this rather than hardcoding a cli — see #2823 (#1154 regression).

- Defined in packages/nexus-agents/src/pipeline/expert-bridge.ts:50