Package de.espirit.firstspirit.ai.dto
Interface ResponseStream
- All Superinterfaces:
AutoCloseable
,Closeable
,Iterator<Response>
A stream of response fragments.
The implementation of this class may use
Closeable.close()
to
properly closes any resources related to the AI request.
The usage of this Keep in mind to close this response stream appropriately after usage.- Since:
- 5.2.240708
-
Method Summary
Methods inherited from interface java.util.Iterator
forEachRemaining, hasNext, next, remove
-
Method Details
-
stream
Creates aStream
for this iterator instance.- Returns:
- The new stream.
- Since:
- 5.2.240708
-