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

io.quarkiverse.langchain4j.vertexai.runtime.gemini.GenerateContentResponse Maven / Gradle / Ivy

There is a newer version: 0.21.0
Show newest version
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
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy