# Interface CodeAnalysisResult

Code analysis result from CodeExpert.

interface CodeAnalysisResult {
content: string;
structuredData?: Record<string, unknown>;
recommendations?: string[];
warnings?: string[];
confidence: number;
modelUsed?: string;
operationType: "debugging" | "optimization" | "refactoring" | "generation";
affectedFiles?: string[];
codeChanges?: CodeChange[];
}

#### Hierarchy (View Summary)

- ExpertOutput
  - CodeAnalysisResult

- Defined in packages/nexus-agents/src/agents/experts/expert-types.ts:32

##### Index

### Properties

content
structuredData?
recommendations?
warnings?
confidence
modelUsed?
operationType
affectedFiles?
codeChanges?

## Properties

### content

content: string

Primary result content

Inherited from ExpertOutput.content

- Defined in packages/nexus-agents/src/agents/experts/expert-base-types.ts:34

### `Optional` structuredData

structuredData?: Record<string, unknown>

Structured data if applicable

Inherited from ExpertOutput.structuredData

- Defined in packages/nexus-agents/src/agents/experts/expert-base-types.ts:36

### `Optional` recommendations

recommendations?: string[]

Recommendations or suggestions

Inherited from ExpertOutput.recommendations

- Defined in packages/nexus-agents/src/agents/experts/expert-base-types.ts:38

### `Optional` warnings

warnings?: string[]

Warnings or issues found

Inherited from ExpertOutput.warnings

- Defined in packages/nexus-agents/src/agents/experts/expert-base-types.ts:40

### confidence

confidence: number

Confidence score (0-1)

Inherited from ExpertOutput.confidence

- Defined in packages/nexus-agents/src/agents/experts/expert-base-types.ts:42

### `Optional` modelUsed

modelUsed?: string

Model used for this expert's execution (Issue #817)

Inherited from ExpertOutput.modelUsed

- Defined in packages/nexus-agents/src/agents/experts/expert-base-types.ts:44

### operationType

operationType: "debugging" | "optimization" | "refactoring" | "generation"

Type of code operation performed

- Defined in packages/nexus-agents/src/agents/experts/expert-types.ts:34

### `Optional` affectedFiles

affectedFiles?: string[]

Files affected

- Defined in packages/nexus-agents/src/agents/experts/expert-types.ts:36

### `Optional` codeChanges

codeChanges?: CodeChange[]

Code changes or suggestions

- Defined in packages/nexus-agents/src/agents/experts/expert-types.ts:38