1package io.github.ollama4j.models.chat;
3import static io.github.ollama4j.utils.Utils.getObjectMapper;
5import com.fasterxml.jackson.core.JsonProcessingException;
6import com.fasterxml.jackson.databind.annotation.JsonSerialize;
8import io.github.ollama4j.utils.FileToBase64Serializer;
12import lombok.AllArgsConstructor;
14import lombok.NoArgsConstructor;
16import lombok.RequiredArgsConstructor;
25@RequiredArgsConstructor
33 private String content;
36 private List<byte[]> images;
41 return getObjectMapper().writerWithDefaultPrettyPrinter().writeValueAsString(
this);
42 }
catch (JsonProcessingException e) {
43 throw new RuntimeException(e);