# Interface ContributionScore

Contribution score for a single agent to a task.

interface ContributionScore {
agentId: string;
score: number;
messagesSent: number;
messagesReceived: number;
activeTimeMs: number;
successfulTools: number;
errorCount: number;
}

- Defined in packages/nexus-agents/src/observability/swarm-observer-types.ts:122

##### Index

### Properties

agentId
score
messagesSent
messagesReceived
activeTimeMs
successfulTools
errorCount

## Properties

### `Readonly` agentId

agentId: string

- Defined in packages/nexus-agents/src/observability/swarm-observer-types.ts:123

### `Readonly` score

score: number

Overall contribution score (0-1)

- Defined in packages/nexus-agents/src/observability/swarm-observer-types.ts:125

### `Readonly` messagesSent

messagesSent: number

Number of messages sent

- Defined in packages/nexus-agents/src/observability/swarm-observer-types.ts:127

### `Readonly` messagesReceived

messagesReceived: number

Number of messages received

- Defined in packages/nexus-agents/src/observability/swarm-observer-types.ts:129

### `Readonly` activeTimeMs

activeTimeMs: number

Time spent actively working (ms)

- Defined in packages/nexus-agents/src/observability/swarm-observer-types.ts:131

### `Readonly` successfulTools

successfulTools: number

Number of successful tool invocations

- Defined in packages/nexus-agents/src/observability/swarm-observer-types.ts:133

### `Readonly` errorCount

errorCount: number

Number of errors encountered

- Defined in packages/nexus-agents/src/observability/swarm-observer-types.ts:135