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
Relationships
is invoked by dependency
writes dependency
- Conversation State Store abstract Ch2.9
receives data from dynamic
overrides control
- Agent Controller abstract Ch2.9
Design guidance
- SHOULD let users cancel a streaming request mid-flight and provide clarification that redirects the analysis.
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
- 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.
- 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.