Interface HttpStreamingChatPublisher.Sink
- Enclosing class:
HttpStreamingChatPublisher
public static interface HttpStreamingChatPublisher.Sink
Consumes the upstream
HttpStreamingEvents of a single subscription and drives the assembled
ChatModelStreamingEvents into the Tube (typically via a TubeBackedStreamingChatResponseHandler).
Provider-specific.-
Method Summary
Modifier and TypeMethodDescriptionvoidThe upstream stream completed; finalize (build and emit the response, complete the tube).voidThe upstream stream failed.voidonEvent(HttpStreamingEvent event) Handle one upstream event (e.g. anHttpResponseReceivedor aServerSentEvent).
-
Method Details
-
onEvent
Handle one upstream event (e.g. anHttpResponseReceivedor aServerSentEvent). -
onError
The upstream stream failed. -
onComplete
void onComplete()The upstream stream completed; finalize (build and emit the response, complete the tube).
-