# ChatInterruptTemplateContext

Package: `@threadplane/chat` · 0.3.4

Reference: /docs/api/chat/ChatInterruptTemplateContext

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

## ChatInterruptTemplateContext

Template context for the interrupt template projected into `<chat>`.

```typescript
export interface ChatInterruptTemplateContext  {
  $implicit: Agent;
  interrupt: AgentInterrupt;
}
```

### $implicit

The agent bound to `<chat>` (`let-agent`).

```typescript
$implicit: Agent;
```

### interrupt

The pending interrupt, read from `agent.interrupt()`
(`let-interrupt="interrupt"`). Runtimes that expose a full interrupt
batch do so on their own agent type, reachable through `$implicit`.

```typescript
interrupt: AgentInterrupt;
```