axc-agent-engine 2.2.0__tar.gz → 2.3.2__tar.gz

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 (444) hide show
  1. axc_agent_engine-2.3.2/ENGINE_DEVELOPMENT_RULES.md +79 -0
  2. axc_agent_engine-2.3.2/Makefile +35 -0
  3. {axc_agent_engine-2.2.0 → axc_agent_engine-2.3.2}/PKG-INFO +218 -48
  4. {axc_agent_engine-2.2.0 → axc_agent_engine-2.3.2}/README.md +217 -47
  5. {axc_agent_engine-2.2.0 → axc_agent_engine-2.3.2}/README.zh-CN.md +218 -48
  6. {axc_agent_engine-2.2.0 → axc_agent_engine-2.3.2}/axc_agent_engine/__init__.py +5 -8
  7. axc_agent_engine-2.3.2/axc_agent_engine/_version.py +4 -0
  8. {axc_agent_engine-2.2.0 → axc_agent_engine-2.3.2}/axc_agent_engine/agent.py +62 -45
  9. {axc_agent_engine-2.2.0 → axc_agent_engine-2.3.2}/axc_agent_engine/api/app.py +1 -1
  10. {axc_agent_engine-2.2.0 → axc_agent_engine-2.3.2}/axc_agent_engine/cli.py +1 -1
  11. {axc_agent_engine-2.2.0 → axc_agent_engine-2.3.2}/axc_agent_engine/core/context.py +15 -7
  12. axc_agent_engine-2.3.2/axc_agent_engine/core/dispatcher.py +424 -0
  13. {axc_agent_engine-2.2.0 → axc_agent_engine-2.3.2}/axc_agent_engine/core/errors.py +5 -1
  14. {axc_agent_engine-2.2.0 → axc_agent_engine-2.3.2}/axc_agent_engine/core/events.py +66 -10
  15. {axc_agent_engine-2.2.0 → axc_agent_engine-2.3.2}/axc_agent_engine/core/execution_run.py +13 -25
  16. {axc_agent_engine-2.2.0 → axc_agent_engine-2.3.2}/axc_agent_engine/core/executor.py +33 -3
  17. axc_agent_engine-2.3.2/axc_agent_engine/core/input_messages.py +66 -0
  18. {axc_agent_engine-2.2.0 → axc_agent_engine-2.3.2}/axc_agent_engine/core/llm_caller.py +52 -38
  19. {axc_agent_engine-2.2.0 → axc_agent_engine-2.3.2}/axc_agent_engine/core/message_store.py +4 -2
  20. {axc_agent_engine-2.2.0 → axc_agent_engine-2.3.2}/axc_agent_engine/core/plugin_manager.py +106 -67
  21. {axc_agent_engine-2.2.0 → axc_agent_engine-2.3.2}/axc_agent_engine/core/react_kernel.py +1 -0
  22. {axc_agent_engine-2.2.0 → axc_agent_engine-2.3.2}/axc_agent_engine/core/react_loop.py +79 -8
  23. axc_agent_engine-2.3.2/axc_agent_engine/core/run_context.py +67 -0
  24. {axc_agent_engine-2.2.0 → axc_agent_engine-2.3.2}/axc_agent_engine/core/run_request.py +16 -5
  25. {axc_agent_engine-2.2.0 → axc_agent_engine-2.3.2}/axc_agent_engine/core/schema.py +15 -5
  26. {axc_agent_engine-2.2.0 → axc_agent_engine-2.3.2}/axc_agent_engine/core/session.py +3 -2
  27. {axc_agent_engine-2.2.0 → axc_agent_engine-2.3.2}/axc_agent_engine/engine.py +46 -10
  28. {axc_agent_engine-2.2.0 → axc_agent_engine-2.3.2}/axc_agent_engine/observability/audit.py +7 -2
  29. {axc_agent_engine-2.2.0 → axc_agent_engine-2.3.2}/axc_agent_engine/planning/checkpointing.py +0 -5
  30. axc_agent_engine-2.3.2/axc_agent_engine/plugins/__init__.py +20 -0
  31. {axc_agent_engine-2.2.0 → axc_agent_engine-2.3.2}/axc_agent_engine/plugins/base.py +1 -2
  32. {axc_agent_engine-2.2.0 → axc_agent_engine-2.3.2}/axc_agent_engine/plugins/builtin/__init__.py +1 -21
  33. axc_agent_engine-2.2.0/axc_agent_engine/plugins/builtin/builtin_tools/result_store.py → axc_agent_engine-2.3.2/axc_agent_engine/plugins/builtin/builtin_tools/artifact_store.py +3 -3
  34. axc_agent_engine-2.3.2/axc_agent_engine/plugins/builtin/builtin_tools/artifact_tools.py +104 -0
  35. {axc_agent_engine-2.2.0 → axc_agent_engine-2.3.2}/axc_agent_engine/plugins/builtin/builtin_tools/command_tools.py +1 -9
  36. axc_agent_engine-2.3.2/axc_agent_engine/plugins/builtin/builtin_tools/file_tools.py +451 -0
  37. {axc_agent_engine-2.2.0 → axc_agent_engine-2.3.2}/axc_agent_engine/plugins/builtin/builtin_tools/http_tools.py +31 -14
  38. {axc_agent_engine-2.2.0 → axc_agent_engine-2.3.2}/axc_agent_engine/plugins/builtin/builtin_tools/plugin.py +35 -29
  39. axc_agent_engine-2.3.2/axc_agent_engine/plugins/builtin/builtin_tools/presenter.py +42 -0
  40. axc_agent_engine-2.3.2/axc_agent_engine/plugins/builtin/builtin_tools/registry.py +4 -0
  41. {axc_agent_engine-2.2.0 → axc_agent_engine-2.3.2}/axc_agent_engine/plugins/builtin/builtin_tools/support.py +0 -7
  42. axc_agent_engine-2.3.2/axc_agent_engine/plugins/builtin/builtin_tools/tool_definitions.py +359 -0
  43. {axc_agent_engine-2.2.0 → axc_agent_engine-2.3.2}/axc_agent_engine/plugins/builtin/collaboration/plugin.py +40 -5
  44. axc_agent_engine-2.3.2/axc_agent_engine/plugins/builtin/common.py +98 -0
  45. {axc_agent_engine-2.2.0 → axc_agent_engine-2.3.2}/axc_agent_engine/plugins/builtin/compress/context/boundary.py +3 -0
  46. {axc_agent_engine-2.2.0 → axc_agent_engine-2.3.2}/axc_agent_engine/plugins/builtin/compress/context/file_cache.py +9 -32
  47. {axc_agent_engine-2.2.0 → axc_agent_engine-2.3.2}/axc_agent_engine/plugins/builtin/compress/context/models.py +0 -1
  48. axc_agent_engine-2.3.2/axc_agent_engine/plugins/builtin/compress/context/packer.py +90 -0
  49. {axc_agent_engine-2.2.0 → axc_agent_engine-2.3.2}/axc_agent_engine/plugins/builtin/compress/context/recent_window.py +10 -0
  50. axc_agent_engine-2.3.2/axc_agent_engine/plugins/builtin/compress/context/tool_result.py +36 -0
  51. {axc_agent_engine-2.2.0 → axc_agent_engine-2.3.2}/axc_agent_engine/plugins/builtin/compress/context/tool_summary.py +5 -14
  52. {axc_agent_engine-2.2.0 → axc_agent_engine-2.3.2}/axc_agent_engine/plugins/builtin/compress/plugin.py +60 -29
  53. {axc_agent_engine-2.2.0 → axc_agent_engine-2.3.2}/axc_agent_engine/plugins/builtin/config_schemas.py +22 -47
  54. {axc_agent_engine-2.2.0 → axc_agent_engine-2.3.2}/axc_agent_engine/plugins/builtin/cost_statistics/plugin.py +1 -1
  55. {axc_agent_engine-2.2.0 → axc_agent_engine-2.3.2}/axc_agent_engine/plugins/builtin/graph/config.py +19 -9
  56. {axc_agent_engine-2.2.0 → axc_agent_engine-2.3.2}/axc_agent_engine/plugins/builtin/graph/plugin.py +6 -3
  57. axc_agent_engine-2.3.2/axc_agent_engine/plugins/builtin/graph/presenter.py +78 -0
  58. {axc_agent_engine-2.2.0 → axc_agent_engine-2.3.2}/axc_agent_engine/plugins/builtin/graph/service.py +25 -25
  59. {axc_agent_engine-2.2.0 → axc_agent_engine-2.3.2}/axc_agent_engine/plugins/builtin/graph/source_loader.py +24 -33
  60. {axc_agent_engine-2.2.0 → axc_agent_engine-2.3.2}/axc_agent_engine/plugins/builtin/graph/tool_handlers.py +6 -3
  61. {axc_agent_engine-2.2.0 → axc_agent_engine-2.3.2}/axc_agent_engine/plugins/builtin/graph/utils.py +1 -1
  62. {axc_agent_engine-2.2.0 → axc_agent_engine-2.3.2}/axc_agent_engine/plugins/builtin/hooks/plugin.py +39 -11
  63. {axc_agent_engine-2.2.0 → axc_agent_engine-2.3.2}/axc_agent_engine/plugins/builtin/human_in_the_loop/plugin.py +14 -5
  64. axc_agent_engine-2.3.2/axc_agent_engine/plugins/builtin/knowledge/plugin.py +616 -0
  65. {axc_agent_engine-2.2.0 → axc_agent_engine-2.3.2}/axc_agent_engine/plugins/builtin/knowledge/support/__init__.py +2 -4
  66. {axc_agent_engine-2.2.0 → axc_agent_engine-2.3.2}/axc_agent_engine/plugins/builtin/knowledge/support/chunker.py +2 -2
  67. {axc_agent_engine-2.2.0 → axc_agent_engine-2.3.2}/axc_agent_engine/plugins/builtin/knowledge/support/retrieval.py +9 -102
  68. {axc_agent_engine-2.2.0 → axc_agent_engine-2.3.2}/axc_agent_engine/plugins/builtin/mcp/plugin.py +11 -8
  69. {axc_agent_engine-2.2.0 → axc_agent_engine-2.3.2}/axc_agent_engine/plugins/builtin/mcp/support/connection.py +3 -2
  70. axc_agent_engine-2.3.2/axc_agent_engine/plugins/builtin/mcp/support/transports/__init__.py +16 -0
  71. axc_agent_engine-2.2.0/axc_agent_engine/plugins/builtin/mcp/support/transports/__init__.py → axc_agent_engine-2.3.2/axc_agent_engine/plugins/builtin/mcp/support/transports/factory.py +1 -10
  72. {axc_agent_engine-2.2.0 → axc_agent_engine-2.3.2}/axc_agent_engine/plugins/builtin/mcp/support/transports/sdk.py +1 -1
  73. {axc_agent_engine-2.2.0 → axc_agent_engine-2.3.2}/axc_agent_engine/plugins/builtin/memory/plugin.py +27 -138
  74. {axc_agent_engine-2.2.0 → axc_agent_engine-2.3.2}/axc_agent_engine/plugins/builtin/memory/support/__init__.py +0 -6
  75. {axc_agent_engine-2.2.0 → axc_agent_engine-2.3.2}/axc_agent_engine/plugins/builtin/output_format/plugin.py +3 -6
  76. {axc_agent_engine-2.2.0 → axc_agent_engine-2.3.2}/axc_agent_engine/plugins/builtin/output_format/support/service.py +7 -10
  77. {axc_agent_engine-2.2.0 → axc_agent_engine-2.3.2}/axc_agent_engine/plugins/builtin/post_process/plugin.py +1 -1
  78. {axc_agent_engine-2.2.0 → axc_agent_engine-2.3.2}/axc_agent_engine/plugins/builtin/reflexion/plugin.py +2 -3
  79. axc_agent_engine-2.3.2/axc_agent_engine/plugins/builtin/registry.py +41 -0
  80. {axc_agent_engine-2.2.0 → axc_agent_engine-2.3.2}/axc_agent_engine/plugins/builtin/repetition_guard/plugin.py +37 -11
  81. {axc_agent_engine-2.2.0 → axc_agent_engine-2.3.2}/axc_agent_engine/plugins/builtin/risk_guard/plugin.py +6 -4
  82. {axc_agent_engine-2.2.0 → axc_agent_engine-2.3.2}/axc_agent_engine/plugins/builtin/safety/plugin.py +0 -3
  83. {axc_agent_engine-2.2.0 → axc_agent_engine-2.3.2}/axc_agent_engine/plugins/builtin/skill/plugin.py +143 -72
  84. {axc_agent_engine-2.2.0 → axc_agent_engine-2.3.2}/axc_agent_engine/plugins/builtin/swarm/plugin.py +69 -12
  85. {axc_agent_engine-2.2.0 → axc_agent_engine-2.3.2}/axc_agent_engine/plugins/builtin/tracing/plugin.py +139 -64
  86. {axc_agent_engine-2.2.0 → axc_agent_engine-2.3.2}/axc_agent_engine/plugins/config_schema.py +57 -16
  87. axc_agent_engine-2.2.0/axc_agent_engine/plugins/__init__.py → axc_agent_engine-2.3.2/axc_agent_engine/plugins/context.py +3 -12
  88. {axc_agent_engine-2.2.0 → axc_agent_engine-2.3.2}/axc_agent_engine/plugins/loader.py +11 -13
  89. {axc_agent_engine-2.2.0 → axc_agent_engine-2.3.2}/axc_agent_engine/runtime/checkpoint.py +7 -2
  90. {axc_agent_engine-2.2.0 → axc_agent_engine-2.3.2}/axc_agent_engine/runtime/input.py +5 -0
  91. {axc_agent_engine-2.2.0 → axc_agent_engine-2.3.2}/axc_agent_engine/runtime/policy.py +8 -0
  92. {axc_agent_engine-2.2.0 → axc_agent_engine-2.3.2}/axc_agent_engine/runtime/risk.py +34 -22
  93. axc_agent_engine-2.3.2/axc_agent_engine/runtime/run_control.py +73 -0
  94. {axc_agent_engine-2.2.0 → axc_agent_engine-2.3.2}/axc_agent_engine/runtime/sandbox_code.py +0 -4
  95. {axc_agent_engine-2.2.0 → axc_agent_engine-2.3.2}/axc_agent_engine/runtime/sandbox_local.py +3 -7
  96. {axc_agent_engine-2.2.0 → axc_agent_engine-2.3.2}/axc_agent_engine/runtime/sandbox_models.py +0 -4
  97. {axc_agent_engine-2.2.0 → axc_agent_engine-2.3.2}/axc_agent_engine/runtime/sandbox_utils.py +2 -4
  98. {axc_agent_engine-2.2.0 → axc_agent_engine-2.3.2}/axc_agent_engine/runtime/sandbox_workspace.py +0 -2
  99. axc_agent_engine-2.3.2/axc_agent_engine/runtime/tasks.py +19 -0
  100. axc_agent_engine-2.3.2/axc_agent_engine/sidecar/agent_selector/__init__.py +10 -0
  101. axc_agent_engine-2.2.0/axc_agent_engine/sidecar/agent_selector/__init__.py → axc_agent_engine-2.3.2/axc_agent_engine/sidecar/agent_selector/core.py +2 -1
  102. axc_agent_engine-2.3.2/axc_agent_engine/sidecar/cost_optimizer/__init__.py +19 -0
  103. axc_agent_engine-2.3.2/axc_agent_engine/sidecar/distiller/__init__.py +17 -0
  104. axc_agent_engine-2.2.0/axc_agent_engine/sidecar/distiller/__init__.py → axc_agent_engine-2.3.2/axc_agent_engine/sidecar/distiller/core.py +2 -2
  105. {axc_agent_engine-2.2.0 → axc_agent_engine-2.3.2}/axc_agent_engine/sidecar/eval/runner.py +128 -9
  106. {axc_agent_engine-2.2.0 → axc_agent_engine-2.3.2}/axc_agent_engine/sidecar/eval/store.py +20 -3
  107. axc_agent_engine-2.3.2/axc_agent_engine/sidecar/failure_miner/__init__.py +19 -0
  108. axc_agent_engine-2.2.0/axc_agent_engine/sidecar/failure_miner/__init__.py → axc_agent_engine-2.3.2/axc_agent_engine/sidecar/failure_miner/core.py +1 -1
  109. {axc_agent_engine-2.2.0 → axc_agent_engine-2.3.2}/axc_agent_engine/sidecar/multi_agent/events.py +4 -0
  110. axc_agent_engine-2.3.2/axc_agent_engine/sidecar/multi_agent/scheduler/__init__.py +5 -0
  111. {axc_agent_engine-2.2.0 → axc_agent_engine-2.3.2}/axc_agent_engine/sidecar/multi_agent/session.py +82 -13
  112. {axc_agent_engine-2.2.0 → axc_agent_engine-2.3.2}/axc_agent_engine/sidecar/multi_agent/simulation_session.py +2 -2
  113. axc_agent_engine-2.3.2/axc_agent_engine/sidecar/multi_agent/stop_condition/__init__.py +5 -0
  114. axc_agent_engine-2.3.2/axc_agent_engine/sidecar/orchestration/__init__.py +19 -0
  115. axc_agent_engine-2.2.0/axc_agent_engine/sidecar/orchestration/__init__.py → axc_agent_engine-2.3.2/axc_agent_engine/sidecar/orchestration/service.py +3 -2
  116. {axc_agent_engine-2.2.0 → axc_agent_engine-2.3.2}/axc_agent_engine/sidecar/simulation/adapters.py +8 -2
  117. {axc_agent_engine-2.2.0 → axc_agent_engine-2.3.2}/axc_agent_engine/sidecar/simulation/defaults.py +8 -1
  118. {axc_agent_engine-2.2.0 → axc_agent_engine-2.3.2}/axc_agent_engine/sidecar/simulation/interfaces.py +8 -2
  119. {axc_agent_engine-2.2.0 → axc_agent_engine-2.3.2}/axc_agent_engine/sidecar/simulation/models.py +2 -1
  120. {axc_agent_engine-2.2.0 → axc_agent_engine-2.3.2}/axc_agent_engine/sidecar/simulation/modes.py +3 -2
  121. {axc_agent_engine-2.2.0 → axc_agent_engine-2.3.2}/axc_agent_engine/sidecar/simulation/runner.py +62 -5
  122. {axc_agent_engine-2.2.0 → axc_agent_engine-2.3.2}/axc_agent_engine/storage/__init__.py +3 -2
  123. axc_agent_engine-2.3.2/axc_agent_engine/storage/artifact_store.py +367 -0
  124. {axc_agent_engine-2.2.0 → axc_agent_engine-2.3.2}/axc_agent_engine/storage/protocols.py +2 -13
  125. {axc_agent_engine-2.2.0 → axc_agent_engine-2.3.2}/axc_agent_engine/tools/context.py +5 -5
  126. {axc_agent_engine-2.2.0 → axc_agent_engine-2.3.2}/axc_agent_engine/tools/executor.py +31 -17
  127. {axc_agent_engine-2.2.0 → axc_agent_engine-2.3.2}/axc_agent_engine/tools/orchestrator.py +48 -11
  128. {axc_agent_engine-2.2.0 → axc_agent_engine-2.3.2}/axc_agent_engine/tools/tool_output.py +59 -32
  129. {axc_agent_engine-2.2.0 → axc_agent_engine-2.3.2}/axc_agent_engine/workflow/state.py +3 -3
  130. {axc_agent_engine-2.2.0 → axc_agent_engine-2.3.2}/docs/ARCHITECTURE.md +27 -6
  131. {axc_agent_engine-2.2.0 → axc_agent_engine-2.3.2}/docs/PLUGIN_DEVELOPMENT.md +27 -25
  132. {axc_agent_engine-2.2.0 → axc_agent_engine-2.3.2}/pyproject.toml +2 -2
  133. {axc_agent_engine-2.2.0 → axc_agent_engine-2.3.2}/tests/boundaries/test_compression_boundary.py +61 -2
  134. {axc_agent_engine-2.2.0 → axc_agent_engine-2.3.2}/tests/boundaries/test_engine_boundaries.py +40 -2
  135. {axc_agent_engine-2.2.0 → axc_agent_engine-2.3.2}/tests/boundaries/test_engine_boundary_matrix.py +0 -11
  136. {axc_agent_engine-2.2.0 → axc_agent_engine-2.3.2}/tests/boundaries/test_init_exports.py +24 -2
  137. axc_agent_engine-2.3.2/tests/cli/test_cli.py +195 -0
  138. {axc_agent_engine-2.2.0 → axc_agent_engine-2.3.2}/tests/conftest.py +6 -6
  139. {axc_agent_engine-2.2.0 → axc_agent_engine-2.3.2}/tests/core/test_context_layers.py +98 -16
  140. {axc_agent_engine-2.2.0 → axc_agent_engine-2.3.2}/tests/core/test_core.py +75 -3
  141. axc_agent_engine-2.3.2/tests/core/test_dispatcher_architecture.py +446 -0
  142. axc_agent_engine-2.3.2/tests/core/test_engine_body_edges.py +350 -0
  143. {axc_agent_engine-2.2.0 → axc_agent_engine-2.3.2}/tests/core/test_errors.py +17 -1
  144. {axc_agent_engine-2.2.0 → axc_agent_engine-2.3.2}/tests/core/test_event_categories.py +23 -3
  145. axc_agent_engine-2.3.2/tests/core/test_events.py +160 -0
  146. {axc_agent_engine-2.2.0 → axc_agent_engine-2.3.2}/tests/core/test_execution_services.py +44 -45
  147. {axc_agent_engine-2.2.0 → axc_agent_engine-2.3.2}/tests/core/test_executor_checkpoint.py +187 -10
  148. axc_agent_engine-2.3.2/tests/core/test_input_messages.py +72 -0
  149. axc_agent_engine-2.3.2/tests/core/test_llm_caller_edges.py +158 -0
  150. {axc_agent_engine-2.2.0 → axc_agent_engine-2.3.2}/tests/core/test_message_store_tooloutput.py +17 -9
  151. axc_agent_engine-2.3.2/tests/core/test_react_edges.py +264 -0
  152. axc_agent_engine-2.3.2/tests/core/test_run_context.py +76 -0
  153. {axc_agent_engine-2.2.0 → axc_agent_engine-2.3.2}/tests/core/test_schema.py +61 -2
  154. axc_agent_engine-2.3.2/tests/engine/test_engine.py +541 -0
  155. {axc_agent_engine-2.2.0 → axc_agent_engine-2.3.2}/tests/engine/test_engine_dispatcher_lifecycle.py +137 -2
  156. {axc_agent_engine-2.2.0 → axc_agent_engine-2.3.2}/tests/engine/test_integration_flow.py +62 -1
  157. {axc_agent_engine-2.2.0 → axc_agent_engine-2.3.2}/tests/llm/test_llm_caller_retry.py +61 -2
  158. {axc_agent_engine-2.2.0 → axc_agent_engine-2.3.2}/tests/observability/test_audit.py +38 -0
  159. {axc_agent_engine-2.2.0 → axc_agent_engine-2.3.2}/tests/planning/test_planning.py +24 -0
  160. {axc_agent_engine-2.2.0 → axc_agent_engine-2.3.2}/tests/planning/test_por_checkpointing.py +2 -0
  161. axc_agent_engine-2.3.2/tests/planning/test_por_runner_edges.py +213 -0
  162. axc_agent_engine-2.3.2/tests/plugins/test_builtin_tools_tooloutput.py +1048 -0
  163. axc_agent_engine-2.3.2/tests/plugins/test_collaboration_plugin.py +436 -0
  164. {axc_agent_engine-2.2.0 → axc_agent_engine-2.3.2}/tests/plugins/test_compress_tooloutput.py +89 -14
  165. {axc_agent_engine-2.2.0 → axc_agent_engine-2.3.2}/tests/plugins/test_config_schema.py +61 -7
  166. axc_agent_engine-2.3.2/tests/plugins/test_graph_plugin.py +123 -0
  167. {axc_agent_engine-2.2.0 → axc_agent_engine-2.3.2}/tests/plugins/test_graph_store.py +142 -28
  168. {axc_agent_engine-2.2.0 → axc_agent_engine-2.3.2}/tests/plugins/test_hooks_and_hitl.py +78 -2
  169. {axc_agent_engine-2.2.0 → axc_agent_engine-2.3.2}/tests/plugins/test_knowledge_core.py +11 -40
  170. axc_agent_engine-2.3.2/tests/plugins/test_knowledge_plugin.py +274 -0
  171. axc_agent_engine-2.3.2/tests/plugins/test_knowledge_vector.py +154 -0
  172. {axc_agent_engine-2.2.0 → axc_agent_engine-2.3.2}/tests/plugins/test_lightweight_guards.py +66 -2
  173. {axc_agent_engine-2.2.0 → axc_agent_engine-2.3.2}/tests/plugins/test_mcp_plugin.py +12 -12
  174. {axc_agent_engine-2.2.0 → axc_agent_engine-2.3.2}/tests/plugins/test_mcp_transports.py +111 -0
  175. {axc_agent_engine-2.2.0 → axc_agent_engine-2.3.2}/tests/plugins/test_memory_plugin.py +6 -35
  176. {axc_agent_engine-2.2.0 → axc_agent_engine-2.3.2}/tests/plugins/test_memory_support.py +99 -88
  177. {axc_agent_engine-2.2.0 → axc_agent_engine-2.3.2}/tests/plugins/test_output_format_service.py +174 -5
  178. {axc_agent_engine-2.2.0 → axc_agent_engine-2.3.2}/tests/plugins/test_plugin_dependencies.py +4 -6
  179. {axc_agent_engine-2.2.0 → axc_agent_engine-2.3.2}/tests/plugins/test_plugin_post_tool_call.py +8 -9
  180. {axc_agent_engine-2.2.0 → axc_agent_engine-2.3.2}/tests/plugins/test_plugin_registry.py +4 -3
  181. {axc_agent_engine-2.2.0 → axc_agent_engine-2.3.2}/tests/plugins/test_plugins.py +39 -16
  182. axc_agent_engine-2.3.2/tests/plugins/test_skill_plugin.py +354 -0
  183. {axc_agent_engine-2.2.0 → axc_agent_engine-2.3.2}/tests/plugins/test_swarm_plugin.py +103 -7
  184. {axc_agent_engine-2.2.0 → axc_agent_engine-2.3.2}/tests/plugins/test_tracing_plugin.py +267 -17
  185. {axc_agent_engine-2.2.0 → axc_agent_engine-2.3.2}/tests/runtime/test_checkpoint.py +33 -2
  186. {axc_agent_engine-2.2.0 → axc_agent_engine-2.3.2}/tests/runtime/test_policy.py +16 -0
  187. axc_agent_engine-2.3.2/tests/runtime/test_run_control.py +51 -0
  188. {axc_agent_engine-2.2.0 → axc_agent_engine-2.3.2}/tests/runtime/test_sandbox.py +63 -10
  189. axc_agent_engine-2.3.2/tests/runtime/test_security_risk.py +49 -0
  190. axc_agent_engine-2.3.2/tests/runtime/test_tasks.py +57 -0
  191. axc_agent_engine-2.3.2/tests/sidecar/test_eval_framework.py +344 -0
  192. {axc_agent_engine-2.2.0 → axc_agent_engine-2.3.2}/tests/sidecar/test_multi_agent_modes.py +71 -0
  193. axc_agent_engine-2.3.2/tests/sidecar/test_multi_agent_session.py +259 -0
  194. axc_agent_engine-2.3.2/tests/sidecar/test_orchestration_service.py +236 -0
  195. {axc_agent_engine-2.2.0 → axc_agent_engine-2.3.2}/tests/sidecar/test_sidecar_agent_ops.py +39 -0
  196. axc_agent_engine-2.3.2/tests/sidecar/test_simulation_adapters.py +201 -0
  197. {axc_agent_engine-2.2.0 → axc_agent_engine-2.3.2}/tests/sidecar/test_simulation_kernel.py +94 -2
  198. axc_agent_engine-2.3.2/tests/storage/test_artifact_store.py +107 -0
  199. {axc_agent_engine-2.2.0 → axc_agent_engine-2.3.2}/tests/storage/test_storage.py +75 -0
  200. {axc_agent_engine-2.2.0 → axc_agent_engine-2.3.2}/tests/tools/test_orchestrator_tool_context.py +39 -7
  201. {axc_agent_engine-2.2.0 → axc_agent_engine-2.3.2}/tests/tools/test_tool_context.py +1 -1
  202. {axc_agent_engine-2.2.0 → axc_agent_engine-2.3.2}/tests/tools/test_tool_orchestrator_timeout.py +20 -0
  203. axc_agent_engine-2.3.2/tests/tools/test_tool_output.py +446 -0
  204. {axc_agent_engine-2.2.0 → axc_agent_engine-2.3.2}/tests/tools/test_tool_output_integration.py +28 -30
  205. {axc_agent_engine-2.2.0 → axc_agent_engine-2.3.2}/tests/tools/test_tool_validation.py +1 -1
  206. {axc_agent_engine-2.2.0 → axc_agent_engine-2.3.2}/tests/tools/test_tooloutput_protocol.py +100 -39
  207. {axc_agent_engine-2.2.0 → axc_agent_engine-2.3.2}/tests/tools/test_tools.py +56 -3
  208. axc_agent_engine-2.3.2/tests/utils/test_json_utils.py +17 -0
  209. {axc_agent_engine-2.2.0 → axc_agent_engine-2.3.2}/tests/workflow/test_workflow_runtime.py +5 -2
  210. axc_agent_engine-2.2.0/AXC_ENGINE_CORE_REFACTOR_PLAN.md +0 -377
  211. axc_agent_engine-2.2.0/CHANGELOG.md +0 -29
  212. axc_agent_engine-2.2.0/ENGINE_BOUNDARY_DESIGN.md +0 -678
  213. axc_agent_engine-2.2.0/Makefile +0 -20
  214. axc_agent_engine-2.2.0/RAVEN_EXECUTION_KERNEL_REPLACEMENT.md +0 -1657
  215. axc_agent_engine-2.2.0/axc_agent_engine/core/dispatcher.py +0 -230
  216. axc_agent_engine-2.2.0/axc_agent_engine/plugins/builtin/builtin_tools/file_tools.py +0 -242
  217. axc_agent_engine-2.2.0/axc_agent_engine/plugins/builtin/builtin_tools/presenter.py +0 -48
  218. axc_agent_engine-2.2.0/axc_agent_engine/plugins/builtin/builtin_tools/registry.py +0 -32
  219. axc_agent_engine-2.2.0/axc_agent_engine/plugins/builtin/builtin_tools/result_tools.py +0 -56
  220. axc_agent_engine-2.2.0/axc_agent_engine/plugins/builtin/builtin_tools/tool_definitions.py +0 -306
  221. axc_agent_engine-2.2.0/axc_agent_engine/plugins/builtin/common.py +0 -76
  222. axc_agent_engine-2.2.0/axc_agent_engine/plugins/builtin/compress/context/packer.py +0 -55
  223. axc_agent_engine-2.2.0/axc_agent_engine/plugins/builtin/compress/context/tool_result.py +0 -60
  224. axc_agent_engine-2.2.0/axc_agent_engine/plugins/builtin/graph/presenter.py +0 -39
  225. axc_agent_engine-2.2.0/axc_agent_engine/plugins/builtin/knowledge/plugin.py +0 -738
  226. axc_agent_engine-2.2.0/axc_agent_engine/plugins/builtin/memory/support/embedding.py +0 -54
  227. axc_agent_engine-2.2.0/axc_agent_engine/storage/result_store.py +0 -143
  228. axc_agent_engine-2.2.0/docs/RAVEN_EXECUTION_KERNEL_REPLACEMENT.md +0 -1658
  229. axc_agent_engine-2.2.0/tests/cli/test_cli.py +0 -78
  230. axc_agent_engine-2.2.0/tests/core/test_dispatcher_architecture.py +0 -248
  231. axc_agent_engine-2.2.0/tests/core/test_events.py +0 -85
  232. axc_agent_engine-2.2.0/tests/engine/test_engine.py +0 -227
  233. axc_agent_engine-2.2.0/tests/plugins/test_builtin_tools_tooloutput.py +0 -570
  234. axc_agent_engine-2.2.0/tests/plugins/test_collaboration_plugin.py +0 -234
  235. axc_agent_engine-2.2.0/tests/plugins/test_knowledge_plugin.py +0 -33
  236. axc_agent_engine-2.2.0/tests/plugins/test_knowledge_vector.py +0 -375
  237. axc_agent_engine-2.2.0/tests/plugins/test_skill_plugin.py +0 -181
  238. axc_agent_engine-2.2.0/tests/runtime/test_security_risk.py +0 -18
  239. axc_agent_engine-2.2.0/tests/sidecar/test_eval_framework.py +0 -179
  240. axc_agent_engine-2.2.0/tests/sidecar/test_orchestration_service.py +0 -86
  241. axc_agent_engine-2.2.0/tests/sidecar/test_simulation_adapters.py +0 -113
  242. axc_agent_engine-2.2.0/tests/tools/test_tool_output.py +0 -322
  243. {axc_agent_engine-2.2.0 → axc_agent_engine-2.3.2}/.gitignore +0 -0
  244. {axc_agent_engine-2.2.0 → axc_agent_engine-2.3.2}/CODE_OF_CONDUCT.md +0 -0
  245. {axc_agent_engine-2.2.0 → axc_agent_engine-2.3.2}/CONTRIBUTING.md +0 -0
  246. {axc_agent_engine-2.2.0 → axc_agent_engine-2.3.2}/LICENSE +0 -0
  247. {axc_agent_engine-2.2.0 → axc_agent_engine-2.3.2}/NOTICE +0 -0
  248. {axc_agent_engine-2.2.0 → axc_agent_engine-2.3.2}/SECURITY.md +0 -0
  249. {axc_agent_engine-2.2.0 → axc_agent_engine-2.3.2}/axc_agent_engine/api/__init__.py +0 -0
  250. {axc_agent_engine-2.2.0 → axc_agent_engine-2.3.2}/axc_agent_engine/api/deps.py +0 -0
  251. {axc_agent_engine-2.2.0 → axc_agent_engine-2.3.2}/axc_agent_engine/api/routes/__init__.py +0 -0
  252. {axc_agent_engine-2.2.0 → axc_agent_engine-2.3.2}/axc_agent_engine/api/routes/chat.py +0 -0
  253. {axc_agent_engine-2.2.0 → axc_agent_engine-2.3.2}/axc_agent_engine/api/routes/health.py +0 -0
  254. {axc_agent_engine-2.2.0 → axc_agent_engine-2.3.2}/axc_agent_engine/core/__init__.py +0 -0
  255. {axc_agent_engine-2.2.0 → axc_agent_engine-2.3.2}/axc_agent_engine/core/constants.py +0 -0
  256. {axc_agent_engine-2.2.0 → axc_agent_engine-2.3.2}/axc_agent_engine/core/session_manager.py +0 -0
  257. {axc_agent_engine-2.2.0 → axc_agent_engine-2.3.2}/axc_agent_engine/core/stream_aggregator.py +0 -0
  258. {axc_agent_engine-2.2.0 → axc_agent_engine-2.3.2}/axc_agent_engine/core/stream_sink.py +0 -0
  259. {axc_agent_engine-2.2.0 → axc_agent_engine-2.3.2}/axc_agent_engine/llm/__init__.py +0 -0
  260. {axc_agent_engine-2.2.0 → axc_agent_engine-2.3.2}/axc_agent_engine/llm/client.py +0 -0
  261. {axc_agent_engine-2.2.0 → axc_agent_engine-2.3.2}/axc_agent_engine/llm/config.py +0 -0
  262. {axc_agent_engine-2.2.0 → axc_agent_engine-2.3.2}/axc_agent_engine/llm/provider.py +0 -0
  263. {axc_agent_engine-2.2.0 → axc_agent_engine-2.3.2}/axc_agent_engine/llm/rate_limited.py +0 -0
  264. {axc_agent_engine-2.2.0 → axc_agent_engine-2.3.2}/axc_agent_engine/observability/__init__.py +0 -0
  265. {axc_agent_engine-2.2.0 → axc_agent_engine-2.3.2}/axc_agent_engine/observability/logging.py +0 -0
  266. {axc_agent_engine-2.2.0 → axc_agent_engine-2.3.2}/axc_agent_engine/planning/__init__.py +0 -0
  267. {axc_agent_engine-2.2.0 → axc_agent_engine-2.3.2}/axc_agent_engine/planning/graph_nodes.py +0 -0
  268. {axc_agent_engine-2.2.0 → axc_agent_engine-2.3.2}/axc_agent_engine/planning/graph_runtime.py +0 -0
  269. {axc_agent_engine-2.2.0 → axc_agent_engine-2.3.2}/axc_agent_engine/planning/graph_state.py +0 -0
  270. {axc_agent_engine-2.2.0 → axc_agent_engine-2.3.2}/axc_agent_engine/planning/observer.py +0 -0
  271. {axc_agent_engine-2.2.0 → axc_agent_engine-2.3.2}/axc_agent_engine/planning/planner.py +0 -0
  272. {axc_agent_engine-2.2.0 → axc_agent_engine-2.3.2}/axc_agent_engine/planning/planning_service.py +0 -0
  273. {axc_agent_engine-2.2.0 → axc_agent_engine-2.3.2}/axc_agent_engine/planning/por_runner.py +0 -0
  274. {axc_agent_engine-2.2.0 → axc_agent_engine-2.3.2}/axc_agent_engine/planning/prompts.py +0 -0
  275. {axc_agent_engine-2.2.0 → axc_agent_engine-2.3.2}/axc_agent_engine/planning/replanner.py +0 -0
  276. {axc_agent_engine-2.2.0 → axc_agent_engine-2.3.2}/axc_agent_engine/planning/router.py +0 -0
  277. {axc_agent_engine-2.2.0 → axc_agent_engine-2.3.2}/axc_agent_engine/planning/runtime.py +0 -0
  278. {axc_agent_engine-2.2.0 → axc_agent_engine-2.3.2}/axc_agent_engine/planning/scheduler.py +0 -0
  279. {axc_agent_engine-2.2.0 → axc_agent_engine-2.3.2}/axc_agent_engine/planning/step_executor.py +0 -0
  280. {axc_agent_engine-2.2.0 → axc_agent_engine-2.3.2}/axc_agent_engine/plugins/builtin/builtin_tools/__init__.py +0 -0
  281. {axc_agent_engine-2.2.0 → axc_agent_engine-2.3.2}/axc_agent_engine/plugins/builtin/builtin_tools/path_policy.py +0 -0
  282. {axc_agent_engine-2.2.0 → axc_agent_engine-2.3.2}/axc_agent_engine/plugins/builtin/collaboration/__init__.py +0 -0
  283. {axc_agent_engine-2.2.0 → axc_agent_engine-2.3.2}/axc_agent_engine/plugins/builtin/compress/__init__.py +0 -0
  284. {axc_agent_engine-2.2.0 → axc_agent_engine-2.3.2}/axc_agent_engine/plugins/builtin/compress/context/__init__.py +0 -0
  285. {axc_agent_engine-2.2.0 → axc_agent_engine-2.3.2}/axc_agent_engine/plugins/builtin/compress/context/normalizer.py +0 -0
  286. {axc_agent_engine-2.2.0 → axc_agent_engine-2.3.2}/axc_agent_engine/plugins/builtin/compress/context/recall.py +0 -0
  287. {axc_agent_engine-2.2.0 → axc_agent_engine-2.3.2}/axc_agent_engine/plugins/builtin/compress/context/scoring.py +0 -0
  288. {axc_agent_engine-2.2.0 → axc_agent_engine-2.3.2}/axc_agent_engine/plugins/builtin/compress/context/summarizer.py +0 -0
  289. {axc_agent_engine-2.2.0 → axc_agent_engine-2.3.2}/axc_agent_engine/plugins/builtin/compress/prompts.py +0 -0
  290. {axc_agent_engine-2.2.0 → axc_agent_engine-2.3.2}/axc_agent_engine/plugins/builtin/cost_statistics/__init__.py +0 -0
  291. {axc_agent_engine-2.2.0 → axc_agent_engine-2.3.2}/axc_agent_engine/plugins/builtin/graph/__init__.py +0 -0
  292. {axc_agent_engine-2.2.0 → axc_agent_engine-2.3.2}/axc_agent_engine/plugins/builtin/graph/audit.py +0 -0
  293. {axc_agent_engine-2.2.0 → axc_agent_engine-2.3.2}/axc_agent_engine/plugins/builtin/graph/policy.py +0 -0
  294. {axc_agent_engine-2.2.0 → axc_agent_engine-2.3.2}/axc_agent_engine/plugins/builtin/graph/support.py +0 -0
  295. {axc_agent_engine-2.2.0 → axc_agent_engine-2.3.2}/axc_agent_engine/plugins/builtin/graph/tool_factory.py +0 -0
  296. {axc_agent_engine-2.2.0 → axc_agent_engine-2.3.2}/axc_agent_engine/plugins/builtin/hooks/__init__.py +0 -0
  297. {axc_agent_engine-2.2.0 → axc_agent_engine-2.3.2}/axc_agent_engine/plugins/builtin/human_in_the_loop/__init__.py +0 -0
  298. {axc_agent_engine-2.2.0 → axc_agent_engine-2.3.2}/axc_agent_engine/plugins/builtin/knowledge/__init__.py +0 -0
  299. {axc_agent_engine-2.2.0 → axc_agent_engine-2.3.2}/axc_agent_engine/plugins/builtin/knowledge/support/ingestion.py +0 -0
  300. {axc_agent_engine-2.2.0 → axc_agent_engine-2.3.2}/axc_agent_engine/plugins/builtin/mcp/__init__.py +0 -0
  301. {axc_agent_engine-2.2.0 → axc_agent_engine-2.3.2}/axc_agent_engine/plugins/builtin/mcp/support/__init__.py +0 -0
  302. {axc_agent_engine-2.2.0 → axc_agent_engine-2.3.2}/axc_agent_engine/plugins/builtin/mcp/support/client.py +0 -0
  303. {axc_agent_engine-2.2.0 → axc_agent_engine-2.3.2}/axc_agent_engine/plugins/builtin/mcp/support/models.py +0 -0
  304. {axc_agent_engine-2.2.0 → axc_agent_engine-2.3.2}/axc_agent_engine/plugins/builtin/mcp/support/normalization.py +0 -0
  305. {axc_agent_engine-2.2.0 → axc_agent_engine-2.3.2}/axc_agent_engine/plugins/builtin/mcp/support/transports/base.py +0 -0
  306. {axc_agent_engine-2.2.0 → axc_agent_engine-2.3.2}/axc_agent_engine/plugins/builtin/mcp/support/transports/http.py +0 -0
  307. {axc_agent_engine-2.2.0 → axc_agent_engine-2.3.2}/axc_agent_engine/plugins/builtin/mcp/support/transports/stdio.py +0 -0
  308. {axc_agent_engine-2.2.0 → axc_agent_engine-2.3.2}/axc_agent_engine/plugins/builtin/memory/__init__.py +0 -0
  309. {axc_agent_engine-2.2.0 → axc_agent_engine-2.3.2}/axc_agent_engine/plugins/builtin/memory/prompts.py +0 -0
  310. {axc_agent_engine-2.2.0 → axc_agent_engine-2.3.2}/axc_agent_engine/plugins/builtin/memory/support/graph.py +0 -0
  311. {axc_agent_engine-2.2.0 → axc_agent_engine-2.3.2}/axc_agent_engine/plugins/builtin/memory/support/retrieval.py +0 -0
  312. {axc_agent_engine-2.2.0 → axc_agent_engine-2.3.2}/axc_agent_engine/plugins/builtin/memory/support/service.py +0 -0
  313. {axc_agent_engine-2.2.0 → axc_agent_engine-2.3.2}/axc_agent_engine/plugins/builtin/output_format/__init__.py +0 -0
  314. {axc_agent_engine-2.2.0 → axc_agent_engine-2.3.2}/axc_agent_engine/plugins/builtin/output_format/support/__init__.py +0 -0
  315. {axc_agent_engine-2.2.0 → axc_agent_engine-2.3.2}/axc_agent_engine/plugins/builtin/post_process/__init__.py +0 -0
  316. {axc_agent_engine-2.2.0 → axc_agent_engine-2.3.2}/axc_agent_engine/plugins/builtin/reflexion/__init__.py +0 -0
  317. {axc_agent_engine-2.2.0 → axc_agent_engine-2.3.2}/axc_agent_engine/plugins/builtin/reflexion/prompts.py +0 -0
  318. {axc_agent_engine-2.2.0 → axc_agent_engine-2.3.2}/axc_agent_engine/plugins/builtin/repetition_guard/__init__.py +0 -0
  319. {axc_agent_engine-2.2.0 → axc_agent_engine-2.3.2}/axc_agent_engine/plugins/builtin/risk_guard/__init__.py +0 -0
  320. {axc_agent_engine-2.2.0 → axc_agent_engine-2.3.2}/axc_agent_engine/plugins/builtin/safety/__init__.py +0 -0
  321. {axc_agent_engine-2.2.0 → axc_agent_engine-2.3.2}/axc_agent_engine/plugins/builtin/skill/__init__.py +0 -0
  322. {axc_agent_engine-2.2.0 → axc_agent_engine-2.3.2}/axc_agent_engine/plugins/builtin/swarm/__init__.py +0 -0
  323. {axc_agent_engine-2.2.0 → axc_agent_engine-2.3.2}/axc_agent_engine/plugins/builtin/tracing/__init__.py +0 -0
  324. {axc_agent_engine-2.2.0 → axc_agent_engine-2.3.2}/axc_agent_engine/plugins/registry.py +0 -0
  325. {axc_agent_engine-2.2.0 → axc_agent_engine-2.3.2}/axc_agent_engine/py.typed +0 -0
  326. {axc_agent_engine-2.2.0 → axc_agent_engine-2.3.2}/axc_agent_engine/runtime/__init__.py +0 -0
  327. {axc_agent_engine-2.2.0 → axc_agent_engine-2.3.2}/axc_agent_engine/runtime/concurrency.py +0 -0
  328. {axc_agent_engine-2.2.0 → axc_agent_engine-2.3.2}/axc_agent_engine/runtime/resources.py +0 -0
  329. {axc_agent_engine-2.2.0 → axc_agent_engine-2.3.2}/axc_agent_engine/runtime/sandbox_policy.py +0 -0
  330. {axc_agent_engine-2.2.0 → axc_agent_engine-2.3.2}/axc_agent_engine/runtime/sandbox_provider.py +0 -0
  331. {axc_agent_engine-2.2.0 → axc_agent_engine-2.3.2}/axc_agent_engine/sidecar/README.md +0 -0
  332. {axc_agent_engine-2.2.0 → axc_agent_engine-2.3.2}/axc_agent_engine/sidecar/__init__.py +0 -0
  333. /axc_agent_engine-2.2.0/axc_agent_engine/sidecar/cost_optimizer/__init__.py → /axc_agent_engine-2.3.2/axc_agent_engine/sidecar/cost_optimizer/core.py +0 -0
  334. {axc_agent_engine-2.2.0 → axc_agent_engine-2.3.2}/axc_agent_engine/sidecar/eval/__init__.py +0 -0
  335. {axc_agent_engine-2.2.0 → axc_agent_engine-2.3.2}/axc_agent_engine/sidecar/eval/judge.py +0 -0
  336. {axc_agent_engine-2.2.0 → axc_agent_engine-2.3.2}/axc_agent_engine/sidecar/eval/matcher.py +0 -0
  337. {axc_agent_engine-2.2.0 → axc_agent_engine-2.3.2}/axc_agent_engine/sidecar/eval/report.py +0 -0
  338. {axc_agent_engine-2.2.0 → axc_agent_engine-2.3.2}/axc_agent_engine/sidecar/multi_agent/__init__.py +0 -0
  339. {axc_agent_engine-2.2.0 → axc_agent_engine-2.3.2}/axc_agent_engine/sidecar/multi_agent/modes.py +0 -0
  340. {axc_agent_engine-2.2.0 → axc_agent_engine-2.3.2}/axc_agent_engine/sidecar/multi_agent/persona.py +0 -0
  341. {axc_agent_engine-2.2.0 → axc_agent_engine-2.3.2}/axc_agent_engine/sidecar/multi_agent/scheduler/all_parallel.py +0 -0
  342. {axc_agent_engine-2.2.0 → axc_agent_engine-2.3.2}/axc_agent_engine/sidecar/multi_agent/scheduler/debate.py +0 -0
  343. /axc_agent_engine-2.2.0/axc_agent_engine/sidecar/multi_agent/scheduler/__init__.py → /axc_agent_engine-2.3.2/axc_agent_engine/sidecar/multi_agent/scheduler/protocols.py +0 -0
  344. {axc_agent_engine-2.2.0 → axc_agent_engine-2.3.2}/axc_agent_engine/sidecar/multi_agent/scheduler/redblue.py +0 -0
  345. {axc_agent_engine-2.2.0 → axc_agent_engine-2.3.2}/axc_agent_engine/sidecar/multi_agent/scheduler/round_robin.py +0 -0
  346. {axc_agent_engine-2.2.0 → axc_agent_engine-2.3.2}/axc_agent_engine/sidecar/multi_agent/scheduler/supervisor.py +0 -0
  347. {axc_agent_engine-2.2.0 → axc_agent_engine-2.3.2}/axc_agent_engine/sidecar/multi_agent/shared_context.py +0 -0
  348. {axc_agent_engine-2.2.0 → axc_agent_engine-2.3.2}/axc_agent_engine/sidecar/multi_agent/stop_condition/causal_chain.py +0 -0
  349. {axc_agent_engine-2.2.0 → axc_agent_engine-2.3.2}/axc_agent_engine/sidecar/multi_agent/stop_condition/consensus.py +0 -0
  350. {axc_agent_engine-2.2.0 → axc_agent_engine-2.3.2}/axc_agent_engine/sidecar/multi_agent/stop_condition/goal_reached.py +0 -0
  351. {axc_agent_engine-2.2.0 → axc_agent_engine-2.3.2}/axc_agent_engine/sidecar/multi_agent/stop_condition/llm_based.py +0 -0
  352. {axc_agent_engine-2.2.0 → axc_agent_engine-2.3.2}/axc_agent_engine/sidecar/multi_agent/stop_condition/max_rounds.py +0 -0
  353. /axc_agent_engine-2.2.0/axc_agent_engine/sidecar/multi_agent/stop_condition/__init__.py → /axc_agent_engine-2.3.2/axc_agent_engine/sidecar/multi_agent/stop_condition/protocols.py +0 -0
  354. {axc_agent_engine-2.2.0 → axc_agent_engine-2.3.2}/axc_agent_engine/sidecar/multi_agent/types.py +0 -0
  355. {axc_agent_engine-2.2.0 → axc_agent_engine-2.3.2}/axc_agent_engine/sidecar/simulation/__init__.py +0 -0
  356. {axc_agent_engine-2.2.0 → axc_agent_engine-2.3.2}/axc_agent_engine/sidecar/simulation/action_parser.py +0 -0
  357. {axc_agent_engine-2.2.0 → axc_agent_engine-2.3.2}/axc_agent_engine/sidecar/simulation/report.py +0 -0
  358. {axc_agent_engine-2.2.0 → axc_agent_engine-2.3.2}/axc_agent_engine/storage/in_memory.py +0 -0
  359. {axc_agent_engine-2.2.0 → axc_agent_engine-2.3.2}/axc_agent_engine/tools/__init__.py +0 -0
  360. {axc_agent_engine-2.2.0 → axc_agent_engine-2.3.2}/axc_agent_engine/tools/audit.py +0 -0
  361. {axc_agent_engine-2.2.0 → axc_agent_engine-2.3.2}/axc_agent_engine/tools/batches.py +0 -0
  362. {axc_agent_engine-2.2.0 → axc_agent_engine-2.3.2}/axc_agent_engine/tools/decorator.py +0 -0
  363. {axc_agent_engine-2.2.0 → axc_agent_engine-2.3.2}/axc_agent_engine/tools/name_mapping.py +0 -0
  364. {axc_agent_engine-2.2.0 → axc_agent_engine-2.3.2}/axc_agent_engine/tools/policy.py +0 -0
  365. {axc_agent_engine-2.2.0 → axc_agent_engine-2.3.2}/axc_agent_engine/tools/registry.py +0 -0
  366. {axc_agent_engine-2.2.0 → axc_agent_engine-2.3.2}/axc_agent_engine/tools/runtime.py +0 -0
  367. {axc_agent_engine-2.2.0 → axc_agent_engine-2.3.2}/axc_agent_engine/tools/utils.py +0 -0
  368. {axc_agent_engine-2.2.0 → axc_agent_engine-2.3.2}/axc_agent_engine/utils/__init__.py +0 -0
  369. {axc_agent_engine-2.2.0 → axc_agent_engine-2.3.2}/axc_agent_engine/utils/json_utils.py +0 -0
  370. {axc_agent_engine-2.2.0 → axc_agent_engine-2.3.2}/axc_agent_engine/utils/math_utils.py +0 -0
  371. {axc_agent_engine-2.2.0 → axc_agent_engine-2.3.2}/axc_agent_engine/workflow/__init__.py +0 -0
  372. {axc_agent_engine-2.2.0 → axc_agent_engine-2.3.2}/axc_agent_engine/workflow/burr_runtime.py +0 -0
  373. {axc_agent_engine-2.2.0 → axc_agent_engine-2.3.2}/axc_agent_engine/workflow/factory.py +0 -0
  374. {axc_agent_engine-2.2.0 → axc_agent_engine-2.3.2}/axc_agent_engine/workflow/memory_runtime.py +0 -0
  375. {axc_agent_engine-2.2.0 → axc_agent_engine-2.3.2}/axc_agent_engine/workflow/protocols.py +0 -0
  376. {axc_agent_engine-2.2.0 → axc_agent_engine-2.3.2}/docs/API.md +0 -0
  377. {axc_agent_engine-2.2.0 → axc_agent_engine-2.3.2}/docs/OPEN_SOURCE_REPORT.md +0 -0
  378. {axc_agent_engine-2.2.0 → axc_agent_engine-2.3.2}/docs/RELEASE_CHECKLIST.md +0 -0
  379. {axc_agent_engine-2.2.0 → axc_agent_engine-2.3.2}/docs/SECURITY_MODEL.md +0 -0
  380. {axc_agent_engine-2.2.0 → axc_agent_engine-2.3.2}/examples/01_basic_chat/README.md +0 -0
  381. {axc_agent_engine-2.2.0 → axc_agent_engine-2.3.2}/examples/01_basic_chat/agent.yaml +0 -0
  382. {axc_agent_engine-2.2.0 → axc_agent_engine-2.3.2}/examples/01_basic_chat/run.py +0 -0
  383. {axc_agent_engine-2.2.0 → axc_agent_engine-2.3.2}/examples/02_tool_agent/agent.yaml +0 -0
  384. {axc_agent_engine-2.2.0 → axc_agent_engine-2.3.2}/examples/02_tool_agent/run.py +0 -0
  385. {axc_agent_engine-2.2.0 → axc_agent_engine-2.3.2}/examples/03_rag_agent/agent.yaml +0 -0
  386. {axc_agent_engine-2.2.0 → axc_agent_engine-2.3.2}/examples/03_rag_agent/docs/faq.md +0 -0
  387. {axc_agent_engine-2.2.0 → axc_agent_engine-2.3.2}/examples/03_rag_agent/run.py +0 -0
  388. {axc_agent_engine-2.2.0 → axc_agent_engine-2.3.2}/examples/04_streaming/agent.yaml +0 -0
  389. {axc_agent_engine-2.2.0 → axc_agent_engine-2.3.2}/examples/04_streaming/run.py +0 -0
  390. {axc_agent_engine-2.2.0 → axc_agent_engine-2.3.2}/examples/05_custom_plugin/agent.yaml +0 -0
  391. {axc_agent_engine-2.2.0 → axc_agent_engine-2.3.2}/examples/05_custom_plugin/my_plugin.py +0 -0
  392. {axc_agent_engine-2.2.0 → axc_agent_engine-2.3.2}/examples/05_custom_plugin/run.py +0 -0
  393. {axc_agent_engine-2.2.0 → axc_agent_engine-2.3.2}/examples/06_multi_agent/agent_dev.yaml +0 -0
  394. {axc_agent_engine-2.2.0 → axc_agent_engine-2.3.2}/examples/06_multi_agent/agent_pm.yaml +0 -0
  395. {axc_agent_engine-2.2.0 → axc_agent_engine-2.3.2}/examples/06_multi_agent/agent_supervisor.yaml +0 -0
  396. {axc_agent_engine-2.2.0 → axc_agent_engine-2.3.2}/examples/06_multi_agent/run_group_chat.py +0 -0
  397. {axc_agent_engine-2.2.0 → axc_agent_engine-2.3.2}/examples/06_multi_agent/run_supervisor.py +0 -0
  398. {axc_agent_engine-2.2.0 → axc_agent_engine-2.3.2}/examples/07_simulation/agent_blue.yaml +0 -0
  399. {axc_agent_engine-2.2.0 → axc_agent_engine-2.3.2}/examples/07_simulation/agent_con.yaml +0 -0
  400. {axc_agent_engine-2.2.0 → axc_agent_engine-2.3.2}/examples/07_simulation/agent_pro.yaml +0 -0
  401. {axc_agent_engine-2.2.0 → axc_agent_engine-2.3.2}/examples/07_simulation/agent_red.yaml +0 -0
  402. {axc_agent_engine-2.2.0 → axc_agent_engine-2.3.2}/examples/07_simulation/run_debate.py +0 -0
  403. {axc_agent_engine-2.2.0 → axc_agent_engine-2.3.2}/examples/07_simulation/run_redblue.py +0 -0
  404. {axc_agent_engine-2.2.0 → axc_agent_engine-2.3.2}/examples/README.md +0 -0
  405. {axc_agent_engine-2.2.0 → axc_agent_engine-2.3.2}/llms.txt +0 -0
  406. {axc_agent_engine-2.2.0 → axc_agent_engine-2.3.2}/tests/__init__.py +0 -0
  407. {axc_agent_engine-2.2.0 → axc_agent_engine-2.3.2}/tests/api/__init__.py +0 -0
  408. {axc_agent_engine-2.2.0 → axc_agent_engine-2.3.2}/tests/api/test_api_chat.py +0 -0
  409. {axc_agent_engine-2.2.0 → axc_agent_engine-2.3.2}/tests/boundaries/__init__.py +0 -0
  410. {axc_agent_engine-2.2.0 → axc_agent_engine-2.3.2}/tests/boundaries/test_core_dependency_boundaries.py +0 -0
  411. {axc_agent_engine-2.2.0 → axc_agent_engine-2.3.2}/tests/boundaries/test_engine_plugin_boundaries.py +0 -0
  412. {axc_agent_engine-2.2.0 → axc_agent_engine-2.3.2}/tests/boundaries/test_plugin_config_schema_boundaries.py +0 -0
  413. {axc_agent_engine-2.2.0 → axc_agent_engine-2.3.2}/tests/boundaries/test_pyproject_deps.py +0 -0
  414. {axc_agent_engine-2.2.0 → axc_agent_engine-2.3.2}/tests/boundaries/test_source_text_policy.py +0 -0
  415. {axc_agent_engine-2.2.0 → axc_agent_engine-2.3.2}/tests/core/__init__.py +0 -0
  416. {axc_agent_engine-2.2.0 → axc_agent_engine-2.3.2}/tests/core/test_constants.py +0 -0
  417. {axc_agent_engine-2.2.0 → axc_agent_engine-2.3.2}/tests/core/test_context.py +0 -0
  418. {axc_agent_engine-2.2.0 → axc_agent_engine-2.3.2}/tests/core/test_execution_config_workspace.py +0 -0
  419. {axc_agent_engine-2.2.0 → axc_agent_engine-2.3.2}/tests/core/test_message_store_snapshot.py +0 -0
  420. {axc_agent_engine-2.2.0 → axc_agent_engine-2.3.2}/tests/core/test_realtime_stream.py +0 -0
  421. {axc_agent_engine-2.2.0 → axc_agent_engine-2.3.2}/tests/core/test_stream_aggregator.py +0 -0
  422. {axc_agent_engine-2.2.0 → axc_agent_engine-2.3.2}/tests/engine/__init__.py +0 -0
  423. {axc_agent_engine-2.2.0 → axc_agent_engine-2.3.2}/tests/llm/__init__.py +0 -0
  424. {axc_agent_engine-2.2.0 → axc_agent_engine-2.3.2}/tests/llm/test_provider.py +0 -0
  425. {axc_agent_engine-2.2.0 → axc_agent_engine-2.3.2}/tests/observability/__init__.py +0 -0
  426. {axc_agent_engine-2.2.0 → axc_agent_engine-2.3.2}/tests/observability/test_logging.py +0 -0
  427. {axc_agent_engine-2.2.0 → axc_agent_engine-2.3.2}/tests/planning/__init__.py +0 -0
  428. {axc_agent_engine-2.2.0 → axc_agent_engine-2.3.2}/tests/planning/test_plan_runtime.py +0 -0
  429. {axc_agent_engine-2.2.0 → axc_agent_engine-2.3.2}/tests/planning/test_por_graph_runtime.py +0 -0
  430. {axc_agent_engine-2.2.0 → axc_agent_engine-2.3.2}/tests/plugins/__init__.py +0 -0
  431. {axc_agent_engine-2.2.0 → axc_agent_engine-2.3.2}/tests/plugins/test_memory_core.py +0 -0
  432. {axc_agent_engine-2.2.0 → axc_agent_engine-2.3.2}/tests/plugins/test_plugin_context_workspace.py +0 -0
  433. {axc_agent_engine-2.2.0 → axc_agent_engine-2.3.2}/tests/plugins/test_plugin_isolation.py +0 -0
  434. {axc_agent_engine-2.2.0 → axc_agent_engine-2.3.2}/tests/plugins/test_vector_store_capacity.py +0 -0
  435. {axc_agent_engine-2.2.0 → axc_agent_engine-2.3.2}/tests/runtime/__init__.py +0 -0
  436. {axc_agent_engine-2.2.0 → axc_agent_engine-2.3.2}/tests/runtime/test_capability_gate.py +0 -0
  437. {axc_agent_engine-2.2.0 → axc_agent_engine-2.3.2}/tests/runtime/test_concurrency.py +0 -0
  438. {axc_agent_engine-2.2.0 → axc_agent_engine-2.3.2}/tests/sidecar/__init__.py +0 -0
  439. {axc_agent_engine-2.2.0 → axc_agent_engine-2.3.2}/tests/storage/__init__.py +0 -0
  440. {axc_agent_engine-2.2.0 → axc_agent_engine-2.3.2}/tests/tools/__init__.py +0 -0
  441. {axc_agent_engine-2.2.0 → axc_agent_engine-2.3.2}/tests/tools/test_decorator_tooloutput.py +0 -0
  442. {axc_agent_engine-2.2.0 → axc_agent_engine-2.3.2}/tests/utils/__init__.py +0 -0
  443. {axc_agent_engine-2.2.0 → axc_agent_engine-2.3.2}/tests/utils/test_math_utils.py +0 -0
  444. {axc_agent_engine-2.2.0 → axc_agent_engine-2.3.2}/tests/workflow/__init__.py +0 -0
@@ -0,0 +1,79 @@
1
+ # Engine Development Rules
2
+
3
+ ## 1. Code Quality
4
+
5
+ 谨记:代码是负债,功能才是价值。禁止垃圾、临时、遗留、废弃、重复的代码进入项目。
6
+
7
+ Remember: code is liability, functionality is value. Do not introduce junk, temporary, legacy, dead, or duplicated code.
8
+
9
+ 代码应在不牺牲阅读性、扩展性、健壮性的前提下尽可能精简。不要为了少写几行代码牺牲结构清晰度,也不要为了抽象而引入没有实际价值的复杂层。
10
+
11
+ Code should stay as concise as possible without sacrificing readability, extensibility, or robustness. Do not trade clear structure for fewer lines, and do not add abstractions that do not remove real complexity.
12
+
13
+ 代码注释必须使用英中双语。注释只解释必要的设计意图、边界、复杂逻辑或非显而易见的行为,禁止写重复代码字面含义的空注释。
14
+
15
+ Code comments must be bilingual in English and Chinese. Comments should explain design intent, boundaries, complex logic, or non-obvious behavior only. Do not add empty comments that merely restate the code.
16
+
17
+ ### Python Coding Standard
18
+
19
+ - 代码紧凑;方法之间保留 1 个空行,类之间保留 1 个空行;每行不超过 120 字符;使用 Tab 缩进。
20
+ - Keep code compact. Use one blank line between methods and one blank line between classes. Keep lines at or below 120 characters. Use Tab indentation.
21
+
22
+ - 注释保持简洁单行,格式为 `"""简洁描述"""`;行内注释放在代码末尾。
23
+ - Keep comments short and single-line, using `"""Concise description"""`. Put inline comments at the end of the code line.
24
+
25
+ - 命名规则:变量和函数使用小写下划线,类名使用驼峰,常量使用全大写,私有成员使用单下划线前缀。
26
+ - Naming: variables and functions use lower_snake_case, classes use PascalCase, constants use UPPER_CASE, and private members use a single leading underscore.
27
+
28
+ - 导入顺序:标准库、第三方库、本地模块;各组之间用一个空行分隔。
29
+ - Import order: standard library, third-party libraries, local modules. Separate groups with one blank line.
30
+
31
+ - 函数不超过 50 行,参数不超过 5 个,异常捕获必须使用具体异常类型。
32
+ - Functions must stay within 50 lines, accept no more than 5 parameters, and catch specific exception types.
33
+
34
+ - 优先使用 f-string;布尔判断直接写 `if items:`,不要写冗余比较。
35
+ - Prefer f-strings. Use direct boolean checks such as `if items:` instead of redundant comparisons.
36
+
37
+ ## 2. Failure Policy
38
+
39
+ 禁止为配置错误、运行错误、流程错误等致命错误做任何形式的兜底、降级、静默跳过或继续运行。
40
+
41
+ Do not add any fallback, degradation, silent skip, or forced continuation for fatal configuration errors, runtime errors, or workflow errors.
42
+
43
+ 配置错就直接报错;资源缺失就直接报错;插件加载失败就直接报错;插件依赖缺失就直接报错;插件 hook 出错就直接报错。
44
+
45
+ Invalid configuration must fail directly. Missing resources must fail directly. Plugin load failures must fail directly. Missing plugin dependencies must fail directly. Plugin hook failures must fail directly.
46
+
47
+ 引擎不为任何宿主的错误使用买单,不通过兜底、兼容错误写法、自动修正错误输入来掩盖问题;宿主用错就直接崩溃或报错。
48
+
49
+ The engine must not pay for any host misuse. Do not hide host errors through fallbacks, compatibility with invalid patterns, or automatic correction of invalid input. If the host uses the engine incorrectly, fail or raise directly.
50
+
51
+ 允许存在显式、用户可见、语义清晰的策略,例如用户主动配置的 fallback model、工具 retry policy、检索链内部明确的排序/召回策略。它们不能掩盖配置错误或致命运行错误。
52
+
53
+ Explicit, user-visible, semantically clear strategies are allowed, such as a user-configured fallback model, a tool retry policy, or a deliberate retrieval ranking/recall strategy. They must not hide configuration errors or fatal runtime failures.
54
+
55
+ 上报错误后,必须先核实是否确实为 bug;确认是 bug 后,修复必须补齐对应测试用例,覆盖复现路径和修复后的正确行为。
56
+
57
+ After an error is reported, first verify whether it is a real bug. Once confirmed, the fix must include matching tests that cover the reproduction path and the corrected behavior.
58
+
59
+ ## 3. Module Boundaries
60
+
61
+ 引擎每个模块的职责边界必须绝对清晰,禁止把宿主、引擎、插件、Agent YAML 的职责混在一起。
62
+
63
+ Every engine module must have a clear responsibility boundary. Do not mix host, engine, plugin, and Agent YAML responsibilities.
64
+
65
+ 引擎负责向宿主要运行所需资源,并把资源以明确入口注入运行实例。引擎不应该伪造外部资源,也不应该在资源缺失时偷偷替换成别的实现。
66
+
67
+ The engine is responsible for requesting required runtime resources from the host and injecting them through explicit instance-level entry points. The engine must not fake external resources or secretly replace missing resources with other implementations.
68
+
69
+ 插件用于增强 Agent 能力。插件可以组织工具、上下文、策略、检索流程或运行时增强,但不能把宿主资源管理、模型配置、持久化基础设施等职责混进插件边界。
70
+
71
+ Plugins are for enhancing Agent capability. A plugin may organize tools, context, policies, retrieval flow, or runtime enhancement, but it must not absorb host resource management, model configuration, or persistence infrastructure responsibilities.
72
+
73
+ Agent YAML 只负责声明配置参数。YAML 不承载运行期对象,不表达宿主资源实例,不通过 overrides 或字符串路径伪装资源注入。
74
+
75
+ Agent YAML is only for declaring configuration parameters. YAML must not carry runtime objects, host resource instances, or fake resource injection through overrides or string paths.
76
+
77
+ 官方预设插件必须保持轻量、边界清晰,禁止植入网络请求、模型 key 管理、外部服务客户端等臃肿模块。第三方宿主插件可以自行决定是否接入这些能力,但不能反向污染官方插件边界。
78
+
79
+ Official built-in plugins must stay lightweight with clear boundaries. They must not embed bulky modules such as network requests, model key management, or external service clients. Third-party host plugins may choose to integrate those capabilities, but must not push that boundary back into official plugins.
@@ -0,0 +1,35 @@
1
+ .PHONY: test test-cov test-core-cov lint format build clean
2
+
3
+ PYTHON ?= .venv/bin/python
4
+
5
+ test:
6
+ $(PYTHON) -m pytest tests/ -v --tb=short
7
+
8
+ test-cov:
9
+ $(PYTHON) -m pytest tests/ -v --cov=axc_agent_engine --cov-report=html
10
+
11
+ test-core-cov:
12
+ $(PYTHON) -m pytest tests/core tests/engine tests/runtime tests/tools tests/storage tests/workflow tests/planning \
13
+ --cov=axc_agent_engine.agent \
14
+ --cov=axc_agent_engine.engine \
15
+ --cov=axc_agent_engine.core \
16
+ --cov=axc_agent_engine.runtime \
17
+ --cov=axc_agent_engine.tools \
18
+ --cov=axc_agent_engine.storage \
19
+ --cov=axc_agent_engine.workflow \
20
+ --cov=axc_agent_engine.planning \
21
+ --cov-report=term-missing:skip-covered \
22
+ --cov-fail-under=98 -q
23
+
24
+ lint:
25
+ ruff check axc_agent_engine/
26
+
27
+ format:
28
+ ruff format axc_agent_engine/
29
+
30
+ build:
31
+ $(PYTHON) -m build
32
+
33
+ clean:
34
+ rm -rf dist/ build/ *.egg-info .pytest_cache .ruff_cache htmlcov coverage.xml
35
+ find . -type d -name __pycache__ -exec rm -rf {} + 2>/dev/null || true
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: axc-agent-engine
3
- Version: 2.2.0
3
+ Version: 2.3.2
4
4
  Summary: Agent execution engine with Plan-Observe-Replan (POR) and plugin architecture
5
5
  Project-URL: Homepage, https://github.com/axclogo/AxcAgentEngine
6
6
  Project-URL: Documentation, https://github.com/axclogo/AxcAgentEngine#readme
@@ -84,8 +84,8 @@ AxcAgentEngine adds **POR (Plan-Observe-Replan)** on top of ReAct: the agent pro
84
84
  ```bash
85
85
  pip install axc-agent-engine
86
86
 
87
- # Pin the current 2.0 release
88
- pip install axc-agent-engine==2.0
87
+ # Pin the current 2.3 release
88
+ pip install axc-agent-engine==2.3.2
89
89
 
90
90
  # Optional extras
91
91
  pip install "axc-agent-engine[api]"
@@ -132,7 +132,8 @@ async for event in agent.stream("Build a REST API for user management"):
132
132
  - **Tool protocol** - every tool returns `ToolOutput`; read-only runs concurrent, write serial; safe function-name mapping
133
133
  - **Durable workflow** - `WorkflowRuntime` + `CheckpointStore` + Agent resume API; Burr is optional via `axc-agent-engine[workflow]`
134
134
  - **OpenAI compatible** - provider protocol + OpenAI-compatible HTTP client and API subset
135
- - **Memory & knowledge** - four-layer memory (KV, dedup, decay, graph hooks) + semantic chunking + vector/BM25 hybrid retrieval
135
+ - **Memory & knowledge** - four-layer memory (KV, dedup, decay, graph hooks) + plugin-owned hybrid retrieval
136
+ - **Runtime binding** - models, mounted resources, request metadata, and YAML overrides stay in separate channels
136
137
  - **MCP** - stdio, JSON-RPC HTTP, official SDK transports
137
138
  - **Human-in-the-loop** - approval queue and `ask_human` tool
138
139
  - **Sidecar suite** - multi-agent, simulation, eval, cost, failure mining, trace distillation
@@ -151,8 +152,8 @@ async for event in agent.stream("Build a REST API for user management"):
151
152
  | Tool output | enforced `ToolOutput` |
152
153
  | Tool name mapping | provider-side model-safe mapping |
153
154
  | Context compression | built-in `compress` plugin |
154
- | Memory | four layers + KV fallback + dedup + decay + graph hooks |
155
- | Knowledge | semantic chunking + embeddings + BM25/vector + optional rerank |
155
+ | Memory | four layers + KV persistence + dedup + decay |
156
+ | Knowledge | plugin-owned retrieval over local sources or mounted indexes/resources |
156
157
  | MCP | stdio / JSON-RPC HTTP / official SDK |
157
158
  | Human approval | approval queue + `ask_human` |
158
159
  | Sidecar | multi-agent / simulation / eval / cost / failure mining / distillation |
@@ -169,7 +170,7 @@ async for event in agent.stream("Build a REST API for user management"):
169
170
  | [Plugin development](docs/PLUGIN_DEVELOPMENT.md) | Build your own plugin |
170
171
  | [Security model](docs/SECURITY_MODEL.md) | Capabilities, risk, workspace |
171
172
  | [Examples](examples/README.md) | 7 end-to-end demos |
172
- | [Contributing](CONTRIBUTING.md) / [Security](SECURITY.md) / [Changelog](CHANGELOG.md) / [LICENSE](LICENSE) | Apache-2.0 |
173
+ | [Contributing](CONTRIBUTING.md) / [Security](SECURITY.md) / [LICENSE](LICENSE) | Apache-2.0 |
173
174
 
174
175
  ## Agent YAML
175
176
 
@@ -192,17 +193,13 @@ system_prompt: |
192
193
  plugins:
193
194
  builtin_tools:
194
195
  enabled: true
195
- load: ["get_time", "file_read", "file_write", "http_request", "result_read"]
196
+ load: ["get_time", "file_read", "file_write", "http_request", "artifact_read"]
196
197
  defer: ["file_write", "http_request"]
197
198
 
198
199
  knowledge:
199
200
  enabled: true
200
201
  sources: ["./docs"]
201
202
  namespace: "default"
202
- embedding:
203
- base_url: "https://api.openai.com/v1"
204
- api_key: "sk-xxx"
205
- model: "text-embedding-3-small"
206
203
 
207
204
  memory:
208
205
  enabled: true
@@ -212,7 +209,11 @@ plugins:
212
209
 
213
210
  compress:
214
211
  enabled: true
215
- summary_after_rounds: 8
212
+ summary:
213
+ after_rounds: 8
214
+ durable_tools:
215
+ names: ["agent_call", "knowledge_search"]
216
+ keep: 12
216
217
 
217
218
  risk_guard:
218
219
  enabled: true
@@ -225,13 +226,15 @@ Notes:
225
226
  - Tools with a non-empty capability are denied by default; list them in `runtime.allowed_capabilities`.
226
227
  - File and command tools require `runtime.workspace` by default.
227
228
  - LLM configuration is provided in code, not in Agent YAML.
229
+ - Official builtin plugin YAML is for behavior parameters only. External endpoints, API keys, client objects, indexes, stores, and catalogs are mounted in code.
228
230
 
229
231
  ## Provider Configuration
230
232
 
231
233
  `AgentModels` accepts model provider objects. `OpenAIClient(LLMConfig(...))` is the built-in OpenAI-compatible provider; custom providers implement `LLMProvider` (`model`, `tool_name_mapping`, `chat`, `stream`, `ask`, `close`).
232
234
 
233
235
  ```python
