Ollama4j
A Java library (wrapper/binding) for Ollama server.
Loading...
Searching...
No Matches
io.github.ollama4j.models.generate.OllamaGenerateRequestBuilder Class Reference

Public Member Functions

OllamaGenerateRequest build ()
 
OllamaGenerateRequestBuilder withPrompt (String prompt)
 
OllamaGenerateRequestBuilder withGetJsonResponse ()
 
OllamaGenerateRequestBuilder withOptions (Options options)
 
OllamaGenerateRequestBuilder withTemplate (String template)
 
OllamaGenerateRequestBuilder withStreaming ()
 
OllamaGenerateRequestBuilder withKeepAlive (String keepAlive)
 

Static Public Member Functions

static OllamaGenerateRequestBuilder getInstance (String model)
 

Detailed Description

Helper class for creating OllamaGenerateRequest objects using the builder-pattern.

Definition at line 9 of file OllamaGenerateRequestBuilder.java.

Member Function Documentation

◆ build()

OllamaGenerateRequest io.github.ollama4j.models.generate.OllamaGenerateRequestBuilder.build ( )

Definition at line 21 of file OllamaGenerateRequestBuilder.java.

◆ getInstance()

static OllamaGenerateRequestBuilder io.github.ollama4j.models.generate.OllamaGenerateRequestBuilder.getInstance ( String model)
static

Definition at line 17 of file OllamaGenerateRequestBuilder.java.

◆ withGetJsonResponse()

OllamaGenerateRequestBuilder io.github.ollama4j.models.generate.OllamaGenerateRequestBuilder.withGetJsonResponse ( )

Definition at line 30 of file OllamaGenerateRequestBuilder.java.

◆ withKeepAlive()

OllamaGenerateRequestBuilder io.github.ollama4j.models.generate.OllamaGenerateRequestBuilder.withKeepAlive ( String keepAlive)

Definition at line 50 of file OllamaGenerateRequestBuilder.java.

◆ withOptions()

OllamaGenerateRequestBuilder io.github.ollama4j.models.generate.OllamaGenerateRequestBuilder.withOptions ( Options options)

Definition at line 35 of file OllamaGenerateRequestBuilder.java.

◆ withPrompt()

OllamaGenerateRequestBuilder io.github.ollama4j.models.generate.OllamaGenerateRequestBuilder.withPrompt ( String prompt)

Definition at line 25 of file OllamaGenerateRequestBuilder.java.

◆ withStreaming()

OllamaGenerateRequestBuilder io.github.ollama4j.models.generate.OllamaGenerateRequestBuilder.withStreaming ( )

Definition at line 45 of file OllamaGenerateRequestBuilder.java.

◆ withTemplate()

OllamaGenerateRequestBuilder io.github.ollama4j.models.generate.OllamaGenerateRequestBuilder.withTemplate ( String template)

Definition at line 40 of file OllamaGenerateRequestBuilder.java.


The documentation for this class was generated from the following file: