Skip to main content

StreamCollector

Defined in the streaming module.
Rust AI Agent SDK Collects stream events and accumulated content.

Fields

Methods

new

Create a new collector

process

Process an event Parameters:

get_content

Get final content

event_count

Get event count

is_complete

Check if streaming completed successfully

has_error

Check if there was an error

get_error

Get error message if any

Source

View on GitHub

praisonai/src/streaming/mod.rs at line 424