public List<GenerateContentResponse> getHistory() {
    return history;
  }
Retrieves all the chunks in a stream of responses.
java-vertexai/google-cloud-vertexai/src/main/java/com/google/cloud/vertexai/generativeai/ResponseStreamIteratorWithHistory.java