Class OllamaGenerateRequestBuilder
java.lang.Object
io.github.ollama4j.models.generate.OllamaGenerateRequestBuilder
Helper class for creating
OllamaGenerateRequest
objects using the builder-pattern.-
Method Summary
Modifier and TypeMethodDescriptionbuild()
static OllamaGenerateRequestBuilder
builder()
withContext
(String context) withFormat
(Map<String, Object> format) withImages
(List<File> imageFiles) withImagesBase64
(List<String> images) withKeepAlive
(String keepAlive) withOptions
(Options options) withPrompt
(String prompt) withRaw
(boolean raw) withStreaming
(boolean streaming) withSystem
(String system) withTemplate
(String template) withThink
(boolean think) withTools
(List<Tools.Tool> tools) withUseTools
(boolean useTools)
-
Method Details
-
builder
-
build
-
withPrompt
-
withTools
-
withModel
-
withGetJsonResponse
-
withOptions
-
withTemplate
-
withStreaming
-
withKeepAlive
-
withRaw
-
withThink
-
withUseTools
-
withFormat
-
withSystem
-
withContext
-
withImagesBase64
-
withImages
- Throws:
IOException
-