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

io.quarkiverse.langchain4j.vertexai.runtime.PredictResponse Maven / Gradle / Ivy

package io.quarkiverse.langchain4j.vertexai.runtime;

import java.util.List;

public record PredictResponse(List predictions, Metadata metadata) {

    public record Predictions(List candidates) {

    }

    public record Candidate(String content, String author) {

    }

    public record Metadata(TokenMetadata tokenMetadata) {

        public record TokenMetadata(TokenCount inputTokenCount, TokenCount outputTokenCount) {

            public record TokenCount(Integer totalTokens) {

            }
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy