myagent-ai 1.23.39 → 1.23.40
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/agents/main_agent.py +2 -2
- package/package.json +1 -1
package/agents/main_agent.py
CHANGED
|
@@ -1614,9 +1614,9 @@ class MainAgent(BaseAgent):
|
|
|
1614
1614
|
_tp.initialize()
|
|
1615
1615
|
_tp.save_task(
|
|
1616
1616
|
task_id=task_id,
|
|
1617
|
-
description=context.
|
|
1617
|
+
description=context.user_message or "未完成任务",
|
|
1618
1618
|
session_id=context.session_id or "",
|
|
1619
|
-
agent_path=context.agent_path or "",
|
|
1619
|
+
agent_path=context.metadata.get("agent_path", "") or "",
|
|
1620
1620
|
status="pending",
|
|
1621
1621
|
metadata={"iterations": self._iteration_count, "reason": "达到最大迭代次数"},
|
|
1622
1622
|
last_message=f"达到最大迭代次数 {max_iter},共执行 {self._iteration_count} 次",
|