1 parent 2c56367 commit 421b144Copy full SHA for 421b144
1 file changed
apps/application/workflow/nodes/intent_node/intent_node.py
@@ -97,7 +97,10 @@ def execute(self):
97
prompt = self._build_classification_prompt(str(user_input), branch)
98
system = self._build_system_prompt()
99
message_list = self._generate_message_list(system, prompt, history_message)
100
- self.write_context("message_list", message_list)
+ self.write_context(
101
+ "message_list",
102
+ [{"content": m.content, "role": m.type} for m in message_list],
103
+ )
104
105
try:
106
self._check_cancelled()
0 commit comments