jack 3 週間 前
コミット
6cc68d9a6d
1 ファイル変更3 行追加2 行削除
  1. 3 2
      app/core/runner/thread_runner.py

+ 3 - 2
app/core/runner/thread_runner.py

@@ -124,7 +124,7 @@ class ThreadRunner:
                 session=self.session, thread_id=run.thread_id
             )
         )
-
+        """
         tool_call_messages = []
         for step in run_steps:
             if step.type == "tool_calls" and step.status == "completed":
@@ -132,11 +132,12 @@ class ThreadRunner:
                     self.__convert_assistant_tool_calls_to_chat_messages(step)
                 )
         tool_call_messages = tool_call_messages[:2]
+        """
         # memory
         messages = (
             assistant_system_message
             + memory.integrate_context(chat_messages)
-            + tool_call_messages
+            # + tool_call_messages
         )
 
         logging.info("messages: run %s", run)