pub trait StreamHandler: Send + Sync {
// Required method
fn call_streaming(
&self,
args: &str,
tx: StreamSender,
) -> Pin<Box<dyn Future<Output = Result<String, String>> + Send + '_>>;
}Expand description
Trait for streaming handlers that send incremental updates during execution.
Parallel to Handler but receives a StreamSender for emitting intermediate
messages. The handler returns a final result after streaming completes.