StreamHandler
Defined in the streaming module.Rust AI Agent SDK Handler for managing stream callbacks.
Fields
| Name | Type | Description |
|---|---|---|
callbacks | Vec<Box<dyn StreamCallback>> | - |
Methods
new
add_callback
| Name | Type |
|---|---|
callback | impl StreamCallback + 'static |
emit
| Name | Type |
|---|---|
event | &StreamEvent |
callback_count
Source
View on GitHub
praisonai/src/streaming/mod.rs at line 390
