Package org.mockserver.mock.action.http
Class HttpLlmResponseActionHandler
- java.lang.Object
-
- org.mockserver.mock.action.http.HttpLlmResponseActionHandler
-
public class HttpLlmResponseActionHandler extends Object
-
-
Constructor Summary
Constructors Constructor Description HttpLlmResponseActionHandler(MockServerLogger mockServerLogger)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description HttpResponsehandle(HttpLlmResponse httpLlmResponse, HttpRequest request)List<SseEvent>handleStreaming(HttpLlmResponse httpLlmResponse, HttpRequest request)Handle streaming LLM response by producing a list of SSE events.
-
-
-
Constructor Detail
-
HttpLlmResponseActionHandler
public HttpLlmResponseActionHandler(MockServerLogger mockServerLogger)
-
-
Method Detail
-
handle
public HttpResponse handle(HttpLlmResponse httpLlmResponse, HttpRequest request)
-
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 actionrequest- the original HTTP request- Returns:
- list of SSE events to be sent through the SSE handler
-
-