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

Public Member Functions

OllamaChatRequest build ()
 
void reset ()
 
OllamaChatRequestBuilder withMessage (OllamaChatMessageRole role, String content, List< File > images)
 
OllamaChatRequestBuilder withMessage (OllamaChatMessageRole role, String content, String... imageUrls)
 
OllamaChatRequestBuilder withMessages (List< OllamaChatMessage > messages)
 
OllamaChatRequestBuilder withOptions (Options options)
 
OllamaChatRequestBuilder withGetJsonResponse ()
 
OllamaChatRequestBuilder withTemplate (String template)
 
OllamaChatRequestBuilder withStreaming ()
 
OllamaChatRequestBuilder withKeepAlive (String keepAlive)
 

Static Public Member Functions

static OllamaChatRequestBuilder getInstance (String model)
 

Detailed Description

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

Definition at line 19 of file OllamaChatRequestBuilder.java.

Member Function Documentation

◆ build()

OllamaChatRequest io.github.ollama4j.models.chat.OllamaChatRequestBuilder.build ( )

Definition at line 33 of file OllamaChatRequestBuilder.java.

◆ getInstance()

static OllamaChatRequestBuilder io.github.ollama4j.models.chat.OllamaChatRequestBuilder.getInstance ( String model)
static

Definition at line 29 of file OllamaChatRequestBuilder.java.

◆ reset()

void io.github.ollama4j.models.chat.OllamaChatRequestBuilder.reset ( )

Definition at line 37 of file OllamaChatRequestBuilder.java.

◆ withGetJsonResponse()

OllamaChatRequestBuilder io.github.ollama4j.models.chat.OllamaChatRequestBuilder.withGetJsonResponse ( )

Definition at line 86 of file OllamaChatRequestBuilder.java.

◆ withKeepAlive()

OllamaChatRequestBuilder io.github.ollama4j.models.chat.OllamaChatRequestBuilder.withKeepAlive ( String keepAlive)

Definition at line 101 of file OllamaChatRequestBuilder.java.

◆ withMessage() [1/2]

OllamaChatRequestBuilder io.github.ollama4j.models.chat.OllamaChatRequestBuilder.withMessage ( OllamaChatMessageRole role,
String content,
List< File > images )

Definition at line 41 of file OllamaChatRequestBuilder.java.

◆ withMessage() [2/2]

OllamaChatRequestBuilder io.github.ollama4j.models.chat.OllamaChatRequestBuilder.withMessage ( OllamaChatMessageRole role,
String content,
String... imageUrls )

Definition at line 57 of file OllamaChatRequestBuilder.java.

◆ withMessages()

OllamaChatRequestBuilder io.github.ollama4j.models.chat.OllamaChatRequestBuilder.withMessages ( List< OllamaChatMessage > messages)

Definition at line 77 of file OllamaChatRequestBuilder.java.

◆ withOptions()

OllamaChatRequestBuilder io.github.ollama4j.models.chat.OllamaChatRequestBuilder.withOptions ( Options options)

Definition at line 81 of file OllamaChatRequestBuilder.java.

◆ withStreaming()

OllamaChatRequestBuilder io.github.ollama4j.models.chat.OllamaChatRequestBuilder.withStreaming ( )

Definition at line 96 of file OllamaChatRequestBuilder.java.

◆ withTemplate()

OllamaChatRequestBuilder io.github.ollama4j.models.chat.OllamaChatRequestBuilder.withTemplate ( String template)

Definition at line 91 of file OllamaChatRequestBuilder.java.


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