All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.quarkiverse.langchain4j.ollama.Message Maven / Gradle / Ivy

There is a newer version: 0.21.0
Show newest version
package io.quarkiverse.langchain4j.ollama;

import java.util.List;

public record Message(Role role, String content, List images) {

    public static Builder builder() {
        return new Builder();
    }

    public static class Builder {
        private Role role;
        private String content;
        private List images;

        public Builder role(Role role) {
            this.role = role;
            return this;
        }

        public Builder content(String content) {
            this.content = content;
            return this;
        }

        public Builder images(List images) {
            this.images = images;
            return this;
        }

        public Message build() {
            return new Message(role, content, images);
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy