# AgentInterrupt

Package: `@threadplane/angular/chat` · 0.3.7

Reference: /docs/api/angular/chat/AgentInterrupt

```typescript
import type { AgentInterrupt } from '@threadplane/angular/chat';
```

## AgentInterrupt

One thing a paused run is waiting on, such as an approval or a missing
answer. A run that paused reports its interrupts in the snapshot and settles
with the `'paused'` outcome; `resume` answers them.

```typescript
export interface AgentInterrupt  {
  readonly id: string;
  readonly message?: string;
  readonly reason?: string;
  readonly resumable?: boolean;
  readonly toolCallId?: string;
  readonly value?: PlainValue;
}
```

### id

Names this interrupt in a response. Unique among the pending interrupts.

```typescript
readonly id: string;
```

### message

Display text the backend supplied for the person answering.

```typescript
readonly message?: string;
```

### reason

The kind of pause in the backend's own words, such as `tool_approval`.

```typescript
readonly reason?: string;
```

### resumable

`false` when the session can show this interrupt and cannot answer it
through `resume`. Absent means it is answered through `resume` whenever
the session has that command.

```typescript
readonly resumable?: boolean;
```

### toolCallId

The tool call this pause is about, when the backend relates the two.

```typescript
readonly toolCallId?: string;
```

### value

What the backend sent with the pause, as frozen plain data. Its shape
belongs to the agent that paused, so a view narrows it before rendering.

```typescript
readonly value?: PlainValue;
```