Stream Callback • Rust AI Agent SDK

StreamCallback: Trait for synchronous stream event callbacks.

StreamCallback

Defined in the streaming module.

Rust AI Agent SDK

Trait for synchronous stream event callbacks.

Methods

on_event

rust
fn on_event(&self, event: &StreamEvent) -> ()

Called when a stream event is emitted

Parameters:

NameType
event&StreamEvent

Source

View on GitHub

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