Skip to main content

StreamHandler

Defined in the streaming module.
Rust AI Agent SDK Handler for managing stream callbacks.

Fields

Methods

new

Create a new stream handler

add_callback

Add a callback Parameters:

emit

Emit an event to all callbacks Parameters:

callback_count

Get callback count

Source

View on GitHub

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