mirror of
https://github.com/yuruotong1/autoMate.git
synced 2026-03-22 04:57:18 +08:00
更新 task_completed_number
This commit is contained in:
283
task_demonstration.json
Normal file
283
task_demonstration.json
Normal file
File diff suppressed because one or more lines are too long
@@ -78,7 +78,10 @@ class AgentWorker(QThread):
|
|||||||
|
|
||||||
# Update task progress
|
# Update task progress
|
||||||
content_json = json.loads(self.state["messages"][-1]["content"])
|
content_json = json.loads(self.state["messages"][-1]["content"])
|
||||||
task_completed_number = content_json["current_task_id"]
|
if "current_task_id" in content_json:
|
||||||
|
task_completed_number = content_json["current_task_id"]
|
||||||
|
else:
|
||||||
|
task_completed_number = 0
|
||||||
|
|
||||||
# Update status with reasoning
|
# Update status with reasoning
|
||||||
if "reasoning" in content_json:
|
if "reasoning" in content_json:
|
||||||
|
|||||||
Reference in New Issue
Block a user