autoglm-gui 1.2.0__py3-none-any.whl → 1.3.0__py3-none-any.whl

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.
Files changed (34) hide show
  1. AutoGLM_GUI/adb_plus/__init__.py +6 -6
  2. AutoGLM_GUI/api/__init__.py +49 -15
  3. AutoGLM_GUI/api/agents.py +163 -209
  4. AutoGLM_GUI/api/dual_model.py +310 -0
  5. AutoGLM_GUI/api/mcp.py +134 -0
  6. AutoGLM_GUI/api/metrics.py +36 -0
  7. AutoGLM_GUI/config_manager.py +110 -6
  8. AutoGLM_GUI/dual_model/__init__.py +53 -0
  9. AutoGLM_GUI/dual_model/decision_model.py +664 -0
  10. AutoGLM_GUI/dual_model/dual_agent.py +917 -0
  11. AutoGLM_GUI/dual_model/protocols.py +354 -0
  12. AutoGLM_GUI/dual_model/vision_model.py +442 -0
  13. AutoGLM_GUI/exceptions.py +75 -3
  14. AutoGLM_GUI/metrics.py +283 -0
  15. AutoGLM_GUI/phone_agent_manager.py +264 -14
  16. AutoGLM_GUI/prompts.py +97 -0
  17. AutoGLM_GUI/schemas.py +40 -9
  18. AutoGLM_GUI/static/assets/{about-PcGX7dIG.js → about-CrBXGOgB.js} +1 -1
  19. AutoGLM_GUI/static/assets/chat-Di2fwu8V.js +124 -0
  20. AutoGLM_GUI/static/assets/dialog-CHJSPLHJ.js +45 -0
  21. AutoGLM_GUI/static/assets/{index-DOt5XNhh.js → index-9IaIXvyy.js} +1 -1
  22. AutoGLM_GUI/static/assets/index-Dt7cVkfR.js +12 -0
  23. AutoGLM_GUI/static/assets/index-Z0uYCPOO.css +1 -0
  24. AutoGLM_GUI/static/assets/{workflows-B1hgBC_O.js → workflows-DHadKApI.js} +1 -1
  25. AutoGLM_GUI/static/index.html +2 -2
  26. {autoglm_gui-1.2.0.dist-info → autoglm_gui-1.3.0.dist-info}/METADATA +11 -4
  27. {autoglm_gui-1.2.0.dist-info → autoglm_gui-1.3.0.dist-info}/RECORD +30 -20
  28. AutoGLM_GUI/static/assets/chat-B0FKL2ne.js +0 -124
  29. AutoGLM_GUI/static/assets/dialog-BSNX0L1i.js +0 -45
  30. AutoGLM_GUI/static/assets/index-BjYIY--m.css +0 -1
  31. AutoGLM_GUI/static/assets/index-CnEYDOXp.js +0 -11
  32. {autoglm_gui-1.2.0.dist-info → autoglm_gui-1.3.0.dist-info}/WHEEL +0 -0
  33. {autoglm_gui-1.2.0.dist-info → autoglm_gui-1.3.0.dist-info}/entry_points.txt +0 -0
  34. {autoglm_gui-1.2.0.dist-info → autoglm_gui-1.3.0.dist-info}/licenses/LICENSE +0 -0
@@ -0,0 +1,53 @@
1
+ """
2
+ 双模型协作模块
3
+
4
+ 大模型(GLM-4.7): 负责任务分析、决策制定、内容生成
5
+ 小模型(autoglm-phone): 负责屏幕识别、动作执行
6
+ """
7
+
8
+ from .decision_model import (
9
+ DecisionModel,
10
+ Decision,
11
+ TaskPlan,
12
+ ActionSequence,
13
+ ActionStep,
14
+ )
15
+ from .vision_model import VisionModel, ScreenDescription, ExecutionResult
16
+ from .dual_agent import DualModelAgent, DualModelCallbacks
17
+ from .protocols import (
18
+ DualModelConfig,
19
+ DecisionModelConfig,
20
+ DualModelState,
21
+ DualModelEvent,
22
+ DualModelEventType,
23
+ ModelRole,
24
+ ModelStage,
25
+ ThinkingMode,
26
+ DECISION_SYSTEM_PROMPT,
27
+ DECISION_SYSTEM_PROMPT_TURBO,
28
+ VISION_DESCRIBE_PROMPT,
29
+ )
30
+
31
+ __all__ = [
32
+ "DecisionModel",
33
+ "Decision",
34
+ "TaskPlan",
35
+ "ActionSequence",
36
+ "ActionStep",
37
+ "VisionModel",
38
+ "ScreenDescription",
39
+ "ExecutionResult",
40
+ "DualModelAgent",
41
+ "DualModelCallbacks",
42
+ "DualModelConfig",
43
+ "DecisionModelConfig",
44
+ "DualModelState",
45
+ "DualModelEvent",
46
+ "DualModelEventType",
47
+ "ModelRole",
48
+ "ModelStage",
49
+ "ThinkingMode",
50
+ "DECISION_SYSTEM_PROMPT",
51
+ "DECISION_SYSTEM_PROMPT_TURBO",
52
+ "VISION_DESCRIBE_PROMPT",
53
+ ]