234
- from axc_agent_engine import ConcurrencyConfig, Engine, LLMConfig
236
+ from axc_agent_engine import AgentModels, ConcurrencyConfig, Engine, LLMConfig
237
+ from axc_agent_engine.llm.client import OpenAIClient
235
238
  from axc_agent_engine.tools.name_mapping import ToolNameMappingConfig
236
239
 
237
240
  main_model_config = LLMConfig(
@@ -258,6 +261,139 @@ agent = engine.load_agent_template("./agents/my_agent.yaml").instantiate(
258
261
 
259
262
  Tool-name mapping is the provider's job. Internal tool names are encoded to model-safe function names before the LLM call and decoded before hooks and tool execution.
260
263
 
264
+ ## Runtime Binding
265
+
266
+ Agent YAML describes stable behavior. Runtime objects are bound in code when the template is instantiated:
267
+
268
+ ```python
269
+ agent = template.instantiate(
270
+ models=AgentModels(
271
+ default=gpt5_provider,
272
+ utility=fast_provider,
273
+ fallback=backup_provider,
274
+ ),
275
+ mounts={
276
+ "knowledge.index": tenant_knowledge_index,
277
+ "graph.store": tenant_graph_store,
278
+ "skill.catalog": tenant_skill_catalog,
279
+ },
280
+ metadata={
281
+ "tenant_id": "t_001",
282
+ },
283
+ overrides={
284
+ "plugins.knowledge.namespace": "tenant:t_001",
285
+ "plugins.skill.timeout": 30,
286
+ },
287
+ )
288
+ ```
289
+
290
+ - `models` binds provider objects for this Agent instance; the Engine does not own model configuration.
291
+ - `mounts` injects host-owned runtime resources for this instantiation and overrides Engine-level resources with the same name.
292
+ - `metadata` attaches instance metadata; request metadata can still override it inside a single chat/stream call.
293
+ - `overrides` patches validated Agent YAML fields before plugins are initialized. It only accepts YAML-serializable values and cannot bind runtime resources.
294
+
295
+ Preferred official resource slots are `knowledge.index`, `graph.store`, `skill.catalog`, and `tracing.exporter`. Advanced knowledge slots such as `knowledge.documents`, `knowledge.embedding`, `knowledge.vector_store`, and `knowledge.reranker` are also supported by the current plugin, but they are still runtime mounts, not YAML or `overrides` values.
296
+
297
+ ## Request Metadata and Tracing
298
+
299
+ Run-level metadata is passed through the public Agent entry points and reaches `ExecutionContext.state.metadata`. The tracing plugin copies this metadata into every span, while keeping top-level `run_id`, `session_id`, `span_id`, and `parent_span_id`.
300
+
301
+ ```python
302
+ async for event in agent.stream_with_messages(
303
+ messages,
304
+ session_id="123",
305
+ llm_options={"temperature": 0.2},
306
+ run_options={"run_id": "run_abc"},
307
+ metadata={
308
+ "external_trace_id": "trace_1001",
309
+ "conversation_id": 123,
310
+ "agent_profile_id": 9,
311
+ },
312
+ ):
313
+ ...
314
+ ```
315
+
316
+ Use this for host-side trace or audit correlation. Do not encode external correlation IDs in prompts, tool arguments, or fake tool messages.
317
+
318
+ ## Cancellation and Usage
319
+
320
+ Every run receives a `run_id` through `run_options.run_id`, `metadata.run_id`, or engine generation. Hosts should cancel a run through the Engine so nested `agent_call`, swarm, sidecar-owned Agent runs, and active tools share the same cancellation signal:
321
+
322
+ ```python
323
+ engine.cancel_run("run_abc", reason="user_cancelled")
324
+ ```
325
+
326
+ Streaming callers receive a terminal `cancelled` event. Non-streaming callers receive `CancelledError`. Terminal `done` and `cancelled` events include aggregated usage in `event.metadata["usage"]`:
327
+
328
+ ```python
329
+ {
330
+ "input_tokens": 1200,
331
+ "output_tokens": 380,
332
+ "total_tokens": 1580,
333
+ }
334
+ ```
335
+
336
+ Hosts should read this aggregate instead of summing scattered LLM or sub-Agent events.
337
+
338
+ ## Multimodal Messages
339
+
340
+ The host owns uploads, authorization, OCR, image recognition, media URLs, and base64 generation. The engine only accepts normalized message content parts and passes them through the input/provider boundary:
341
+
342
+ ```python
343
+ messages = [{
344
+ "role": "user",
345
+ "content": [
346
+ {"type": "text", "text": "Explain this screenshot."},
347
+ {"type": "image_url", "image_url": {"url": "https://example.com/screen.png"}},
348
+ {"type": "image_base64", "media_type": "image/png", "data": "..."},
349
+ {"type": "file_ref", "ref": "artifact:123", "metadata": {"name": "report.pdf"}},
350
+ ],
351
+ }]
352
+ ```
353
+
354
+ Unsupported part types fail immediately. Official plugins do not fetch host media services or perform deployment-specific multimodal preprocessing.
355
+
356
+ ## Tool Output Views
357
+
358
+ `ToolOutput` separates the LLM context view from the UI display view:
359
+
360
+ - `content` remains the structured tool payload for hosts, UI, artifacts, and programmatic handling.
361
+ - `llm_view` is an optional text view written for LLM reasoning. Use it when structured JSON would be harder for the model to read.
362
+ - `context_view()` is written into `MessageStore` for the next LLM round. It prefers `durable_summary`, then `llm_view`, then full `content`, and preserves artifact refs. `summary` is metadata, not a replacement for the LLM view.
363
+ - `display_view()` is used by `tool_result` events for host/UI display. It exposes full content; UI preview limits belong in the host UI layer.
364
+ - New code should call `context_view()` or `display_view()` explicitly.
365
+
366
+ Hosts should not monkey patch `ToolOutput` to change LLM context behavior.
367
+
368
+ Tool implementations must not use default truncation, omission, or count-only `llm_view` text. List-style tools must include item identifiers such as names, paths, or ids. Content-style tools must return full content unless the caller explicitly requested ranges or pages. Oversized results should be externalized to an `ArtifactStore` artifact and the `llm_view` must include the `artifact_id` and tell the model to use `artifact_read` or `artifact_page`; it must not emit vague omitted text.
369
+
370
+ Official high-signal tools such as `agent_list`, `agent_call`, `knowledge_search`, `graph_search`, `memory_search`, `swarm_dispatch`, `file_read`, `file_list`, `file_glob`, `file_tree`, `list_traces`, `get_trace`, and `artifact_search` provide LLM-friendly `llm_view` text while keeping structured `content` for hosts.
371
+
372
+ ## ArtifactStore
373
+
374
+ `ArtifactStore` is the host-owned storage boundary for large tool results and generated artifacts. The engine defines the protocol and ships `InMemoryArtifactStore` for local development. Production hosts should inject a durable backend through `Engine(artifact_store=...)`.
375
+
376
+ The protocol supports text, bytes, and file-reference artifacts:
377
+
378
+ - `put_text(...)` and `put_bytes(...)` store inline content in the backend.
379
+ - `put_file_ref(path, ...)` registers a file path without copying the file into memory or duplicating a large file.
380
+ - `read(...)`, `read_page(...)`, and `search(...)` are exposed to the model through `artifact_read`, `artifact_page`, and `artifact_search`.
381
+ - `stat(...)`, `delete(...)`, `delete_run(...)`, and `gc(...)` let the host manage lifecycle.
382
+
383
+ Artifacts can carry `run_id`, `expires_at`, and `durable` metadata. Non-durable artifacts should be garbage-collected by run/session policy; durable artifacts are retained by host policy.
384
+
385
+ ## Durable Tool Results and Sub-Agent Events
386
+
387
+ The `compress` plugin preserves assistant tool calls and their matching tool results as atomic groups. Durable tool results are also saved into the compression boundary and reinjected after context packing. By default, `agent_call` and `knowledge_search` are durable; domain tools can opt in with `compress.durable_tools.names`, `compress.durable_tools.capabilities`, or `ToolOutput.with_metadata({"durable": True, "durable_summary": "..."})`.
388
+
389
+ `collaboration.agent_call` streams child Agent activity back to the parent run as standard events:
390
+
391
+ - `sub_agent_start`
392
+ - `sub_agent_step`
393
+ - `sub_agent_complete`
394
+
395
+ Stable fields include `parent_tool_call_id`, `sub_run_id`, `agent_name`, `agent_id`, `step.type`, `tool_call_id`, `tool_name`, `content`, `artifacts`, `error`, and `duration_ms`. Frontends should render these events directly. They should not parse `agent_call` tool results to invent a child execution timeline.
396
+
261
397
  ## API
262
398
 
263
399
  The HTTP API is an OpenAI Chat Completions compatible subset.
@@ -321,6 +457,7 @@ Sidecars live under `axc_agent_engine.sidecar` and are invoked explicitly by the
321
457
  | `sidecar.cost_optimizer` | Cost estimation and optimization findings |
322
458
 
323
459
  ```python
460
+ from axc_agent_engine import AgentModels, Engine
324
461
  from axc_agent_engine.sidecar import OrchestrationTaskService
325
462
  from axc_agent_engine.storage.in_memory import InMemoryMessageBus
326
463
 
@@ -344,42 +481,65 @@ task = await service.run_task(
344
481
  )
345
482
  ```
346
483
 
484
+ Sidecar components that create internal Agent runs accept standard run context:
485
+
486
+ - `EvalRunner.run_cases(..., run_options, metadata, case_run_options, case_metadata)`
487
+ - `MultiAgentSession.run/stream(..., run_options, metadata, agent_run_options, agent_metadata)`
488
+ - `SimulationRunner.run/stream(..., run_options, metadata, actor_run_options, actor_metadata)`
489
+
490
+ Factory metadata supplements the base metadata for each case, agent, or actor. `EvalCase.metadata` remains evaluation/scoring metadata and is not request metadata.
491
+
347
492
  ## Runtime Flow
348
493
 
349
494
  ### Load time
350
495
 
351
496
  ```mermaid
352
497
  flowchart TD
353
- A["Application creates Engine"] --> B["Inject providers and services"]
498
+ A["Application creates Engine"] --> B["Inject shared services and PluginRegistry"]
354
499
  B --> C["Engine.load_agent_template(agent.yaml)"]
355
- C --> D["AgentTemplate.instantiate(models, mounts)"]
356
- D --> E["Build PluginContext"]
357
- E --> F["Load enabled plugins"]
358
- F --> G["Plugin.initialize()"]
359
- G --> H["Plugin.get_tools()"]
360
- H --> I["Register ToolDefinition"]
361
- I --> J["Create Agent"]
500
+ C --> D["Validate Agent YAML"]
501
+ D --> E["AgentTemplate.instantiate(models, mounts, metadata, overrides)"]
502
+ E --> F["Apply YAML overrides"]
503
+ F --> G["Merge Engine resources + mounts"]
504
+ G --> H["Build PluginContext"]
505
+ H --> I["Load enabled plugins from registry"]
506
+ I --> J["Plugin.initialize(config, ctx)"]
507
+ J --> K["Plugin.get_tools()"]
508
+ K --> L["Register ToolDefinition"]
509
+ L --> M["Create Agent and dispatcher consumer"]
362
510
  ```
363
511
 
364
512
  ### One agent run
365
513
 
366
514
  ```mermaid
367
515
  flowchart TD
368
- A["User message"] --> B["Agent.chat() / Agent.stream()"]
369
- B --> C["ExecutionContext"]
370
- C --> D["Executor"]
371
- D --> E["ExecutionRunLifecycle + checkpoints"]
372
- D --> F["ReActKernel"]
373
- F --> G["MessageStore"]
374
- F --> H["Plugin hooks"]
375
- F --> I["LLMCaller"]
376
- I --> J["TransactionRouter"]
377
- J -->|final answer| K["done event"]
378
- J -->|tool calls| L["Tool pipeline"]
379
- L --> G
380
- J -->|plan or por_first| M["PORRunner"]
381
- M --> N["PORGraphRuntime (pydantic_graph)"]
382
- N --> K
516
+ A["Agent.chat / stream / *_with_messages / resume"] --> B["RunRequest.create"]
517
+ B --> C["Merge run_options.run_id and request metadata"]
518
+ C --> D["Create ExecutionContext"]
519
+ D --> E["ExecutionRunLifecycle.on_execution_start"]
520
+ E --> F["MessageStore initializes system/user/plugin context"]
521
+ F --> G{"Routing mode"}
522
+ G -->|react_only or auto ReAct| H["ReActKernel round"]
523
+ G -->|por_first or POR handoff| I["PORRunner / PORGraphRuntime"]
524
+ H --> J["Plugin.transform_messages"]
525
+ J --> K["compress: recent window + durable results + atomic tool groups"]
526
+ K --> L["LLMCaller"]
527
+ L --> M["Plugin.pre_llm_call"]
528
+ M --> N["Strip engine-only message fields"]
529
+ N --> O["LLM provider chat/stream"]
530
+ O --> P{"LLM response"}
531
+ P -->|final answer| Q["on_round_end -> on_execution_complete -> done"]
532
+ P -->|tool_calls| R["Tool orchestrator"]
533
+ R --> S["pre_tool_call / execute / post_tool_call"]
534
+ S --> T["ToolOutput -> MessageStore role=tool"]
535
+ T --> U["tool_result event"]
536
+ U --> H
537
+ S -->|agent_call / swarm| V["Child Agent dispatcher"]
538
+ V --> W["sub_agent_start / sub_agent_step / sub_agent_complete"]
539
+ W --> H
540
+ I --> Q
541
+ Q --> X["done/cancelled event with usage"]
542
+ X --> Y["tracing spans saved with metadata and parent_span_id"]
383
543
  ```
384
544
 
385
545
  ## Plugin Development
@@ -402,12 +562,11 @@ class MyPlugin(BasePlugin):
402
562
  "api_url",
403
563
  "接口地址",
404
564
  "string",
405
- "插件调用的后端接口地址。",
406
- label_en="API URL",
407
- default="http://localhost:5000",
408
- required=True,
409
- ),
410
- ],
565
+ "插件调用的后端接口地址。",
566
+ label_en="API URL",
567
+ default="http://localhost:5000",
568
+ ),
569
+ ],
411
570
  display_name_en="My Plugin",
