Class HttpLlmResponseActionHandler


  • public class HttpLlmResponseActionHandler
    extends Object
    • Constructor Detail

      • HttpLlmResponseActionHandler

        public HttpLlmResponseActionHandler​(MockServerLogger mockServerLogger)
    • Method Detail

      • handleStreaming

        public List<SseEvent> handleStreaming​(HttpLlmResponse httpLlmResponse,
                                              HttpRequest request)
        Handle streaming LLM response by producing a list of SSE events. Called by HttpActionHandler when streaming is detected.
        Parameters:
        httpLlmResponse - the LLM response action
        request - the original HTTP request
        Returns:
        list of SSE events to be sent through the SSE handler