bump version to 1.8.7 in pom.xml and add rewindTurn method to Conversation class
This commit is contained in:
@@ -54,6 +54,15 @@ public final class Conversation {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public void rewindTurn() {
|
||||
synchronized (this.conversation) {
|
||||
if (this.conversation.size() > 1) {
|
||||
this.conversation.removeLast();
|
||||
this.conversation.removeLast();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public List<Turn> getConversation() {
|
||||
return Collections.unmodifiableList(this.conversation);
|
||||
|
||||
Reference in New Issue
Block a user