ConnectInteractionEvent: {
    background?: boolean;
    event_type: "interaction.connect";
    id?: string;
}

Reconnects to an existing live Interaction.

Type declaration

  • Optionalbackground?: boolean

    When true, signals that the client intends to disconnect after sending

    this message. The server continues running in the background. The client is expected to close the stream after sending this message, and can reconnect again later to retrieve further output.

  • event_type: "interaction.connect"
  • Optionalid?: string

The client sets next_output_seq_num to tell the server the first output event it still needs (i.e. resume output from here). Additionally, ack_output_seq_num on the enclosing ClientEventBatch confirms cumulative receipt through that seq_num.

The server responds with InteractionReconnectedEvent containing next_input_seq_num, telling the client where to resume sending input. If the interaction is already complete, the server will replay events starting from next_output_seq_num through completion.