StreamResponse

abstract class StreamResponse

Known direct subclasses
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

An event message received during the stream.

The final result of the computation, marking the end of the stream.