diff --git a/java-vertexai/google-cloud-vertexai/src/main/java/com/google/cloud/vertexai/generativeai/ChatSession.java b/java-vertexai/google-cloud-vertexai/src/main/java/com/google/cloud/vertexai/generativeai/ChatSession.java index 3f4ad24702b6..3f1d1b1f9ba5 100644 --- a/java-vertexai/google-cloud-vertexai/src/main/java/com/google/cloud/vertexai/generativeai/ChatSession.java +++ b/java-vertexai/google-cloud-vertexai/src/main/java/com/google/cloud/vertexai/generativeai/ChatSession.java @@ -251,7 +251,12 @@ private Optional> getCurrentResponseStre } } - /** Set the history to a list of Content */ + /** + * Sets the history to a list of Content. + * + * @param history A list of {@link Content} containing interleaving conversation between "user" + * and "model". + */ public void setHistory(List history) { this.history = new ArrayList<>(history); }