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

Public Member Functions

String toString ()
 

Static Public Member Functions

static OllamaChatMessageRole newCustomRole (String roleName)
 
static List< OllamaChatMessageRolegetRoles ()
 
static OllamaChatMessageRole getRole (String roleName) throws RoleNotFoundException
 

Static Public Attributes

static final OllamaChatMessageRole SYSTEM = new OllamaChatMessageRole("system")
 
static final OllamaChatMessageRole USER = new OllamaChatMessageRole("user")
 
static final OllamaChatMessageRole ASSISTANT = new OllamaChatMessageRole("assistant")
 
static final OllamaChatMessageRole TOOL = new OllamaChatMessageRole("tool")
 

Detailed Description

Defines the possible Chat Message roles.

Definition at line 14 of file OllamaChatMessageRole.java.

Member Function Documentation

◆ getRole()

static OllamaChatMessageRole io.github.ollama4j.models.chat.OllamaChatMessageRole.getRole ( String roleName) throws RoleNotFoundException
static

Definition at line 40 of file OllamaChatMessageRole.java.

◆ getRoles()

static List< OllamaChatMessageRole > io.github.ollama4j.models.chat.OllamaChatMessageRole.getRoles ( )
static

Definition at line 36 of file OllamaChatMessageRole.java.

◆ newCustomRole()

static OllamaChatMessageRole io.github.ollama4j.models.chat.OllamaChatMessageRole.newCustomRole ( String roleName)
static

Definition at line 30 of file OllamaChatMessageRole.java.

◆ toString()

String io.github.ollama4j.models.chat.OllamaChatMessageRole.toString ( )

Definition at line 50 of file OllamaChatMessageRole.java.

Member Data Documentation

◆ ASSISTANT

final OllamaChatMessageRole io.github.ollama4j.models.chat.OllamaChatMessageRole.ASSISTANT = new OllamaChatMessageRole("assistant")
static

Definition at line 19 of file OllamaChatMessageRole.java.

◆ SYSTEM

final OllamaChatMessageRole io.github.ollama4j.models.chat.OllamaChatMessageRole.SYSTEM = new OllamaChatMessageRole("system")
static

Definition at line 17 of file OllamaChatMessageRole.java.

◆ TOOL

final OllamaChatMessageRole io.github.ollama4j.models.chat.OllamaChatMessageRole.TOOL = new OllamaChatMessageRole("tool")
static

Definition at line 20 of file OllamaChatMessageRole.java.

◆ USER

final OllamaChatMessageRole io.github.ollama4j.models.chat.OllamaChatMessageRole.USER = new OllamaChatMessageRole("user")
static

Definition at line 18 of file OllamaChatMessageRole.java.


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