Add Callback • Rust AI Agent SDK

add_callback: Add a callback

add_callback

Method

</div>

This is a method of the StreamHandler class in the streaming module.

Add a callback

Signature

python
def add_callback(&mut self, callback: impl StreamCallback + 'static) -> ()

Parameters

ParamField impl StreamCallback + 'static

No description available.

Returns

ResponseField ()

The result of the operation.