# Interface RecordInteractionOptions

Options for recording an interaction.

interface RecordInteractionOptions {
from: string;
to: string;
interactionType: string;
outcome: InteractionOutcome;
traceId: string;
durationMs?: number;
}

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

##### Index

### Properties

from
to
interactionType
outcome
traceId
durationMs?

## Properties

### `Readonly` from

from: string

Source agent

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

### `Readonly` to

to: string

Target agent

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

### `Readonly` interactionType

interactionType: string

Type of interaction

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

### `Readonly` outcome

outcome: InteractionOutcome

Outcome of interaction

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

### `Readonly` traceId

traceId: string

Trace ID for correlation

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

### `Optional` `Readonly` durationMs

durationMs?: number

Duration in milliseconds

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