Skip to main content

AsyncStreamCallback

Defined in the streaming module.
Rust AI Agent SDK Trait for asynchronous stream event callbacks.

Methods

on_event

async fn on_event(&self, event: &StreamEvent) -> ()
Called when a stream event is emitted (async) Parameters:
NameType
event&StreamEvent

Source

View on GitHub

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