Skip to content

Commit 06598a1

Browse files
committed
feat(agent): add resetMessages method to AgentStateService
1 parent 01bedd6 commit 06598a1

File tree

1 file changed

+5
-1
lines changed
  • core/src/main/kotlin/cc/unitmesh/devti/observer/agent

1 file changed

+5
-1
lines changed

core/src/main/kotlin/cc/unitmesh/devti/observer/agent/AgentState.kt

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,14 @@ class AgentStateService {
2525

2626
}
2727

28-
fun addChanges(val fileName: String) {
28+
fun addChanges(fileName: String) {
2929
// todo changeList.add()
3030
}
3131

32+
fun resetMessages() {
33+
state.messages = emptyList()
34+
}
35+
3236
/**
3337
* Call some LLM to compress it or use some other method to compress the history
3438
*/

0 commit comments

Comments
 (0)