jack 6 days ago
parent
commit
d570ac3ca5
1 changed files with 2 additions and 2 deletions
  1. 2 2
      app/core/runner/thread_runner.py

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

@@ -1,6 +1,6 @@
 from functools import partial
 import logging
-
+import json
 from typing import List
 from concurrent.futures import Executor
 
@@ -296,7 +296,7 @@ class ThreadRunner:
                     self.event_handler.pub_message_delta_tool(
                         message_id=llm_callback_handler.message.id,
                         index=0,
-                        content=tool_calls_with_outputs
+                        content=json.dumps(tool_calls_with_outputs)
                     )
                 except Exception as e:
                     RunStepService.to_failed(