StreamResponse.Result

public final class StreamResponse.Result extends StreamResponse


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

Unlike Message, which represents intermediate data chunks, Result contains the complete computation output. If clients only care about the final result, they can process this type alone and ignore intermediate messages.

Example SSE format:

data: { "result": { "text": "foo bar" } }

Summary

Public fields

final @NonNull HttpsCallableResult

the final computed result received from the server.

Public constructors

Public fields

result

public final @NonNull HttpsCallableResult result

the final computed result received from the server.

Public constructors

Result

public Result(@NonNull HttpsCallableResult result)