StreamCollector
Defined in the streaming module.Rust AI Agent SDK Collects stream events and accumulated content.
Fields
| Name | Type | Description |
|---|---|---|
events | Vec<StreamEvent> | Collected events |
content | String | Accumulated content |
metrics | StreamMetrics | Metrics |
Methods
new
process
| Name | Type |
|---|---|
event | StreamEvent |
get_content
event_count
is_complete
has_error
get_error
Source
View on GitHub
praisonai/src/streaming/mod.rs at line 424
