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

python
async def on_event(&self, event: &StreamEvent) -> ()

Parameters

ParamField &StreamEvent

No description available.

Returns

ResponseField ()

The result of the operation.