# Interface AgentResponse

Response to an agent message.

interface AgentResponse {
messageId: string;
status: "failed" | "accepted" | "rejected" | "completed";
data?: unknown;
error?: string;
}

- Defined in packages/nexus-agents/src/core/types/agent.ts:168

##### Index

### Properties

messageId
status
data?
error?

## Properties

### messageId

messageId: string

Original message ID

- Defined in packages/nexus-agents/src/core/types/agent.ts:170

### status

status: "failed" | "accepted" | "rejected" | "completed"

Response status

- Defined in packages/nexus-agents/src/core/types/agent.ts:172

### `Optional` data

data?: unknown

Response data

- Defined in packages/nexus-agents/src/core/types/agent.ts:174

### `Optional` error

error?: string

Error message if failed

- Defined in packages/nexus-agents/src/core/types/agent.ts:176