Skip to content

Commit b571951

Browse files
committed
refactor(agent): remove serialization annotations from AgentState
Removed @serializable and @contextual annotations from AgentState class as they are no longer needed. Also cleaned up formatting in HistoryMessageProcessor.
1 parent 33cea27 commit b571951

File tree

1 file changed

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

1 file changed

+1
-5
lines changed

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

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,10 @@ import kotlinx.serialization.Contextual
88
import kotlinx.serialization.Serializable
99
import java.util.UUID
1010

11-
@Serializable
1211
data class AgentState(
1312
val conversationId: String = UUID.randomUUID().toString(),
14-
@Contextual
1513
val changeList: List<Change> = emptyList(),
16-
1714
val messages: List<Message> = emptyList(),
18-
1915
val usedTools: List<AgentTool> = emptyList(),
2016
)
2117

@@ -36,7 +32,7 @@ interface AgentProcessor {
3632
fun process()
3733
}
3834

39-
class HistoryMessageProcessor: AgentProcessor {
35+
class HistoryMessageProcessor : AgentProcessor {
4036
override fun process() {
4137
TODO("Not yet implemented")
4238
}

0 commit comments

Comments
 (0)