On Event • Rust AI Agent SDK
on_event: Called when a stream event is emitted (async)
on_event
Async
Method
</div>
This is a method of the AsyncStreamCallback class in the streaming module.
Called when a stream event is emitted (async)
Signature
async def on_event(&self, event: &StreamEvent) -> ()Parameters
ParamField
&StreamEventNo description available.
Returns
ResponseField
()The result of the operation.