From 36f397e57f93d6e37aae6ff9cfe4c25074f861f6 Mon Sep 17 00:00:00 2001 From: "copybara-service[bot]" <56741989+copybara-service[bot]@users.noreply.github.com> Date: Wed, 27 Mar 2024 14:49:07 -0400 Subject: [PATCH] chore: [vertexai] Add javadoc for setHistory method. (#10623) PiperOrigin-RevId: 619590847 Co-authored-by: Zhenyi Qi --- .../google/cloud/vertexai/generativeai/ChatSession.java | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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); }