ChatInterruptTemplateContext

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

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

Declaration

export interface ChatInterruptTemplateContext  {
  $implicit: Agent;
  interrupt: AgentInterrupt;
  interrupts: readonly AgentInterrupt[];
}

Members

$implicit

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

$implicit: Agent;

interrupt

The first pending interrupt, agent.interrupts()[0] (let-interrupt="interrupt").

interrupt: AgentInterrupt;

interrupts

Every interrupt the paused run waits on, in the agent's order (let-interrupts="interrupts"). A run continues once, so answer them together with one agent.resume(responses).

interrupts: readonly AgentInterrupt[];