Ollama4j
A Java library (wrapper/binding) for Ollama server.
Loading...
Searching...
No Matches
OllamaChatResponseModel.java
Go to the documentation of this file.
1/*
2 * Ollama4j - Java library for interacting with Ollama server.
3 * Copyright (c) 2025 Amith Koujalgi and contributors.
4 *
5 * Licensed under the MIT License (the "License");
6 * you may not use this file except in compliance with the License.
7 *
8*/
9package io.github.ollama4j.models.chat;
10
11import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
12import com.fasterxml.jackson.annotation.JsonProperty;
13import java.util.List;
14import lombok.Data;
15
16@Data
17@JsonIgnoreProperties(ignoreUnknown = true)
19 private String model;
20 private @JsonProperty("created_at") String createdAt;
21 private @JsonProperty("done_reason") String doneReason;
22 private boolean done;
23 private List<Integer> context;
24 private @JsonProperty("total_duration") Long totalDuration;
25 private @JsonProperty("load_duration") Long loadDuration;
26 private @JsonProperty("prompt_eval_duration") Long promptEvalDuration;
27 private @JsonProperty("eval_duration") Long evalDuration;
28 private @JsonProperty("prompt_eval_count") Integer promptEvalCount;
29 private @JsonProperty("eval_count") Integer evalCount;
30 private String error;
31 private OllamaChatMessage message;
32}