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