Class SseLoopEventSink

java.lang.Object
com.axelor.ai.chat.stream.SseLoopEventSink
All Implemented Interfaces:
LoopEventSink

public class SseLoopEventSink extends Object implements LoopEventSink
SSE implementation of LoopEventSink. Translates LoopEvents into SSE stream events written to a StreamWriter.
  • Constructor Details

    • SseLoopEventSink

      public SseLoopEventSink(StreamWriter writer)
  • Method Details

    • writer

      public StreamWriter writer()
      Returns the underlying writer for direct access (notifications, done signal).
    • emit

      public void emit(LoopEvent event)
      Specified by:
      emit in interface LoopEventSink