更新 task_completed_number

This commit is contained in:
yuruo 2025-03-29 11:18:24 +08:00
parent 0f9b9954b7
commit 5787e2167b
2 changed files with 287 additions and 1 deletions

283
task_demonstration.json Normal file

File diff suppressed because one or more lines are too long

View File

@ -78,7 +78,10 @@ class AgentWorker(QThread):
# Update task progress
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
if "reasoning" in content_json: