# Interface McpExpertFactory

Expert factory interface for dependency injection.

interface McpExpertFactory {
createBuiltIn(
type: BuiltInExpertType,
options?: { modelOverrides?: { modelId?: string } },
): { ok: true; value: Expert } | { ok: false; error: Error };
}

- Defined in packages/nexus-agents/src/mcp/tools/create-expert.ts:78

##### Index

### Methods

createBuiltIn

## Methods

### createBuiltIn

- createBuiltIn(
  type: BuiltInExpertType,
  options?: { modelOverrides?: { modelId?: string } },
  ): { ok: true; value: Expert } | { ok: false; error: Error }

  #### Parameters

  - type: BuiltInExpertType
  - `Optional` options: { modelOverrides?: { modelId?: string } }

  #### Returns { ok: true; value: Expert } | { ok: false; error: Error }

  - Defined in packages/nexus-agents/src/mcp/tools/create-expert.ts:79