Experience · Software component

Stream Interrupt Handler

Software componentExperienceExperience & Human Oversightarc:StreamInterruptHandler

A control component that receives user stop or clarification messages during streaming and cancels or redirects the in-flight generation with updated context.

Responsibility. Applies mid-stream user interruptions to the running agent generation.

Also known as: Stop generation control, Mid-stream interruption handler

overrideswritesis invoked byis invoked byreceives data fromAgent Controller: overridesAgent ControllerConversation State Store: writesConversation State StoreEnd User: is invoked byEnd UserConversational (Chat) Interface: is invoked byConversational (Chat) In…WebSocket Channel: receives data fromWebSocket Channel
Direct neighbourhood (hover for relationship types)

Relationships

is invoked by dependency

writes dependency

receives data from dynamic

overrides control

Design guidance

Classification

Patterns
Interruptible generation
Quality attributes
Interaction capability (ISO/IEC 25010)Cost efficiency
Risks mitigated
Wasted generation of unwanted contentUsers unable to correct a misunderstood query until completion

Sources

  1. Ch2.9: T. Nguyen, "Streaming and Real-Time Responses," in Mastering Agentic AI Systems: Guide for the NVIDIA NCP-AAI Exam, 1st ed. 2026, ch. 2.9. ISBN: 9798244538229.
  2. Ch10.5: T. Nguyen, "Human-over-the-Loop," in Mastering Agentic AI Systems: Guide for the NVIDIA NCP-AAI Exam, 1st ed. 2026, ch. 10.5. ISBN: 9798244538229.