You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: ADVANCED_FEATURES.md
+86-41Lines changed: 86 additions & 41 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -650,14 +650,14 @@ Existing pipelines remain fully compatible. To use advanced features:
650
650
651
651
## 🚀 6. Async Streaming
652
652
653
-
Enable real-time response streaming for all Claude-based steps, providing progressive output display and better resource management.
653
+
Enable real-time message streaming for all Claude-based steps, displaying complete messages as they arrive from ClaudeCodeSDK for better user experience and resource management.
654
654
655
655
### Why Async Streaming?
656
656
657
-
- **Real-time feedback**: See Claude's responses character by character as they're generated
657
+
- **Real-time feedback**: See Claude's complete messages as they arrive (message-by-message streaming)
658
658
- **Memory efficiency**: Stream large outputs without loading everything into memory
659
659
- **Early interruption**: Stop long-running operations if they go off track
660
-
- **Better user experience**: Immediate visual feedback instead of waiting
660
+
- **Better user experience**: Progressive display of assistant responses, tool uses, and results
661
661
662
662
### Basic Configuration
663
663
@@ -677,56 +677,93 @@ Enable real-time response streaming for all Claude-based steps, providing progre
677
677
678
678
### Stream Handlers
679
679
680
-
#### Console Handler
681
-
Real-time terminal output with formatting options:
680
+
The implementation provides 6 specialized handlers for different streaming needs:
681
+
682
+
#### 1. Console Handler (`console`)
683
+
Fancy formatted output with styled headers and statistics:
The pipeline now supports **real-time response streaming** for all Claude-based steps, enabling progressive output display and lower memory usage for large responses.
554
+
The pipeline now supports **real-time message streaming** for all Claude-based steps, displaying complete messages as they arrive from ClaudeCodeSDK for better user experience.
555
555
556
556
### Why Use Async Streaming?
557
557
558
-
- **Real-time feedback**: See Claude's responses as they're generated
559
-
- **Lower memory usage**: Stream large outputs without loading everything into memory
560
-
- **Better UX**: Users see progress immediately instead of waiting for completion
561
-
- **Early error detection**: Interrupt long-running operations if needed
558
+
- **Real-time feedback**: See Claude's complete messages as they arrive (message-by-message)
559
+
- **Lower memory usage**: Process messages without buffering entire responses
560
+
- **Better UX**: Progressive display of assistant responses, tool uses, and results
561
+
- **Visibility**: Watch Claude's tool usage and thinking process in real-time
562
562
563
563
### Basic Streaming Example
564
564
@@ -617,16 +617,18 @@ The pipeline now supports **real-time response streaming** for all Claude-based
mix test test/integration/async_streaming_test.exs
628
628
```
629
629
630
+
📖 **Complete Streaming Guide**: See [examples/STREAMING_GUIDE.md](examples/STREAMING_GUIDE.md) for implementation details and [docs/ASYNC_STREAMING_MIGRATION_GUIDE.md](docs/ASYNC_STREAMING_MIGRATION_GUIDE.md) for adding streaming to existing pipelines.
631
+
630
632
### Works with All Claude Step Types
631
633
632
634
Async streaming is supported by all Claude-based steps:
0 commit comments