Basic Streaming
Callstream() instead of get() to receive a StructuredOutputStream. The partials() method yields parsed partial objects as the response is built.
finalValue() is fully validated, making it safe to persist or process further.
Explicit Streaming Control
You can also enable streaming withwithStreaming() and then call get(), which internally drains the stream and returns the final value.
StructuredOutputStream Methods
TheStructuredOutputStream class provides several ways to consume the stream.
Iteration Methods
Result Access Methods
Utility Methods
Example: Streaming with Final Retrieval
A common pattern is to stream partials for UI updates, then use the final validated value for persistence.Example: Streaming Sequence Items
When using aSequence response model, you can stream completed items individually rather than waiting for the entire list.