Skip to content

Commit 421b144

Browse files
wangdan-fit2cloudhexiaonan-800
authored andcommitted
fix: intent node write context
1 parent 2c56367 commit 421b144

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

‎apps/application/workflow/nodes/intent_node/intent_node.py‎

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,10 @@ def execute(self):
9797
prompt = self._build_classification_prompt(str(user_input), branch)
9898
system = self._build_system_prompt()
9999
message_list = self._generate_message_list(system, prompt, history_message)
100-
self.write_context("message_list", message_list)
100+
self.write_context(
101+
"message_list",
102+
[{"content": m.content, "role": m.type} for m in message_list],
103+
)
101104

102105
try:
103106
self._check_cancelled()

0 commit comments

Comments
 (0)