myagent-ai 1.9.7 → 1.9.8

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.
@@ -551,20 +551,20 @@ class MainAgent(BaseAgent):
551
551
  )
552
552
 
553
553
  # Step 9: 处理 askuser(askuser 非空时,finish 必为 true)
554
- if parsed.askuser:
555
- logger.info(f"[{task_id}] 需要询问用户: {parsed.askuser[:100]}")
556
- context.working_memory["final_response"] = parsed.askuser
557
- context.working_memory["ask_user"] = parsed.askuser
554
+ if parsed.ask_user:
555
+ logger.info(f"[{task_id}] 需要询问用户: {parsed.ask_user[:100]}")
556
+ context.working_memory["final_response"] = parsed.ask_user
557
+ context.working_memory["ask_user"] = parsed.ask_user
558
558
  await self._emit_v2_event(
559
559
  "v2_ask_user",
560
- {"question": parsed.askuser},
560
+ {"question": parsed.ask_user},
561
561
  stream_callback,
562
562
  )
563
563
  if self.memory:
564
564
  self.memory.add_short_term(
565
565
  session_id=context.session_id,
566
566
  role="assistant",
567
- content=parsed.askuser,
567
+ content=parsed.ask_user,
568
568
  )
569
569
  break
570
570
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "myagent-ai",
3
- "version": "1.9.7",
3
+ "version": "1.9.8",
4
4
  "description": "本地桌面端执行型AI助手 - Open Interpreter 风格 | Local Desktop Execution-Oriented AI Assistant",
5
5
  "main": "main.py",
6
6
  "bin": {