412
571
  )
413
572
 
@@ -427,7 +586,13 @@ class MyPlugin(BasePlugin):
427
586
  return True, arguments
428
587
 
429
588
  async def _execute(self, args: dict, context: dict) -> ToolOutput:
430
- return ToolOutput.text(f"Result for {args['query']}")
589
+ data = {"query": args["query"], "matches": [{"title": "Example", "score": 0.92}]}
590
+ return ToolOutput(
591
+ content=data,
592
+ content_type="json",
593
+ summary="Found 1 match",
594
+ llm_view="Search results:\n1. Example | score=0.92",
595
+ )
431
596
  ```
432
597
 
433
598
  Plugins must inherit `BasePlugin`, declare `config_schema`, and return tools as `ToolDefinition` instances. `ToolRegistry` does not accept dicts.
@@ -468,15 +633,20 @@ CLI logging flags are global and must be placed before the subcommand.
468
633
  - **Tools come from plugins.** The engine core embeds no business tools.
469
634
  - **Tools must return `ToolOutput`.** Non-`ToolOutput` returns are rejected.
470
635
  - **Tool definitions must be `ToolDefinition`.** No dicts.
471
- - **Business protocols stay out.** Internal APIs, private DBs, company auth belong in private plugins.
636
+ - **Deployment-specific protocols stay out.** External APIs, deployment databases, auth flows, and service discovery belong in host plugins.
472
637
  - **LLM config lives in code.** Agent YAML describes runtime limits, capabilities, and plugins.
638
+ - **Fatal errors are not hidden by fallback logic.** Invalid configuration, invalid runtime resources, broken tool contracts, and flow errors must fail clearly.
639
+ - **Official plugins stay lean.** They may strengthen Agent behavior, but they do not own host network clients, deployment API keys, external services, or deployment-specific protocols.
640
+ - **Package `__init__.py` files only re-export symbols.** Implementations, registries, factories, version constants, and protocols live in normal modules.
641
+ - **Runtime resources use mounts.** Do not pass resources through YAML or `overrides`.
642
+ - **Request correlation uses metadata.** Hosts pass external trace identifiers through `metadata`; tracing spans persist them directly.
473
643
  - **The API is a subset.** Request-level `tools`, `tool_choice`, `n > 1` are rejected.
474
644
 
475
645
  ## Tests
476
646
 
477
647
  ```bash
478
- python3 -m pytest -q
479
- python3 -m pytest --cov --cov-report=term-missing:skip-covered -q
648
+ .venv/bin/python -m pytest --cov=axc_agent_engine -q
649
+ make test-core-cov
480
650
  ```
481
651
 
482
- The release gate requires at least 90% total coverage.
652
+ The release gate requires at least 95% total coverage. The engine-body coverage target is 98%.