Package io.intino.alexandria.ollama
Class Ollama.StreamResponse<T>
java.lang.Object
io.intino.alexandria.ollama.Ollama.StreamResponse<T>
- All Implemented Interfaces:
AutoCloseable,Iterable<T>,Iterator<T>
- Enclosing interface:
Ollama
public static class Ollama.StreamResponse<T>
extends Object
implements AutoCloseable, Iterator<T>, Iterable<T>
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.lang.Iterable
forEach, spliteratorMethods inherited from interface java.util.Iterator
forEachRemaining, remove
-
Constructor Details
-
StreamResponse
-
-
Method Details
-
processAllParts
-
processAllParts
-
stream
-
toList
-
iterator
-
hasNext
public boolean hasNext() -
next
-
close
- Specified by:
closein interfaceAutoCloseable- Throws:
Exception
-