# Interface ExecuteExpertResponse

Response from execute_expert tool.

interface ExecuteExpertResponse {
expertId: string;
role: string;
output: string;
durationMs: number;
tokensUsed: number;
status: "error" | "success";
error?: string;
modelUsed?: string;
}

- Defined in packages/nexus-agents/src/mcp/tools/execute-expert.ts:125

##### Index

### Properties

expertId
role
output
durationMs
tokensUsed
status
error?
modelUsed?

## Properties

### expertId

expertId: string

Expert ID that executed the task

- Defined in packages/nexus-agents/src/mcp/tools/execute-expert.ts:127

### role

role: string

Expert role

- Defined in packages/nexus-agents/src/mcp/tools/execute-expert.ts:129

### output

output: string

Task execution output

- Defined in packages/nexus-agents/src/mcp/tools/execute-expert.ts:131

### durationMs

durationMs: number

Execution duration in milliseconds

- Defined in packages/nexus-agents/src/mcp/tools/execute-expert.ts:133

### tokensUsed

tokensUsed: number

Token usage from the model

- Defined in packages/nexus-agents/src/mcp/tools/execute-expert.ts:135

### status

status: "error" | "success"

Status of execution

- Defined in packages/nexus-agents/src/mcp/tools/execute-expert.ts:137

### `Optional` error

error?: string

Error message if status is 'error'

- Defined in packages/nexus-agents/src/mcp/tools/execute-expert.ts:139

### `Optional` modelUsed

modelUsed?: string

Model used for execution (Issue #817)

- Defined in packages/nexus-agents/src/mcp/tools/execute-expert.ts:141