StreamResponse
abstract class StreamResponse
StreamResponse.Message |
An event message received during the stream. |
StreamResponse.Result |
The final result of the computation, marking the end of the stream. |
Represents a response from a Server-Sent Event (SSE) stream.
The SSE stream consists of two types of responses:
-
Message: Represents an intermediate event pushed from the server. -
Result: Represents the final response that signifies the stream has ended.
Summary
Nested types |
|---|
class StreamResponse.Message : StreamResponseAn event message received during the stream. |
class StreamResponse.Result : StreamResponseThe final result of the computation, marking the end of the stream. |