Skip to content

Commit 821d4e3

Browse files
committed
feat(agent): enhance AgentState with additional properties
- Add originIntention: to store the user's initial question- Add environment: to log environment variables, potentially related to ChatContextProvider
1 parent 0225dd2 commit 821d4e3

File tree

1 file changed

+13
-0
lines changed
  • core/src/main/kotlin/cc/unitmesh/devti/observer/agent

1 file changed

+13
-0
lines changed

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

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,22 @@ import com.intellij.util.diff.Diff.Change
66
import java.util.UUID
77

88
data class AgentState(
9+
/**
10+
* First question of user
11+
*/
12+
var originIntention: String = "",
13+
914
var conversationId: String = UUID.randomUUID().toString(),
15+
1016
var changeList: List<Change> = emptyList(),
17+
1118
var messages: List<Message> = emptyList(),
19+
1220
var usedTools: List<AgentTool> = emptyList(),
21+
22+
/**
23+
* Logging environment variables, maybe related to [cc.unitmesh.devti.provider.context.ChatContextProvider]
24+
*/
25+
var environment: Map<String, String> = emptyMap()
1326
)
1427

0 commit comments

Comments
 (0)