Class OllamaChatRequest
java.lang.Object
io.intino.alexandria.ollama.requests.OllamaRequest
io.intino.alexandria.ollama.requests.OllamaRequest.WithOptions<OllamaChatRequest>
io.intino.alexandria.ollama.requests.OllamaChatRequest
- All Implemented Interfaces:
OllamaParameters<OllamaChatRequest>,OllamaRequest.WithKeepAlive<OllamaChatRequest>,Serializable
public class OllamaChatRequest
extends OllamaRequest.WithOptions<OllamaChatRequest>
implements OllamaRequest.WithKeepAlive<OllamaChatRequest>, OllamaParameters<OllamaChatRequest>
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class io.intino.alexandria.ollama.requests.OllamaRequest
OllamaRequest.WithKeepAlive<Self extends OllamaRequest.WithKeepAlive<Self>>, OllamaRequest.WithOptions<Self extends OllamaRequest.WithOptions<Self>> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddMessage(OllamaMessage message) addMessage(OllamaMessage.Role role, String content) format()messages()messages(OllamaMessage... messages) messages(Collection<OllamaMessage> messages) model()self()booleanstream()stream(boolean stream) think()tools()tools(OllamaTool... tools) tools(Collection<OllamaTool> tools) withFunction(OllamaFunction function) Methods inherited from class io.intino.alexandria.ollama.requests.OllamaRequest.WithOptions
options, options, parametersMapMethods inherited from class io.intino.alexandria.ollama.requests.OllamaRequest
fromJson, toJson, toStringMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface io.intino.alexandria.ollama.OllamaParameters
minP, minP, mirostat, mirostat, mirostatEta, mirostatEta, mirostatTau, mirostatTau, numCtx, numCtx, numGpu, numGpu, numPredict, numPredict, parameter, parameter, parametersMap, repeatLastN, repeatLastN, repeatPenalty, repeatPenalty, seed, seed, stop, stop, stop, temperature, temperature, tfsZ, tfsZ, topK, topK, topP, topPMethods inherited from interface io.intino.alexandria.ollama.requests.OllamaRequest.WithKeepAlive
keepAlive
-
Constructor Details
-
OllamaChatRequest
public OllamaChatRequest()
-
-
Method Details
-
model
-
model
-
messages
-
addMessage
-
addMessage
-
messages
-
messages
-
tools
-
tools
-
tools
-
withFunction
-
format
-
format
-
think
-
think
-
stream
public boolean stream() -
stream
-
keepAlive
- Specified by:
keepAlivein interfaceOllamaRequest.WithKeepAlive<OllamaChatRequest>
-
keepAlive
- Specified by:
keepAlivein interfaceOllamaRequest.WithKeepAlive<OllamaChatRequest>
-
self
- Specified by:
selfin interfaceOllamaParameters<OllamaChatRequest>- Specified by:
selfin interfaceOllamaRequest.WithKeepAlive<OllamaChatRequest>
-