io.quarkiverse.langchain4j.vertexai.runtime.gemini.GenerateContentResponse Maven / Gradle / Ivy
package io.quarkiverse.langchain4j.vertexai.runtime.gemini;
import java.util.List;
public record GenerateContentResponse(List candidates, UsageMetadata usageMetadata) {
public record Candidate(Content content, FinishReason finishReason) {
public record Content(List parts) {
}
public record Part(String text, FunctionCall functionCall) {
}
}
public record UsageMetadata(Integer promptTokenCount, Integer candidatesTokenCount, Integer totalTokenCount) {
}
public enum FinishReason {
FINISH_REASON_UNSPECIFIED,
STOP,
MAX_TOKENS,
SAFETY,
RECITATION,
OTHER,
UNRECOGNIZED
}
}