1package io.github.ollama4j.models.chat;
3import com.fasterxml.jackson.annotation.JsonValue;
4import io.github.ollama4j.exceptions.RoleNotFoundException;
7import java.util.ArrayList;
15 private static final List<OllamaChatMessageRole> roles =
new ArrayList<>();
23 private final String roleName;
26 this.roleName = roleName;
32 roles.add(customRole);
36 public static List<OllamaChatMessageRole>
getRoles() {
37 return new ArrayList<>(roles);
42 if (role.roleName.equals(roleName)) {
static List< OllamaChatMessageRole > getRoles()
static final OllamaChatMessageRole SYSTEM
static final OllamaChatMessageRole USER
static OllamaChatMessageRole newCustomRole(String roleName)
static OllamaChatMessageRole getRole(String roleName)
static final OllamaChatMessageRole TOOL
static final OllamaChatMessageRole ASSISTANT