AsyncStreamCallback
Defined in the streaming module.Rust AI Agent SDK Trait for asynchronous stream event callbacks.
Methods
on_event
| Name | Type |
|---|---|
event | &StreamEvent |
Source
View on GitHub
praisonai/src/streaming/mod.rs at line 0AsyncStreamCallback: Trait for asynchronous stream event callbacks.
Defined in the streaming module.Rust AI Agent SDK Trait for asynchronous stream event callbacks.
on_eventasync fn on_event(&self, event: &StreamEvent) -> ()
| Name | Type |
|---|---|
event | &StreamEvent |
praisonai/src/streaming/mod.rs at line 0