io.quarkiverse.langchain4j.vertexai.runtime.gemini.GenerateContentRequest Maven / Gradle / Ivy
package io.quarkiverse.langchain4j.vertexai.runtime.gemini;
import java.util.List;
public record GenerateContentRequest(List contents, SystemInstruction systemInstruction, List tools,
GenerationConfig generationConfig) {
public record Content(String role, List parts) {
public record Part(String text, FunctionCall functionCall) {
public static Part ofText(String text) {
return new Part(text, null);
}
}
}
public record SystemInstruction(List parts) {
public static SystemInstruction ofContent(List contents) {
return new SystemInstruction(contents.stream().map(Part::new).toList());
}
public record Part(String text) {
}
}
public record Tool(List functionDeclarations) {
}
}