axc-agent-engine 0.2.0__tar.gz → 2.1.0__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.
- {axc_agent_engine-0.2.0 → axc_agent_engine-2.1.0}/.gitignore +5 -0
- axc_agent_engine-2.1.0/AXC_ENGINE_CORE_REFACTOR_PLAN.md +377 -0
- {axc_agent_engine-0.2.0 → axc_agent_engine-2.1.0}/PKG-INFO +63 -30
- {axc_agent_engine-0.2.0 → axc_agent_engine-2.1.0}/README.md +54 -25
- {axc_agent_engine-0.2.0 → axc_agent_engine-2.1.0}/README.zh-CN.md +57 -29
- {axc_agent_engine-0.2.0 → axc_agent_engine-2.1.0}/axc_agent_engine/__init__.py +9 -11
- {axc_agent_engine-0.2.0 → axc_agent_engine-2.1.0}/axc_agent_engine/agent.py +187 -74
- {axc_agent_engine-0.2.0 → axc_agent_engine-2.1.0}/axc_agent_engine/api/app.py +4 -2
- {axc_agent_engine-0.2.0 → axc_agent_engine-2.1.0}/axc_agent_engine/api/deps.py +9 -3
- {axc_agent_engine-0.2.0 → axc_agent_engine-2.1.0}/axc_agent_engine/api/routes/chat.py +18 -8
- {axc_agent_engine-0.2.0 → axc_agent_engine-2.1.0}/axc_agent_engine/api/routes/health.py +2 -1
- {axc_agent_engine-0.2.0 → axc_agent_engine-2.1.0}/axc_agent_engine/cli.py +8 -4
- axc_agent_engine-2.1.0/axc_agent_engine/core/__init__.py +6 -0
- axc_agent_engine-2.1.0/axc_agent_engine/core/constants.py +28 -0
- {axc_agent_engine-0.2.0 → axc_agent_engine-2.1.0}/axc_agent_engine/core/context.py +40 -18
- {axc_agent_engine-0.2.0 → axc_agent_engine-2.1.0}/axc_agent_engine/core/dispatcher.py +25 -9
- {axc_agent_engine-0.2.0 → axc_agent_engine-2.1.0}/axc_agent_engine/core/errors.py +30 -15
- {axc_agent_engine-0.2.0 → axc_agent_engine-2.1.0}/axc_agent_engine/core/events.py +36 -13
- axc_agent_engine-2.1.0/axc_agent_engine/core/execution_run.py +163 -0
- axc_agent_engine-2.1.0/axc_agent_engine/core/executor.py +207 -0
- {axc_agent_engine-0.2.0 → axc_agent_engine-2.1.0}/axc_agent_engine/core/llm_caller.py +71 -32
- {axc_agent_engine-0.2.0 → axc_agent_engine-2.1.0}/axc_agent_engine/core/message_store.py +36 -16
- {axc_agent_engine-0.2.0 → axc_agent_engine-2.1.0}/axc_agent_engine/core/plugin_manager.py +45 -21
- axc_agent_engine-2.1.0/axc_agent_engine/core/react_kernel.py +151 -0
- {axc_agent_engine-0.2.0 → axc_agent_engine-2.1.0}/axc_agent_engine/core/react_loop.py +11 -5
- axc_agent_engine-2.1.0/axc_agent_engine/core/run_request.py +65 -0
- {axc_agent_engine-0.2.0 → axc_agent_engine-2.1.0}/axc_agent_engine/core/schema.py +32 -13
- {axc_agent_engine-0.2.0 → axc_agent_engine-2.1.0}/axc_agent_engine/core/session.py +2 -1
- {axc_agent_engine-0.2.0 → axc_agent_engine-2.1.0}/axc_agent_engine/core/session_manager.py +23 -18
- {axc_agent_engine-0.2.0 → axc_agent_engine-2.1.0}/axc_agent_engine/core/stream_aggregator.py +15 -4
- axc_agent_engine-2.1.0/axc_agent_engine/core/stream_sink.py +20 -0
- {axc_agent_engine-0.2.0 → axc_agent_engine-2.1.0}/axc_agent_engine/engine.py +23 -12
- {axc_agent_engine-0.2.0 → axc_agent_engine-2.1.0}/axc_agent_engine/llm/client.py +13 -5
- {axc_agent_engine-0.2.0 → axc_agent_engine-2.1.0}/axc_agent_engine/llm/provider.py +3 -1
- {axc_agent_engine-0.2.0 → axc_agent_engine-2.1.0}/axc_agent_engine/llm/rate_limited.py +4 -2
- {axc_agent_engine-0.2.0 → axc_agent_engine-2.1.0}/axc_agent_engine/llm/registry.py +24 -8
- axc_agent_engine-2.1.0/axc_agent_engine/observability/__init__.py +2 -0
- {axc_agent_engine-0.2.0 → axc_agent_engine-2.1.0}/axc_agent_engine/observability/audit.py +10 -5
- {axc_agent_engine-0.2.0 → axc_agent_engine-2.1.0}/axc_agent_engine/observability/logging.py +7 -3
- {axc_agent_engine-0.2.0 → axc_agent_engine-2.1.0}/axc_agent_engine/planning/__init__.py +3 -8
- axc_agent_engine-2.1.0/axc_agent_engine/planning/checkpointing.py +96 -0
- axc_agent_engine-2.1.0/axc_agent_engine/planning/graph_nodes.py +35 -0
- axc_agent_engine-2.1.0/axc_agent_engine/planning/graph_runtime.py +79 -0
- axc_agent_engine-2.1.0/axc_agent_engine/planning/graph_state.py +31 -0
- {axc_agent_engine-0.2.0 → axc_agent_engine-2.1.0}/axc_agent_engine/planning/observer.py +6 -3
- {axc_agent_engine-0.2.0 → axc_agent_engine-2.1.0}/axc_agent_engine/planning/planner.py +10 -4
- {axc_agent_engine-0.2.0 → axc_agent_engine-2.1.0}/axc_agent_engine/planning/planning_service.py +9 -3
- {axc_agent_engine-0.2.0 → axc_agent_engine-2.1.0}/axc_agent_engine/planning/por_runner.py +256 -247
- {axc_agent_engine-0.2.0 → axc_agent_engine-2.1.0}/axc_agent_engine/planning/prompts.py +2 -1
- {axc_agent_engine-0.2.0 → axc_agent_engine-2.1.0}/axc_agent_engine/planning/replanner.py +4 -2
- {axc_agent_engine-0.2.0 → axc_agent_engine-2.1.0}/axc_agent_engine/planning/router.py +10 -4
- {axc_agent_engine-0.2.0 → axc_agent_engine-2.1.0}/axc_agent_engine/planning/scheduler.py +8 -4
- {axc_agent_engine-0.2.0 → axc_agent_engine-2.1.0}/axc_agent_engine/planning/step_executor.py +3 -1
- {axc_agent_engine-0.2.0 → axc_agent_engine-2.1.0}/axc_agent_engine/plugins/__init__.py +35 -10
- {axc_agent_engine-0.2.0 → axc_agent_engine-2.1.0}/axc_agent_engine/plugins/base.py +45 -21
- {axc_agent_engine-0.2.0 → axc_agent_engine-2.1.0}/axc_agent_engine/plugins/builtin/__init__.py +4 -3
- axc_agent_engine-2.1.0/axc_agent_engine/plugins/builtin/builtin_tools/__init__.py +3 -0
- {axc_agent_engine-0.2.0 → axc_agent_engine-2.1.0}/axc_agent_engine/plugins/builtin/builtin_tools/command_tools.py +8 -4
- {axc_agent_engine-0.2.0 → axc_agent_engine-2.1.0}/axc_agent_engine/plugins/builtin/builtin_tools/file_tools.py +2 -1
- {axc_agent_engine-0.2.0 → axc_agent_engine-2.1.0}/axc_agent_engine/plugins/builtin/builtin_tools/http_tools.py +6 -3
- {axc_agent_engine-0.2.0 → axc_agent_engine-2.1.0}/axc_agent_engine/plugins/builtin/builtin_tools/path_policy.py +4 -2
- {axc_agent_engine-0.2.0 → axc_agent_engine-2.1.0}/axc_agent_engine/plugins/builtin/builtin_tools/plugin.py +14 -37
- {axc_agent_engine-0.2.0 → axc_agent_engine-2.1.0}/axc_agent_engine/plugins/builtin/builtin_tools/presenter.py +2 -1
- {axc_agent_engine-0.2.0 → axc_agent_engine-2.1.0}/axc_agent_engine/plugins/builtin/builtin_tools/registry.py +4 -2
- {axc_agent_engine-0.2.0 → axc_agent_engine-2.1.0}/axc_agent_engine/plugins/builtin/builtin_tools/result_store.py +2 -1
- {axc_agent_engine-0.2.0 → axc_agent_engine-2.1.0}/axc_agent_engine/plugins/builtin/builtin_tools/result_tools.py +2 -1
- {axc_agent_engine-0.2.0 → axc_agent_engine-2.1.0}/axc_agent_engine/plugins/builtin/builtin_tools/support.py +2 -1
- {axc_agent_engine-0.2.0 → axc_agent_engine-2.1.0}/axc_agent_engine/plugins/builtin/builtin_tools/tool_definitions.py +6 -5
- axc_agent_engine-2.1.0/axc_agent_engine/plugins/builtin/collaboration/__init__.py +3 -0
- {axc_agent_engine-0.2.0 → axc_agent_engine-2.1.0}/axc_agent_engine/plugins/builtin/collaboration/plugin.py +6 -2
- {axc_agent_engine-0.2.0 → axc_agent_engine-2.1.0}/axc_agent_engine/plugins/builtin/common.py +16 -7
- axc_agent_engine-2.1.0/axc_agent_engine/plugins/builtin/compress/__init__.py +3 -0
- axc_agent_engine-2.1.0/axc_agent_engine/plugins/builtin/compress/context/__init__.py +3 -0
- {axc_agent_engine-0.2.0 → axc_agent_engine-2.1.0}/axc_agent_engine/plugins/builtin/compress/context/boundary.py +8 -4
- {axc_agent_engine-0.2.0 → axc_agent_engine-2.1.0}/axc_agent_engine/plugins/builtin/compress/context/file_cache.py +8 -5
- {axc_agent_engine-0.2.0 → axc_agent_engine-2.1.0}/axc_agent_engine/plugins/builtin/compress/context/models.py +8 -4
- {axc_agent_engine-0.2.0 → axc_agent_engine-2.1.0}/axc_agent_engine/plugins/builtin/compress/context/normalizer.py +6 -3
- {axc_agent_engine-0.2.0 → axc_agent_engine-2.1.0}/axc_agent_engine/plugins/builtin/compress/context/packer.py +5 -3
- {axc_agent_engine-0.2.0 → axc_agent_engine-2.1.0}/axc_agent_engine/plugins/builtin/compress/context/recall.py +8 -4
- {axc_agent_engine-0.2.0 → axc_agent_engine-2.1.0}/axc_agent_engine/plugins/builtin/compress/context/recent_window.py +4 -2
- {axc_agent_engine-0.2.0 → axc_agent_engine-2.1.0}/axc_agent_engine/plugins/builtin/compress/context/scoring.py +2 -1
- {axc_agent_engine-0.2.0 → axc_agent_engine-2.1.0}/axc_agent_engine/plugins/builtin/compress/context/summarizer.py +4 -2
- {axc_agent_engine-0.2.0 → axc_agent_engine-2.1.0}/axc_agent_engine/plugins/builtin/compress/context/tool_result.py +8 -5
- {axc_agent_engine-0.2.0 → axc_agent_engine-2.1.0}/axc_agent_engine/plugins/builtin/compress/context/tool_summary.py +12 -9
- {axc_agent_engine-0.2.0 → axc_agent_engine-2.1.0}/axc_agent_engine/plugins/builtin/compress/plugin.py +8 -4
- axc_agent_engine-2.1.0/axc_agent_engine/plugins/builtin/config_schemas.py +405 -0
- axc_agent_engine-2.1.0/axc_agent_engine/plugins/builtin/cost_statistics/__init__.py +3 -0
- {axc_agent_engine-0.2.0 → axc_agent_engine-2.1.0}/axc_agent_engine/plugins/builtin/cost_statistics/plugin.py +10 -47
- axc_agent_engine-2.1.0/axc_agent_engine/plugins/builtin/graph/__init__.py +3 -0
- {axc_agent_engine-0.2.0 → axc_agent_engine-2.1.0}/axc_agent_engine/plugins/builtin/graph/audit.py +2 -1
- {axc_agent_engine-0.2.0 → axc_agent_engine-2.1.0}/axc_agent_engine/plugins/builtin/graph/config.py +2 -1
- {axc_agent_engine-0.2.0 → axc_agent_engine-2.1.0}/axc_agent_engine/plugins/builtin/graph/plugin.py +3 -1
- {axc_agent_engine-0.2.0 → axc_agent_engine-2.1.0}/axc_agent_engine/plugins/builtin/graph/policy.py +2 -1
- {axc_agent_engine-0.2.0 → axc_agent_engine-2.1.0}/axc_agent_engine/plugins/builtin/graph/presenter.py +2 -1
- {axc_agent_engine-0.2.0 → axc_agent_engine-2.1.0}/axc_agent_engine/plugins/builtin/graph/service.py +2 -1
- {axc_agent_engine-0.2.0 → axc_agent_engine-2.1.0}/axc_agent_engine/plugins/builtin/graph/source_loader.py +2 -1
- {axc_agent_engine-0.2.0 → axc_agent_engine-2.1.0}/axc_agent_engine/plugins/builtin/graph/support.py +6 -3
- {axc_agent_engine-0.2.0 → axc_agent_engine-2.1.0}/axc_agent_engine/plugins/builtin/graph/tool_factory.py +2 -1
- {axc_agent_engine-0.2.0 → axc_agent_engine-2.1.0}/axc_agent_engine/plugins/builtin/graph/tool_handlers.py +2 -1
- {axc_agent_engine-0.2.0 → axc_agent_engine-2.1.0}/axc_agent_engine/plugins/builtin/graph/utils.py +2 -1
- axc_agent_engine-2.1.0/axc_agent_engine/plugins/builtin/hooks/__init__.py +3 -0
- {axc_agent_engine-0.2.0 → axc_agent_engine-2.1.0}/axc_agent_engine/plugins/builtin/hooks/plugin.py +13 -5
- axc_agent_engine-2.1.0/axc_agent_engine/plugins/builtin/human_in_the_loop/__init__.py +3 -0
- {axc_agent_engine-0.2.0 → axc_agent_engine-2.1.0}/axc_agent_engine/plugins/builtin/human_in_the_loop/plugin.py +16 -7
- axc_agent_engine-2.1.0/axc_agent_engine/plugins/builtin/knowledge/__init__.py +3 -0
- {axc_agent_engine-0.2.0 → axc_agent_engine-2.1.0}/axc_agent_engine/plugins/builtin/knowledge/plugin.py +50 -26
- {axc_agent_engine-0.2.0 → axc_agent_engine-2.1.0}/axc_agent_engine/plugins/builtin/knowledge/support/__init__.py +2 -1
- {axc_agent_engine-0.2.0 → axc_agent_engine-2.1.0}/axc_agent_engine/plugins/builtin/knowledge/support/chunker.py +7 -4
- {axc_agent_engine-0.2.0 → axc_agent_engine-2.1.0}/axc_agent_engine/plugins/builtin/knowledge/support/ingestion.py +14 -7
- {axc_agent_engine-0.2.0 → axc_agent_engine-2.1.0}/axc_agent_engine/plugins/builtin/knowledge/support/retrieval.py +64 -44
- axc_agent_engine-2.1.0/axc_agent_engine/plugins/builtin/mcp/__init__.py +3 -0
- {axc_agent_engine-0.2.0 → axc_agent_engine-2.1.0}/axc_agent_engine/plugins/builtin/mcp/plugin.py +4 -1
- {axc_agent_engine-0.2.0 → axc_agent_engine-2.1.0}/axc_agent_engine/plugins/builtin/mcp/support/__init__.py +2 -1
- {axc_agent_engine-0.2.0 → axc_agent_engine-2.1.0}/axc_agent_engine/plugins/builtin/mcp/support/client.py +2 -1
- {axc_agent_engine-0.2.0 → axc_agent_engine-2.1.0}/axc_agent_engine/plugins/builtin/mcp/support/connection.py +5 -3
- {axc_agent_engine-0.2.0 → axc_agent_engine-2.1.0}/axc_agent_engine/plugins/builtin/mcp/support/models.py +6 -3
- {axc_agent_engine-0.2.0 → axc_agent_engine-2.1.0}/axc_agent_engine/plugins/builtin/mcp/support/normalization.py +2 -1
- {axc_agent_engine-0.2.0 → axc_agent_engine-2.1.0}/axc_agent_engine/plugins/builtin/mcp/support/transports/__init__.py +2 -1
- {axc_agent_engine-0.2.0 → axc_agent_engine-2.1.0}/axc_agent_engine/plugins/builtin/mcp/support/transports/base.py +2 -1
- {axc_agent_engine-0.2.0 → axc_agent_engine-2.1.0}/axc_agent_engine/plugins/builtin/mcp/support/transports/http.py +2 -1
- {axc_agent_engine-0.2.0 → axc_agent_engine-2.1.0}/axc_agent_engine/plugins/builtin/mcp/support/transports/sdk.py +4 -2
- {axc_agent_engine-0.2.0 → axc_agent_engine-2.1.0}/axc_agent_engine/plugins/builtin/mcp/support/transports/stdio.py +2 -1
- axc_agent_engine-2.1.0/axc_agent_engine/plugins/builtin/memory/__init__.py +3 -0
- {axc_agent_engine-0.2.0 → axc_agent_engine-2.1.0}/axc_agent_engine/plugins/builtin/memory/plugin.py +30 -13
- {axc_agent_engine-0.2.0 → axc_agent_engine-2.1.0}/axc_agent_engine/plugins/builtin/memory/support/__init__.py +2 -1
- {axc_agent_engine-0.2.0 → axc_agent_engine-2.1.0}/axc_agent_engine/plugins/builtin/memory/support/embedding.py +8 -8
- {axc_agent_engine-0.2.0 → axc_agent_engine-2.1.0}/axc_agent_engine/plugins/builtin/memory/support/graph.py +8 -4
- {axc_agent_engine-0.2.0 → axc_agent_engine-2.1.0}/axc_agent_engine/plugins/builtin/memory/support/retrieval.py +12 -6
- {axc_agent_engine-0.2.0 → axc_agent_engine-2.1.0}/axc_agent_engine/plugins/builtin/memory/support/service.py +22 -11
- axc_agent_engine-2.1.0/axc_agent_engine/plugins/builtin/output_format/__init__.py +3 -0
- {axc_agent_engine-0.2.0 → axc_agent_engine-2.1.0}/axc_agent_engine/plugins/builtin/output_format/plugin.py +13 -7
- {axc_agent_engine-0.2.0 → axc_agent_engine-2.1.0}/axc_agent_engine/plugins/builtin/output_format/support/__init__.py +2 -1
- {axc_agent_engine-0.2.0 → axc_agent_engine-2.1.0}/axc_agent_engine/plugins/builtin/output_format/support/service.py +16 -13
- axc_agent_engine-2.1.0/axc_agent_engine/plugins/builtin/post_process/__init__.py +3 -0
- {axc_agent_engine-0.2.0 → axc_agent_engine-2.1.0}/axc_agent_engine/plugins/builtin/post_process/plugin.py +4 -2
- axc_agent_engine-2.1.0/axc_agent_engine/plugins/builtin/reflexion/__init__.py +3 -0
- {axc_agent_engine-0.2.0 → axc_agent_engine-2.1.0}/axc_agent_engine/plugins/builtin/reflexion/plugin.py +8 -3
- axc_agent_engine-2.1.0/axc_agent_engine/plugins/builtin/repetition_guard/__init__.py +3 -0
- {axc_agent_engine-0.2.0 → axc_agent_engine-2.1.0}/axc_agent_engine/plugins/builtin/repetition_guard/plugin.py +7 -2
- axc_agent_engine-2.1.0/axc_agent_engine/plugins/builtin/risk_guard/__init__.py +3 -0
- {axc_agent_engine-0.2.0 → axc_agent_engine-2.1.0}/axc_agent_engine/plugins/builtin/risk_guard/plugin.py +7 -2
- axc_agent_engine-2.1.0/axc_agent_engine/plugins/builtin/safety/__init__.py +3 -0
- {axc_agent_engine-0.2.0 → axc_agent_engine-2.1.0}/axc_agent_engine/plugins/builtin/safety/plugin.py +11 -4
- axc_agent_engine-2.1.0/axc_agent_engine/plugins/builtin/skill/__init__.py +3 -0
- {axc_agent_engine-0.2.0 → axc_agent_engine-2.1.0}/axc_agent_engine/plugins/builtin/skill/plugin.py +12 -4
- axc_agent_engine-2.1.0/axc_agent_engine/plugins/builtin/swarm/__init__.py +3 -0
- {axc_agent_engine-0.2.0 → axc_agent_engine-2.1.0}/axc_agent_engine/plugins/builtin/swarm/plugin.py +2 -0
- axc_agent_engine-2.1.0/axc_agent_engine/plugins/builtin/tracing/__init__.py +3 -0
- {axc_agent_engine-0.2.0 → axc_agent_engine-2.1.0}/axc_agent_engine/plugins/builtin/tracing/plugin.py +7 -3
- axc_agent_engine-2.1.0/axc_agent_engine/plugins/config_schema.py +192 -0
- {axc_agent_engine-0.2.0 → axc_agent_engine-2.1.0}/axc_agent_engine/plugins/loader.py +19 -8
- axc_agent_engine-2.1.0/axc_agent_engine/plugins/registry.py +147 -0
- axc_agent_engine-2.1.0/axc_agent_engine/runtime/__init__.py +2 -0
- {axc_agent_engine-0.2.0 → axc_agent_engine-2.1.0}/axc_agent_engine/runtime/checkpoint.py +9 -5
- {axc_agent_engine-0.2.0 → axc_agent_engine-2.1.0}/axc_agent_engine/runtime/concurrency.py +9 -5
- {axc_agent_engine-0.2.0 → axc_agent_engine-2.1.0}/axc_agent_engine/runtime/input.py +8 -4
- {axc_agent_engine-0.2.0 → axc_agent_engine-2.1.0}/axc_agent_engine/runtime/policy.py +10 -5
- {axc_agent_engine-0.2.0 → axc_agent_engine-2.1.0}/axc_agent_engine/runtime/resources.py +14 -7
- {axc_agent_engine-0.2.0 → axc_agent_engine-2.1.0}/axc_agent_engine/runtime/risk.py +2 -1
- {axc_agent_engine-0.2.0 → axc_agent_engine-2.1.0}/axc_agent_engine/runtime/sandbox_code.py +6 -3
- {axc_agent_engine-0.2.0 → axc_agent_engine-2.1.0}/axc_agent_engine/runtime/sandbox_local.py +4 -2
- {axc_agent_engine-0.2.0 → axc_agent_engine-2.1.0}/axc_agent_engine/runtime/sandbox_models.py +12 -6
- {axc_agent_engine-0.2.0 → axc_agent_engine-2.1.0}/axc_agent_engine/runtime/sandbox_policy.py +6 -3
- {axc_agent_engine-0.2.0 → axc_agent_engine-2.1.0}/axc_agent_engine/runtime/sandbox_provider.py +4 -2
- {axc_agent_engine-0.2.0 → axc_agent_engine-2.1.0}/axc_agent_engine/runtime/sandbox_utils.py +2 -1
- {axc_agent_engine-0.2.0 → axc_agent_engine-2.1.0}/axc_agent_engine/runtime/sandbox_workspace.py +4 -2
- {axc_agent_engine-0.2.0 → axc_agent_engine-2.1.0}/axc_agent_engine/sidecar/__init__.py +4 -3
- {axc_agent_engine-0.2.0 → axc_agent_engine-2.1.0}/axc_agent_engine/sidecar/agent_selector/__init__.py +16 -7
- {axc_agent_engine-0.2.0 → axc_agent_engine-2.1.0}/axc_agent_engine/sidecar/cost_optimizer/__init__.py +22 -9
- {axc_agent_engine-0.2.0 → axc_agent_engine-2.1.0}/axc_agent_engine/sidecar/distiller/__init__.py +19 -8
- {axc_agent_engine-0.2.0 → axc_agent_engine-2.1.0}/axc_agent_engine/sidecar/eval/__init__.py +4 -3
- {axc_agent_engine-0.2.0 → axc_agent_engine-2.1.0}/axc_agent_engine/sidecar/eval/judge.py +6 -2
- {axc_agent_engine-0.2.0 → axc_agent_engine-2.1.0}/axc_agent_engine/sidecar/eval/matcher.py +16 -7
- {axc_agent_engine-0.2.0 → axc_agent_engine-2.1.0}/axc_agent_engine/sidecar/eval/report.py +10 -5
- {axc_agent_engine-0.2.0 → axc_agent_engine-2.1.0}/axc_agent_engine/sidecar/eval/runner.py +27 -9
- {axc_agent_engine-0.2.0 → axc_agent_engine-2.1.0}/axc_agent_engine/sidecar/eval/store.py +19 -8
- {axc_agent_engine-0.2.0 → axc_agent_engine-2.1.0}/axc_agent_engine/sidecar/failure_miner/__init__.py +16 -7
- {axc_agent_engine-0.2.0 → axc_agent_engine-2.1.0}/axc_agent_engine/sidecar/multi_agent/events.py +3 -1
- {axc_agent_engine-0.2.0 → axc_agent_engine-2.1.0}/axc_agent_engine/sidecar/multi_agent/modes.py +10 -5
- {axc_agent_engine-0.2.0 → axc_agent_engine-2.1.0}/axc_agent_engine/sidecar/multi_agent/persona.py +9 -3
- axc_agent_engine-2.1.0/axc_agent_engine/sidecar/multi_agent/scheduler/__init__.py +25 -0
- {axc_agent_engine-0.2.0 → axc_agent_engine-2.1.0}/axc_agent_engine/sidecar/multi_agent/scheduler/all_parallel.py +6 -2
- {axc_agent_engine-0.2.0 → axc_agent_engine-2.1.0}/axc_agent_engine/sidecar/multi_agent/scheduler/debate.py +8 -4
- {axc_agent_engine-0.2.0 → axc_agent_engine-2.1.0}/axc_agent_engine/sidecar/multi_agent/scheduler/redblue.py +12 -8
- {axc_agent_engine-0.2.0 → axc_agent_engine-2.1.0}/axc_agent_engine/sidecar/multi_agent/scheduler/round_robin.py +8 -1
- {axc_agent_engine-0.2.0 → axc_agent_engine-2.1.0}/axc_agent_engine/sidecar/multi_agent/scheduler/supervisor.py +19 -13
- {axc_agent_engine-0.2.0 → axc_agent_engine-2.1.0}/axc_agent_engine/sidecar/multi_agent/session.py +24 -8
- {axc_agent_engine-0.2.0 → axc_agent_engine-2.1.0}/axc_agent_engine/sidecar/multi_agent/shared_context.py +18 -6
- {axc_agent_engine-0.2.0 → axc_agent_engine-2.1.0}/axc_agent_engine/sidecar/multi_agent/simulation_session.py +13 -6
- {axc_agent_engine-0.2.0 → axc_agent_engine-2.1.0}/axc_agent_engine/sidecar/multi_agent/stop_condition/__init__.py +6 -2
- {axc_agent_engine-0.2.0 → axc_agent_engine-2.1.0}/axc_agent_engine/sidecar/multi_agent/stop_condition/llm_based.py +8 -4
- {axc_agent_engine-0.2.0 → axc_agent_engine-2.1.0}/axc_agent_engine/sidecar/multi_agent/stop_condition/max_rounds.py +3 -1
- {axc_agent_engine-0.2.0 → axc_agent_engine-2.1.0}/axc_agent_engine/sidecar/multi_agent/types.py +10 -5
- {axc_agent_engine-0.2.0 → axc_agent_engine-2.1.0}/axc_agent_engine/sidecar/orchestration/__init__.py +19 -8
- {axc_agent_engine-0.2.0 → axc_agent_engine-2.1.0}/axc_agent_engine/sidecar/simulation/__init__.py +4 -3
- {axc_agent_engine-0.2.0 → axc_agent_engine-2.1.0}/axc_agent_engine/sidecar/simulation/action_parser.py +10 -5
- {axc_agent_engine-0.2.0 → axc_agent_engine-2.1.0}/axc_agent_engine/sidecar/simulation/adapters.py +17 -13
- {axc_agent_engine-0.2.0 → axc_agent_engine-2.1.0}/axc_agent_engine/sidecar/simulation/defaults.py +25 -10
- {axc_agent_engine-0.2.0 → axc_agent_engine-2.1.0}/axc_agent_engine/sidecar/simulation/interfaces.py +22 -9
- {axc_agent_engine-0.2.0 → axc_agent_engine-2.1.0}/axc_agent_engine/sidecar/simulation/models.py +40 -15
- {axc_agent_engine-0.2.0 → axc_agent_engine-2.1.0}/axc_agent_engine/sidecar/simulation/modes.py +7 -4
- {axc_agent_engine-0.2.0 → axc_agent_engine-2.1.0}/axc_agent_engine/sidecar/simulation/report.py +19 -10
- {axc_agent_engine-0.2.0 → axc_agent_engine-2.1.0}/axc_agent_engine/sidecar/simulation/runner.py +19 -8
- {axc_agent_engine-0.2.0 → axc_agent_engine-2.1.0}/axc_agent_engine/storage/__init__.py +3 -1
- {axc_agent_engine-0.2.0 → axc_agent_engine-2.1.0}/axc_agent_engine/storage/in_memory.py +15 -9
- {axc_agent_engine-0.2.0 → axc_agent_engine-2.1.0}/axc_agent_engine/storage/protocols.py +25 -10
- {axc_agent_engine-0.2.0 → axc_agent_engine-2.1.0}/axc_agent_engine/storage/result_store.py +16 -8
- axc_agent_engine-2.1.0/axc_agent_engine/tools/__init__.py +2 -0
- axc_agent_engine-2.1.0/axc_agent_engine/tools/audit.py +72 -0
- axc_agent_engine-2.1.0/axc_agent_engine/tools/batches.py +23 -0
- {axc_agent_engine-0.2.0 → axc_agent_engine-2.1.0}/axc_agent_engine/tools/context.py +15 -4
- {axc_agent_engine-0.2.0 → axc_agent_engine-2.1.0}/axc_agent_engine/tools/decorator.py +7 -3
- {axc_agent_engine-0.2.0 → axc_agent_engine-2.1.0}/axc_agent_engine/tools/executor.py +24 -11
- {axc_agent_engine-0.2.0 → axc_agent_engine-2.1.0}/axc_agent_engine/tools/name_mapping.py +10 -5
- axc_agent_engine-2.1.0/axc_agent_engine/tools/orchestrator.py +188 -0
- axc_agent_engine-2.1.0/axc_agent_engine/tools/policy.py +20 -0
- {axc_agent_engine-0.2.0 → axc_agent_engine-2.1.0}/axc_agent_engine/tools/registry.py +27 -13
- axc_agent_engine-2.1.0/axc_agent_engine/tools/runtime.py +77 -0
- {axc_agent_engine-0.2.0 → axc_agent_engine-2.1.0}/axc_agent_engine/tools/tool_output.py +28 -13
- {axc_agent_engine-0.2.0 → axc_agent_engine-2.1.0}/axc_agent_engine/tools/utils.py +8 -3
- axc_agent_engine-2.1.0/axc_agent_engine/utils/__init__.py +2 -0
- {axc_agent_engine-0.2.0 → axc_agent_engine-2.1.0}/axc_agent_engine/utils/json_utils.py +9 -3
- {axc_agent_engine-0.2.0 → axc_agent_engine-2.1.0}/axc_agent_engine/utils/math_utils.py +4 -2
- axc_agent_engine-2.1.0/axc_agent_engine/workflow/__init__.py +25 -0
- axc_agent_engine-2.1.0/axc_agent_engine/workflow/burr_runtime.py +108 -0
- axc_agent_engine-2.1.0/axc_agent_engine/workflow/factory.py +18 -0
- axc_agent_engine-2.1.0/axc_agent_engine/workflow/memory_runtime.py +60 -0
- axc_agent_engine-2.1.0/axc_agent_engine/workflow/protocols.py +58 -0
- axc_agent_engine-2.1.0/axc_agent_engine/workflow/state.py +47 -0
- {axc_agent_engine-0.2.0 → axc_agent_engine-2.1.0}/docs/PLUGIN_DEVELOPMENT.md +45 -0
- axc_agent_engine-2.1.0/docs/RAVEN_EXECUTION_KERNEL_REPLACEMENT.md +1657 -0
- {axc_agent_engine-0.2.0 → axc_agent_engine-2.1.0}/examples/06_multi_agent/run_group_chat.py +1 -1
- {axc_agent_engine-0.2.0 → axc_agent_engine-2.1.0}/examples/06_multi_agent/run_supervisor.py +1 -1
- {axc_agent_engine-0.2.0 → axc_agent_engine-2.1.0}/examples/07_simulation/run_debate.py +1 -1
- {axc_agent_engine-0.2.0 → axc_agent_engine-2.1.0}/examples/07_simulation/run_redblue.py +1 -1
- {axc_agent_engine-0.2.0 → axc_agent_engine-2.1.0}/llms.txt +0 -3
- {axc_agent_engine-0.2.0 → axc_agent_engine-2.1.0}/pyproject.toml +17 -6
- axc_agent_engine-2.1.0/tests/api/__init__.py +0 -0
- {axc_agent_engine-0.2.0/tests → axc_agent_engine-2.1.0/tests/api}/test_api_chat.py +99 -0
- axc_agent_engine-2.1.0/tests/boundaries/__init__.py +0 -0
- {axc_agent_engine-0.2.0/tests → axc_agent_engine-2.1.0/tests/boundaries}/test_compression_boundary.py +2 -2
- axc_agent_engine-2.1.0/tests/boundaries/test_core_dependency_boundaries.py +62 -0
- {axc_agent_engine-0.2.0/tests → axc_agent_engine-2.1.0/tests/boundaries}/test_engine_boundaries.py +64 -1
- {axc_agent_engine-0.2.0/tests → axc_agent_engine-2.1.0/tests/boundaries}/test_engine_plugin_boundaries.py +5 -3
- {axc_agent_engine-0.2.0/tests → axc_agent_engine-2.1.0/tests/boundaries}/test_init_exports.py +1 -2
- axc_agent_engine-2.1.0/tests/boundaries/test_plugin_config_schema_boundaries.py +73 -0
- axc_agent_engine-2.1.0/tests/boundaries/test_source_text_policy.py +170 -0
- axc_agent_engine-2.1.0/tests/cli/test_cli.py +75 -0
- axc_agent_engine-2.1.0/tests/core/__init__.py +0 -0
- {axc_agent_engine-0.2.0/tests → axc_agent_engine-2.1.0/tests/core}/test_constants.py +3 -3
- {axc_agent_engine-0.2.0/tests → axc_agent_engine-2.1.0/tests/core}/test_core.py +1 -12
- {axc_agent_engine-0.2.0/tests → axc_agent_engine-2.1.0/tests/core}/test_execution_services.py +1 -1
- {axc_agent_engine-0.2.0/tests → axc_agent_engine-2.1.0/tests/core}/test_executor_checkpoint.py +3 -3
- {axc_agent_engine-0.2.0/tests → axc_agent_engine-2.1.0/tests/core}/test_message_store_snapshot.py +2 -2
- {axc_agent_engine-0.2.0/tests → axc_agent_engine-2.1.0/tests/core}/test_message_store_tooloutput.py +4 -4
- {axc_agent_engine-0.2.0/tests → axc_agent_engine-2.1.0/tests/core}/test_stream_aggregator.py +13 -0
- axc_agent_engine-2.1.0/tests/engine/__init__.py +0 -0
- {axc_agent_engine-0.2.0/tests → axc_agent_engine-2.1.0/tests/engine}/test_integration_flow.py +1 -1
- axc_agent_engine-2.1.0/tests/llm/__init__.py +0 -0
- axc_agent_engine-2.1.0/tests/llm/test_provider.py +346 -0
- axc_agent_engine-2.1.0/tests/observability/__init__.py +0 -0
- axc_agent_engine-2.1.0/tests/observability/test_logging.py +31 -0
- axc_agent_engine-2.1.0/tests/planning/__init__.py +0 -0
- {axc_agent_engine-0.2.0/tests → axc_agent_engine-2.1.0/tests/planning}/test_plan_runtime.py +1 -5
- {axc_agent_engine-0.2.0/tests → axc_agent_engine-2.1.0/tests/planning}/test_planning.py +111 -2
- axc_agent_engine-2.1.0/tests/planning/test_por_checkpointing.py +20 -0
- axc_agent_engine-2.1.0/tests/planning/test_por_graph_runtime.py +54 -0
- axc_agent_engine-2.1.0/tests/plugins/__init__.py +0 -0
- {axc_agent_engine-0.2.0/tests → axc_agent_engine-2.1.0/tests/plugins}/test_builtin_tools_tooloutput.py +3 -3
- axc_agent_engine-2.1.0/tests/plugins/test_config_schema.py +84 -0
- {axc_agent_engine-0.2.0/tests → axc_agent_engine-2.1.0/tests/plugins}/test_graph_store.py +95 -0
- axc_agent_engine-2.1.0/tests/plugins/test_hooks_and_hitl.py +96 -0
- axc_agent_engine-2.1.0/tests/plugins/test_knowledge_core.py +349 -0
- {axc_agent_engine-0.2.0/tests → axc_agent_engine-2.1.0/tests/plugins}/test_knowledge_vector.py +8 -8
- axc_agent_engine-2.1.0/tests/plugins/test_lightweight_guards.py +101 -0
- axc_agent_engine-2.1.0/tests/plugins/test_mcp_transports.py +213 -0
- axc_agent_engine-2.1.0/tests/plugins/test_memory_support.py +218 -0
- {axc_agent_engine-0.2.0/tests → axc_agent_engine-2.1.0/tests/plugins}/test_output_format_service.py +67 -0
- {axc_agent_engine-0.2.0/tests → axc_agent_engine-2.1.0/tests/plugins}/test_plugin_registry.py +31 -4
- {axc_agent_engine-0.2.0/tests → axc_agent_engine-2.1.0/tests/plugins}/test_plugins.py +13 -33
- {axc_agent_engine-0.2.0/tests → axc_agent_engine-2.1.0/tests/plugins}/test_tracing_plugin.py +124 -0
- axc_agent_engine-2.1.0/tests/runtime/__init__.py +0 -0
- {axc_agent_engine-0.2.0/tests → axc_agent_engine-2.1.0/tests/runtime}/test_checkpoint.py +0 -24
- {axc_agent_engine-0.2.0/tests → axc_agent_engine-2.1.0/tests/runtime}/test_concurrency.py +1 -1
- {axc_agent_engine-0.2.0/tests → axc_agent_engine-2.1.0/tests/runtime}/test_sandbox.py +31 -1
- axc_agent_engine-2.1.0/tests/sidecar/__init__.py +0 -0
- axc_agent_engine-2.1.0/tests/sidecar/test_eval_framework.py +179 -0
- axc_agent_engine-2.1.0/tests/sidecar/test_multi_agent_modes.py +101 -0
- {axc_agent_engine-0.2.0/tests → axc_agent_engine-2.1.0/tests/sidecar}/test_orchestration_service.py +22 -0
- {axc_agent_engine-0.2.0/tests → axc_agent_engine-2.1.0/tests/sidecar}/test_simulation_adapters.py +1 -1
- axc_agent_engine-2.1.0/tests/storage/__init__.py +0 -0
- axc_agent_engine-2.1.0/tests/tools/__init__.py +0 -0
- {axc_agent_engine-0.2.0/tests → axc_agent_engine-2.1.0/tests/tools}/test_orchestrator_tool_context.py +18 -0
- {axc_agent_engine-0.2.0/tests → axc_agent_engine-2.1.0/tests/tools}/test_tool_context.py +8 -2
- {axc_agent_engine-0.2.0/tests → axc_agent_engine-2.1.0/tests/tools}/test_tool_output.py +4 -4
- {axc_agent_engine-0.2.0/tests → axc_agent_engine-2.1.0/tests/tools}/test_tool_output_integration.py +3 -3
- {axc_agent_engine-0.2.0/tests → axc_agent_engine-2.1.0/tests/tools}/test_tooloutput_protocol.py +10 -10
- axc_agent_engine-2.1.0/tests/utils/__init__.py +0 -0
- axc_agent_engine-2.1.0/tests/workflow/__init__.py +0 -0
- axc_agent_engine-2.1.0/tests/workflow/test_workflow_runtime.py +255 -0
- axc_agent_engine-0.2.0/.axc/logs/exec_1779680491396_b741cf27.log +0 -12
- axc_agent_engine-0.2.0/.axc/logs/exec_1779680491423_63760928.log +0 -15
- axc_agent_engine-0.2.0/.axc/logs/exec_1779680491444_ec22bb49.log +0 -12
- axc_agent_engine-0.2.0/TODO.md +0 -1166
- axc_agent_engine-0.2.0/axc_agent_engine/core/__init__.py +0 -4
- axc_agent_engine-0.2.0/axc_agent_engine/core/constants.py +0 -27
- axc_agent_engine-0.2.0/axc_agent_engine/core/executor.py +0 -370
- axc_agent_engine-0.2.0/axc_agent_engine/observability/__init__.py +0 -1
- axc_agent_engine-0.2.0/axc_agent_engine/planning/checkpointing.py +0 -196
- axc_agent_engine-0.2.0/axc_agent_engine/plugins/builtin/builtin_tools/__init__.py +0 -1
- axc_agent_engine-0.2.0/axc_agent_engine/plugins/builtin/collaboration/__init__.py +0 -1
- axc_agent_engine-0.2.0/axc_agent_engine/plugins/builtin/compress/__init__.py +0 -1
- axc_agent_engine-0.2.0/axc_agent_engine/plugins/builtin/compress/context/__init__.py +0 -2
- axc_agent_engine-0.2.0/axc_agent_engine/plugins/builtin/cost_statistics/__init__.py +0 -1
- axc_agent_engine-0.2.0/axc_agent_engine/plugins/builtin/graph/__init__.py +0 -1
- axc_agent_engine-0.2.0/axc_agent_engine/plugins/builtin/hooks/__init__.py +0 -1
- axc_agent_engine-0.2.0/axc_agent_engine/plugins/builtin/human_in_the_loop/__init__.py +0 -1
- axc_agent_engine-0.2.0/axc_agent_engine/plugins/builtin/knowledge/__init__.py +0 -1
- axc_agent_engine-0.2.0/axc_agent_engine/plugins/builtin/mcp/__init__.py +0 -1
- axc_agent_engine-0.2.0/axc_agent_engine/plugins/builtin/memory/__init__.py +0 -1
- axc_agent_engine-0.2.0/axc_agent_engine/plugins/builtin/output_format/__init__.py +0 -1
- axc_agent_engine-0.2.0/axc_agent_engine/plugins/builtin/post_process/__init__.py +0 -1
- axc_agent_engine-0.2.0/axc_agent_engine/plugins/builtin/reflexion/__init__.py +0 -1
- axc_agent_engine-0.2.0/axc_agent_engine/plugins/builtin/repetition_guard/__init__.py +0 -1
- axc_agent_engine-0.2.0/axc_agent_engine/plugins/builtin/risk_guard/__init__.py +0 -1
- axc_agent_engine-0.2.0/axc_agent_engine/plugins/builtin/safety/__init__.py +0 -1
- axc_agent_engine-0.2.0/axc_agent_engine/plugins/builtin/skill/__init__.py +0 -1
- axc_agent_engine-0.2.0/axc_agent_engine/plugins/builtin/swarm/__init__.py +0 -1
- axc_agent_engine-0.2.0/axc_agent_engine/plugins/builtin/tracing/__init__.py +0 -1
- axc_agent_engine-0.2.0/axc_agent_engine/plugins/registry.py +0 -87
- axc_agent_engine-0.2.0/axc_agent_engine/runtime/__init__.py +0 -1
- axc_agent_engine-0.2.0/axc_agent_engine/runtime/recovery.py +0 -98
- axc_agent_engine-0.2.0/axc_agent_engine/sidecar/multi_agent/scheduler/__init__.py +0 -19
- axc_agent_engine-0.2.0/axc_agent_engine/tools/__init__.py +0 -1
- axc_agent_engine-0.2.0/axc_agent_engine/tools/orchestrator.py +0 -334
- axc_agent_engine-0.2.0/axc_agent_engine/utils/__init__.py +0 -1
- axc_agent_engine-0.2.0/tests/test_eval_framework.py +0 -90
- axc_agent_engine-0.2.0/tests/test_knowledge_core.py +0 -142
- axc_agent_engine-0.2.0/tests/test_multi_agent_modes.py +0 -52
- axc_agent_engine-0.2.0/tests/test_por_checkpointing.py +0 -50
- axc_agent_engine-0.2.0/tests/test_provider.py +0 -174
- axc_agent_engine-0.2.0/try_engine.py +0 -268
- {axc_agent_engine-0.2.0 → axc_agent_engine-2.1.0}/CHANGELOG.md +0 -0
- {axc_agent_engine-0.2.0 → axc_agent_engine-2.1.0}/CODE_OF_CONDUCT.md +0 -0
- {axc_agent_engine-0.2.0 → axc_agent_engine-2.1.0}/CONTRIBUTING.md +0 -0
- {axc_agent_engine-0.2.0 → axc_agent_engine-2.1.0}/ENGINE_BOUNDARY_DESIGN.md +0 -0
- {axc_agent_engine-0.2.0 → axc_agent_engine-2.1.0}/LICENSE +0 -0
- {axc_agent_engine-0.2.0 → axc_agent_engine-2.1.0}/Makefile +0 -0
- {axc_agent_engine-0.2.0 → axc_agent_engine-2.1.0}/NOTICE +0 -0
- {axc_agent_engine-0.2.0/docs → axc_agent_engine-2.1.0}/RAVEN_EXECUTION_KERNEL_REPLACEMENT.md +0 -0
- {axc_agent_engine-0.2.0 → axc_agent_engine-2.1.0}/SECURITY.md +0 -0
- {axc_agent_engine-0.2.0 → axc_agent_engine-2.1.0}/axc_agent_engine/api/__init__.py +0 -0
- {axc_agent_engine-0.2.0 → axc_agent_engine-2.1.0}/axc_agent_engine/api/routes/__init__.py +0 -0
- {axc_agent_engine-0.2.0 → axc_agent_engine-2.1.0}/axc_agent_engine/llm/__init__.py +0 -0
- {axc_agent_engine-0.2.0 → axc_agent_engine-2.1.0}/axc_agent_engine/llm/config.py +0 -0
- {axc_agent_engine-0.2.0 → axc_agent_engine-2.1.0}/axc_agent_engine/planning/runtime.py +0 -0
- {axc_agent_engine-0.2.0 → axc_agent_engine-2.1.0}/axc_agent_engine/plugins/builtin/compress/prompts.py +0 -0
- {axc_agent_engine-0.2.0 → axc_agent_engine-2.1.0}/axc_agent_engine/plugins/builtin/memory/prompts.py +0 -0
- {axc_agent_engine-0.2.0 → axc_agent_engine-2.1.0}/axc_agent_engine/plugins/builtin/reflexion/prompts.py +0 -0
- {axc_agent_engine-0.2.0 → axc_agent_engine-2.1.0}/axc_agent_engine/py.typed +0 -0
- {axc_agent_engine-0.2.0 → axc_agent_engine-2.1.0}/axc_agent_engine/sidecar/README.md +0 -0
- {axc_agent_engine-0.2.0 → axc_agent_engine-2.1.0}/axc_agent_engine/sidecar/multi_agent/__init__.py +0 -0
- {axc_agent_engine-0.2.0 → axc_agent_engine-2.1.0}/axc_agent_engine/sidecar/multi_agent/stop_condition/causal_chain.py +0 -0
- {axc_agent_engine-0.2.0 → axc_agent_engine-2.1.0}/axc_agent_engine/sidecar/multi_agent/stop_condition/consensus.py +0 -0
- {axc_agent_engine-0.2.0 → axc_agent_engine-2.1.0}/axc_agent_engine/sidecar/multi_agent/stop_condition/goal_reached.py +0 -0
- {axc_agent_engine-0.2.0 → axc_agent_engine-2.1.0}/docs/API.md +0 -0
- {axc_agent_engine-0.2.0 → axc_agent_engine-2.1.0}/docs/ARCHITECTURE.md +0 -0
- {axc_agent_engine-0.2.0 → axc_agent_engine-2.1.0}/docs/OPEN_SOURCE_REPORT.md +0 -0
- {axc_agent_engine-0.2.0 → axc_agent_engine-2.1.0}/docs/RELEASE_CHECKLIST.md +0 -0
- {axc_agent_engine-0.2.0 → axc_agent_engine-2.1.0}/docs/SECURITY_MODEL.md +0 -0
- {axc_agent_engine-0.2.0 → axc_agent_engine-2.1.0}/examples/01_basic_chat/README.md +0 -0
- {axc_agent_engine-0.2.0 → axc_agent_engine-2.1.0}/examples/01_basic_chat/agent.yaml +0 -0
- {axc_agent_engine-0.2.0 → axc_agent_engine-2.1.0}/examples/01_basic_chat/run.py +0 -0
- {axc_agent_engine-0.2.0 → axc_agent_engine-2.1.0}/examples/02_tool_agent/agent.yaml +0 -0
- {axc_agent_engine-0.2.0 → axc_agent_engine-2.1.0}/examples/02_tool_agent/run.py +0 -0
- {axc_agent_engine-0.2.0 → axc_agent_engine-2.1.0}/examples/03_rag_agent/agent.yaml +0 -0
- {axc_agent_engine-0.2.0 → axc_agent_engine-2.1.0}/examples/03_rag_agent/docs/faq.md +0 -0
- {axc_agent_engine-0.2.0 → axc_agent_engine-2.1.0}/examples/03_rag_agent/run.py +0 -0
- {axc_agent_engine-0.2.0 → axc_agent_engine-2.1.0}/examples/04_streaming/agent.yaml +0 -0
- {axc_agent_engine-0.2.0 → axc_agent_engine-2.1.0}/examples/04_streaming/run.py +0 -0
- {axc_agent_engine-0.2.0 → axc_agent_engine-2.1.0}/examples/05_custom_plugin/agent.yaml +0 -0
- {axc_agent_engine-0.2.0 → axc_agent_engine-2.1.0}/examples/05_custom_plugin/my_plugin.py +0 -0
- {axc_agent_engine-0.2.0 → axc_agent_engine-2.1.0}/examples/05_custom_plugin/run.py +0 -0
- {axc_agent_engine-0.2.0 → axc_agent_engine-2.1.0}/examples/06_multi_agent/agent_dev.yaml +0 -0
- {axc_agent_engine-0.2.0 → axc_agent_engine-2.1.0}/examples/06_multi_agent/agent_pm.yaml +0 -0
- {axc_agent_engine-0.2.0 → axc_agent_engine-2.1.0}/examples/06_multi_agent/agent_supervisor.yaml +0 -0
- {axc_agent_engine-0.2.0 → axc_agent_engine-2.1.0}/examples/07_simulation/agent_blue.yaml +0 -0
- {axc_agent_engine-0.2.0 → axc_agent_engine-2.1.0}/examples/07_simulation/agent_con.yaml +0 -0
- {axc_agent_engine-0.2.0 → axc_agent_engine-2.1.0}/examples/07_simulation/agent_pro.yaml +0 -0
- {axc_agent_engine-0.2.0 → axc_agent_engine-2.1.0}/examples/07_simulation/agent_red.yaml +0 -0
- {axc_agent_engine-0.2.0 → axc_agent_engine-2.1.0}/examples/README.md +0 -0
- {axc_agent_engine-0.2.0 → axc_agent_engine-2.1.0}/tests/__init__.py +0 -0
- {axc_agent_engine-0.2.0/tests → axc_agent_engine-2.1.0/tests/boundaries}/test_engine_boundary_matrix.py +0 -0
- {axc_agent_engine-0.2.0/tests → axc_agent_engine-2.1.0/tests/boundaries}/test_pyproject_deps.py +0 -0
- {axc_agent_engine-0.2.0 → axc_agent_engine-2.1.0}/tests/conftest.py +0 -0
- {axc_agent_engine-0.2.0/tests → axc_agent_engine-2.1.0/tests/core}/test_context.py +0 -0
- {axc_agent_engine-0.2.0/tests → axc_agent_engine-2.1.0/tests/core}/test_context_layers.py +0 -0
- {axc_agent_engine-0.2.0/tests → axc_agent_engine-2.1.0/tests/core}/test_dispatcher_architecture.py +0 -0
- {axc_agent_engine-0.2.0/tests → axc_agent_engine-2.1.0/tests/core}/test_errors.py +0 -0
- {axc_agent_engine-0.2.0/tests → axc_agent_engine-2.1.0/tests/core}/test_event_categories.py +0 -0
- {axc_agent_engine-0.2.0/tests → axc_agent_engine-2.1.0/tests/core}/test_events.py +0 -0
- {axc_agent_engine-0.2.0/tests → axc_agent_engine-2.1.0/tests/core}/test_execution_config_workspace.py +0 -0
- {axc_agent_engine-0.2.0/tests → axc_agent_engine-2.1.0/tests/core}/test_realtime_stream.py +0 -0
- {axc_agent_engine-0.2.0/tests → axc_agent_engine-2.1.0/tests/core}/test_schema.py +0 -0
- {axc_agent_engine-0.2.0/tests → axc_agent_engine-2.1.0/tests/engine}/test_engine.py +0 -0
- {axc_agent_engine-0.2.0/tests → axc_agent_engine-2.1.0/tests/engine}/test_engine_dispatcher_lifecycle.py +0 -0
- {axc_agent_engine-0.2.0/tests → axc_agent_engine-2.1.0/tests/llm}/test_llm_caller_retry.py +0 -0
- {axc_agent_engine-0.2.0/tests → axc_agent_engine-2.1.0/tests/observability}/test_audit.py +0 -0
- {axc_agent_engine-0.2.0/tests → axc_agent_engine-2.1.0/tests/plugins}/test_collaboration_plugin.py +0 -0
- {axc_agent_engine-0.2.0/tests → axc_agent_engine-2.1.0/tests/plugins}/test_compress_tooloutput.py +0 -0
- {axc_agent_engine-0.2.0/tests → axc_agent_engine-2.1.0/tests/plugins}/test_knowledge_plugin.py +0 -0
- {axc_agent_engine-0.2.0/tests → axc_agent_engine-2.1.0/tests/plugins}/test_mcp_plugin.py +0 -0
- {axc_agent_engine-0.2.0/tests → axc_agent_engine-2.1.0/tests/plugins}/test_memory_core.py +0 -0
- {axc_agent_engine-0.2.0/tests → axc_agent_engine-2.1.0/tests/plugins}/test_memory_plugin.py +0 -0
- {axc_agent_engine-0.2.0/tests → axc_agent_engine-2.1.0/tests/plugins}/test_plugin_context_workspace.py +0 -0
- {axc_agent_engine-0.2.0/tests → axc_agent_engine-2.1.0/tests/plugins}/test_plugin_dependencies.py +0 -0
- {axc_agent_engine-0.2.0/tests → axc_agent_engine-2.1.0/tests/plugins}/test_plugin_isolation.py +0 -0
- {axc_agent_engine-0.2.0/tests → axc_agent_engine-2.1.0/tests/plugins}/test_plugin_post_tool_call.py +0 -0
- {axc_agent_engine-0.2.0/tests → axc_agent_engine-2.1.0/tests/plugins}/test_skill_plugin.py +0 -0
- {axc_agent_engine-0.2.0/tests → axc_agent_engine-2.1.0/tests/plugins}/test_swarm_plugin.py +0 -0
- {axc_agent_engine-0.2.0/tests → axc_agent_engine-2.1.0/tests/plugins}/test_vector_store_capacity.py +0 -0
- {axc_agent_engine-0.2.0/tests → axc_agent_engine-2.1.0/tests/runtime}/test_capability_gate.py +0 -0
- {axc_agent_engine-0.2.0/tests → axc_agent_engine-2.1.0/tests/runtime}/test_policy.py +0 -0
- {axc_agent_engine-0.2.0/tests → axc_agent_engine-2.1.0/tests/runtime}/test_security_risk.py +0 -0
- {axc_agent_engine-0.2.0/tests → axc_agent_engine-2.1.0/tests/sidecar}/test_sidecar_agent_ops.py +0 -0
- {axc_agent_engine-0.2.0/tests → axc_agent_engine-2.1.0/tests/sidecar}/test_simulation_kernel.py +0 -0
- {axc_agent_engine-0.2.0/tests → axc_agent_engine-2.1.0/tests/storage}/test_storage.py +0 -0
- {axc_agent_engine-0.2.0/tests → axc_agent_engine-2.1.0/tests/tools}/test_decorator_tooloutput.py +0 -0
- {axc_agent_engine-0.2.0/tests → axc_agent_engine-2.1.0/tests/tools}/test_tool_orchestrator_timeout.py +0 -0
- {axc_agent_engine-0.2.0/tests → axc_agent_engine-2.1.0/tests/tools}/test_tool_validation.py +0 -0
- {axc_agent_engine-0.2.0/tests → axc_agent_engine-2.1.0/tests/tools}/test_tools.py +0 -0
- {axc_agent_engine-0.2.0/tests → axc_agent_engine-2.1.0/tests/utils}/test_math_utils.py +0 -0
|
@@ -0,0 +1,377 @@
|
|
|
1
|
+
# AxcAgentEngine Core Refactor Plan
|
|
2
|
+
|
|
3
|
+
本文档只描述 `AxcAgentEngine` 内部核心重构,不包含 RavenSystem 适配层、DB、router、WebSocket 协议或业务系统迁移。
|
|
4
|
+
|
|
5
|
+
## 核心目标
|
|
6
|
+
|
|
7
|
+
```text
|
|
8
|
+
ReAct:继续保留自研
|
|
9
|
+
POR:使用 pydantic-graph
|
|
10
|
+
Workflow / 暂停恢复:使用 Apache Burr
|
|
11
|
+
不要引入 LlamaIndex / LangGraph / CrewAI 这种大框架进核心
|
|
12
|
+
```
|
|
13
|
+
|
|
14
|
+
目标不是堆功能,而是降低长期维护负债:
|
|
15
|
+
|
|
16
|
+
- ReAct 是引擎最核心的可控循环,必须保持轻量、可读、可测试。
|
|
17
|
+
- POR 是有状态图执行问题,交给小型、显式、类型友好的 `pydantic-graph`。
|
|
18
|
+
- 暂停恢复和长 workflow 是 durable execution 问题,交给 Apache Burr。
|
|
19
|
+
- 任何依赖都必须服务于明确的执行模型,不允许为了集成而引入大框架。
|
|
20
|
+
|
|
21
|
+
## 非目标
|
|
22
|
+
|
|
23
|
+
- 不改 RavenSystem。
|
|
24
|
+
- 不引入 LangGraph、LlamaIndex、CrewAI。
|
|
25
|
+
- 不把业务协议、数据库模型、用户鉴权、私有工具发现写进引擎 core。
|
|
26
|
+
- 不重写 LLMProvider、ToolDefinition、ToolOutput 的公共契约,除非能显著减少核心复杂度。
|
|
27
|
+
- 不让 POR 或 Burr 反向污染 ReAct 主循环。
|
|
28
|
+
|
|
29
|
+
## 当前问题
|
|
30
|
+
|
|
31
|
+
当前仓库已经有:
|
|
32
|
+
|
|
33
|
+
- 自研 ReAct:`axc_agent_engine/core/executor.py`、`react_loop.py`
|
|
34
|
+
- 自研 POR:`axc_agent_engine/planning/*`
|
|
35
|
+
- 自研 checkpoint/resume:`runtime/checkpoint.py`、`planning/checkpointing.py`、`Agent.resume_stream`
|
|
36
|
+
|
|
37
|
+
问题在于三类职责仍然耦合:
|
|
38
|
+
|
|
39
|
+
- `Agent` 入口同时处理输入、session、executor 创建、resume。
|
|
40
|
+
- `Executor` 同时处理 ReAct、POR 路由、checkpoint 生命周期。
|
|
41
|
+
- `planning` 目录承担计划建模、执行调度、观察、重规划、checkpoint 多种职责。
|
|
42
|
+
|
|
43
|
+
重构方向是把三件事拆清楚:
|
|
44
|
+
|
|
45
|
+
```text
|
|
46
|
+
Agent API
|
|
47
|
+
-> ReActKernel # 自研,短循环,工具调用
|
|
48
|
+
-> PORGraphRuntime # pydantic-graph,计划图执行
|
|
49
|
+
-> WorkflowRuntime # Burr,durable run / pause / resume
|
|
50
|
+
```
|
|
51
|
+
|
|
52
|
+
## 架构边界
|
|
53
|
+
|
|
54
|
+
### ReAct Kernel
|
|
55
|
+
|
|
56
|
+
保留自研实现,边界收窄为:
|
|
57
|
+
|
|
58
|
+
```text
|
|
59
|
+
messages + tools + execution context
|
|
60
|
+
-> LLM call
|
|
61
|
+
-> tool call flow
|
|
62
|
+
-> assistant final answer or next round
|
|
63
|
+
```
|
|
64
|
+
|
|
65
|
+
允许依赖:
|
|
66
|
+
|
|
67
|
+
- `LLMCaller`
|
|
68
|
+
- `MessageStore`
|
|
69
|
+
- `ToolRegistry`
|
|
70
|
+
- `ToolExecutionPipeline`
|
|
71
|
+
- `PluginManager`
|
|
72
|
+
- `ExecutionContext`
|
|
73
|
+
|
|
74
|
+
禁止依赖:
|
|
75
|
+
|
|
76
|
+
- `pydantic-graph`
|
|
77
|
+
- `burr`
|
|
78
|
+
- Raven 业务代码
|
|
79
|
+
- LangGraph / LlamaIndex / CrewAI
|
|
80
|
+
|
|
81
|
+
目标文件形态:
|
|
82
|
+
|
|
83
|
+
```text
|
|
84
|
+
axc_agent_engine/core/react_kernel.py
|
|
85
|
+
axc_agent_engine/core/react_turn.py
|
|
86
|
+
axc_agent_engine/core/executor.py # 只做 orchestration boundary
|
|
87
|
+
```
|
|
88
|
+
|
|
89
|
+
### POR Graph Runtime
|
|
90
|
+
|
|
91
|
+
POR 使用 `pydantic-graph` 表达计划图和状态流转。
|
|
92
|
+
|
|
93
|
+
边界:
|
|
94
|
+
|
|
95
|
+
```text
|
|
96
|
+
PlanRequest
|
|
97
|
+
-> PlanGraph
|
|
98
|
+
-> StepNode / ObserveNode / ReplanNode
|
|
99
|
+
-> PlanResult
|
|
100
|
+
```
|
|
101
|
+
|
|
102
|
+
`pydantic-graph` 只允许出现在:
|
|
103
|
+
|
|
104
|
+
```text
|
|
105
|
+
axc_agent_engine/planning/graph_runtime.py
|
|
106
|
+
axc_agent_engine/planning/graph_nodes.py
|
|
107
|
+
axc_agent_engine/planning/graph_state.py
|
|
108
|
+
```
|
|
109
|
+
|
|
110
|
+
不允许出现在:
|
|
111
|
+
|
|
112
|
+
```text
|
|
113
|
+
axc_agent_engine/core/*
|
|
114
|
+
axc_agent_engine/tools/*
|
|
115
|
+
axc_agent_engine/llm/*
|
|
116
|
+
```
|
|
117
|
+
|
|
118
|
+
POR 节点内执行单步任务时调用自研 ReAct kernel,不复制 ReAct 逻辑。
|
|
119
|
+
|
|
120
|
+
```text
|
|
121
|
+
StepNode
|
|
122
|
+
-> ReActKernel.run_step(...)
|
|
123
|
+
```
|
|
124
|
+
|
|
125
|
+
### Workflow / Pause / Resume Runtime
|
|
126
|
+
|
|
127
|
+
暂停恢复使用 Apache Burr,定位为 durable workflow runtime,不是 Agent 框架。
|
|
128
|
+
|
|
129
|
+
边界:
|
|
130
|
+
|
|
131
|
+
```text
|
|
132
|
+
WorkflowRuntime
|
|
133
|
+
start(run_request) -> run_id
|
|
134
|
+
pause(run_id, reason)
|
|
135
|
+
resume(run_id, input)
|
|
136
|
+
status(run_id)
|
|
137
|
+
```
|
|
138
|
+
|
|
139
|
+
Burr 只允许出现在:
|
|
140
|
+
|
|
141
|
+
```text
|
|
142
|
+
axc_agent_engine/workflow/burr_runtime.py
|
|
143
|
+
axc_agent_engine/workflow/state.py
|
|
144
|
+
axc_agent_engine/workflow/adapters.py
|
|
145
|
+
```
|
|
146
|
+
|
|
147
|
+
不允许直接出现在:
|
|
148
|
+
|
|
149
|
+
```text
|
|
150
|
+
axc_agent_engine/core/*
|
|
151
|
+
axc_agent_engine/tools/*
|
|
152
|
+
axc_agent_engine/planning/graph_nodes.py
|
|
153
|
+
```
|
|
154
|
+
|
|
155
|
+
`Agent.resume_stream(...)` 最终应委托给 `WorkflowRuntime`,不直接拼 checkpoint 状态。
|
|
156
|
+
|
|
157
|
+
## 目录调整
|
|
158
|
+
|
|
159
|
+
新增:
|
|
160
|
+
|
|
161
|
+
```text
|
|
162
|
+
axc_agent_engine/workflow/
|
|
163
|
+
__init__.py
|
|
164
|
+
protocols.py
|
|
165
|
+
state.py
|
|
166
|
+
burr_runtime.py
|
|
167
|
+
memory_runtime.py
|
|
168
|
+
|
|
169
|
+
axc_agent_engine/planning/
|
|
170
|
+
graph_state.py
|
|
171
|
+
graph_nodes.py
|
|
172
|
+
graph_runtime.py
|
|
173
|
+
```
|
|
174
|
+
|
|
175
|
+
保留但收窄:
|
|
176
|
+
|
|
177
|
+
```text
|
|
178
|
+
axc_agent_engine/core/react_loop.py
|
|
179
|
+
axc_agent_engine/core/executor.py
|
|
180
|
+
axc_agent_engine/planning/planner.py
|
|
181
|
+
axc_agent_engine/planning/observer.py
|
|
182
|
+
axc_agent_engine/planning/replanner.py
|
|
183
|
+
```
|
|
184
|
+
|
|
185
|
+
迁移完成后评估删除或降级:
|
|
186
|
+
|
|
187
|
+
```text
|
|
188
|
+
axc_agent_engine/planning/por_runner.py
|
|
189
|
+
axc_agent_engine/planning/checkpointing.py
|
|
190
|
+
axc_agent_engine/runtime/recovery.py
|
|
191
|
+
```
|
|
192
|
+
|
|
193
|
+
## 依赖策略
|
|
194
|
+
|
|
195
|
+
`pyproject.toml` 调整:
|
|
196
|
+
|
|
197
|
+
```toml
|
|
198
|
+
dependencies = [
|
|
199
|
+
"pydantic>=2.0,<3.0",
|
|
200
|
+
"httpx>=0.27.0,<0.29",
|
|
201
|
+
"pyyaml>=6.0,<7.0",
|
|
202
|
+
"pydantic-graph>=...",
|
|
203
|
+
]
|
|
204
|
+
|
|
205
|
+
[project.optional-dependencies]
|
|
206
|
+
workflow = [
|
|
207
|
+
"burr>=...",
|
|
208
|
+
]
|
|
209
|
+
```
|
|
210
|
+
|
|
211
|
+
原则:
|
|
212
|
+
|
|
213
|
+
- `pydantic-graph` 是 POR 核心依赖,可以进主依赖。
|
|
214
|
+
- `burr` 先放 optional dependency,避免所有轻量用户被迫安装 durable workflow 栈。
|
|
215
|
+
- 禁止 `langgraph`、`llama-index`、`crewai` 出现在主依赖、optional 依赖和 core imports。
|
|
216
|
+
|
|
217
|
+
版本号实施前必须查询并固定到合理上限。
|
|
218
|
+
|
|
219
|
+
## 执行阶段
|
|
220
|
+
|
|
221
|
+
### 阶段 1:加架构护栏
|
|
222
|
+
|
|
223
|
+
新增测试:
|
|
224
|
+
|
|
225
|
+
```text
|
|
226
|
+
tests/test_core_dependency_boundaries.py
|
|
227
|
+
```
|
|
228
|
+
|
|
229
|
+
覆盖:
|
|
230
|
+
|
|
231
|
+
- `langgraph` / `llama-index` / `crewai` 不在任何依赖中。
|
|
232
|
+
- `pydantic_graph` 不被 `core/*`、`tools/*` import。
|
|
233
|
+
- `burr` 不被 `core/*`、`tools/*`、`planning/*` 直接 import。
|
|
234
|
+
- `react_loop` 不依赖 POR graph runtime。
|
|
235
|
+
|
|
236
|
+
验收:
|
|
237
|
+
|
|
238
|
+
```bash
|
|
239
|
+
python3 -m pytest tests/test_core_dependency_boundaries.py
|
|
240
|
+
```
|
|
241
|
+
|
|
242
|
+
### 阶段 2:收窄自研 ReAct
|
|
243
|
+
|
|
244
|
+
目标:
|
|
245
|
+
|
|
246
|
+
- 从 `Executor` 中抽出 `ReActKernel`。
|
|
247
|
+
- `Executor` 只负责选择 `react_only`、`por_first`、`auto`,不直接实现每轮逻辑。
|
|
248
|
+
- 工具执行仍使用现有 `ToolExecutionPipeline`。
|
|
249
|
+
|
|
250
|
+
验收:
|
|
251
|
+
|
|
252
|
+
- 现有 ReAct 工具调用测试全部通过。
|
|
253
|
+
- `core/react_kernel.py` 不 import `planning`。
|
|
254
|
+
- `core/executor.py` 行数下降。
|
|
255
|
+
|
|
256
|
+
### 阶段 3:引入 pydantic-graph POR
|
|
257
|
+
|
|
258
|
+
目标:
|
|
259
|
+
|
|
260
|
+
- 用 `pydantic-graph` 表达 plan -> step -> observe -> replan。
|
|
261
|
+
- planner/observer/replanner 的业务逻辑由 graph node 服务调用。
|
|
262
|
+
- `PORRunner` 作为 POR 执行入口,内部委托 `PORGraphRuntime`。
|
|
263
|
+
|
|
264
|
+
事件保持:
|
|
265
|
+
|
|
266
|
+
```text
|
|
267
|
+
plan_created
|
|
268
|
+
step_start
|
|
269
|
+
step_completed
|
|
270
|
+
error
|
|
271
|
+
done
|
|
272
|
+
```
|
|
273
|
+
|
|
274
|
+
验收:
|
|
275
|
+
|
|
276
|
+
- `tests/test_planning.py`
|
|
277
|
+
- `tests/test_por_checkpointing.py`
|
|
278
|
+
- 新增 `tests/test_por_graph_runtime.py`
|
|
279
|
+
|
|
280
|
+
### 阶段 4:引入 WorkflowRuntime Protocol
|
|
281
|
+
|
|
282
|
+
目标:
|
|
283
|
+
|
|
284
|
+
```python
|
|
285
|
+
class WorkflowRuntime(Protocol):
|
|
286
|
+
async def start(self, request: WorkflowRequest) -> AsyncIterator[Event]: ...
|
|
287
|
+
async def resume(self, run_id: str, message: str = "") -> AsyncIterator[Event]: ...
|
|
288
|
+
async def pause(self, run_id: str, reason: str = "") -> None: ...
|
|
289
|
+
```
|
|
290
|
+
|
|
291
|
+
先实现:
|
|
292
|
+
|
|
293
|
+
- `MemoryWorkflowRuntime`:包装现有 checkpoint store,保证现有测试不大面积破坏。
|
|
294
|
+
- `BurrWorkflowRuntime`:使用 Apache Burr 承载 durable 状态机。
|
|
295
|
+
|
|
296
|
+
验收:
|
|
297
|
+
|
|
298
|
+
- `Agent.resume_stream` 不直接读 checkpoint store。
|
|
299
|
+
- checkpoint store 只作为 workflow runtime 的持久层。
|
|
300
|
+
- 原 resume 测试迁移到 workflow runtime 测试。
|
|
301
|
+
|
|
302
|
+
### 阶段 5:Burr 接管暂停恢复
|
|
303
|
+
|
|
304
|
+
目标:
|
|
305
|
+
|
|
306
|
+
- ReAct run、POR run 都注册为 Burr action graph。
|
|
307
|
+
- pause/resume 不直接恢复 `Executor` 内部字段,只消费 `WorkflowRuntime` 提供的 snapshot。
|
|
308
|
+
- 对外保持 `agent.resume_stream(run_id, ...)`。
|
|
309
|
+
|
|
310
|
+
验收:
|
|
311
|
+
|
|
312
|
+
- 中断后可以恢复 ReAct。
|
|
313
|
+
- 中断后可以恢复 POR 当前 step。
|
|
314
|
+
- 恢复后不重复已完成工具调用。
|
|
315
|
+
- `run_id` 稳定。
|
|
316
|
+
|
|
317
|
+
### 阶段 6:删除冗余恢复路径
|
|
318
|
+
|
|
319
|
+
删除或降级:
|
|
320
|
+
|
|
321
|
+
- 删除 `Executor` 的直接 checkpoint 恢复入口。
|
|
322
|
+
- 删除 `Agent.resume_stream` 内部 checkpoint 拼装逻辑。
|
|
323
|
+
- 删除 `planning/checkpointing.py` 中与 Burr 重叠的状态恢复逻辑。
|
|
324
|
+
|
|
325
|
+
当前保留:
|
|
326
|
+
|
|
327
|
+
- `CheckpointStore` protocol,作为 workflow 持久层。
|
|
328
|
+
- `runtime/checkpoint.py` 的通用 checkpoint 数据结构,如 Burr adapter 仍需要。
|
|
329
|
+
|
|
330
|
+
## 测试矩阵
|
|
331
|
+
|
|
332
|
+
必须覆盖:
|
|
333
|
+
|
|
334
|
+
- 纯 ReAct 文本回答。
|
|
335
|
+
- ReAct 工具调用。
|
|
336
|
+
- ReAct 多轮工具调用。
|
|
337
|
+
- POR plan_created / step_start / step_completed。
|
|
338
|
+
- POR step 失败后 replan。
|
|
339
|
+
- POR resume 当前 step。
|
|
340
|
+
- ReAct pause/resume。
|
|
341
|
+
- human approval pause/resume。
|
|
342
|
+
- stream delta 不丢失。
|
|
343
|
+
- checkpoint/run_id 可查询。
|
|
344
|
+
- 禁止大框架依赖。
|
|
345
|
+
|
|
346
|
+
## 代码质量门槛
|
|
347
|
+
|
|
348
|
+
每阶段完成必须满足:
|
|
349
|
+
|
|
350
|
+
```bash
|
|
351
|
+
python3 -m pytest
|
|
352
|
+
```
|
|
353
|
+
|
|
354
|
+
并检查:
|
|
355
|
+
|
|
356
|
+
```bash
|
|
357
|
+
rg "langgraph|llama_index|llama-index|crewai" pyproject.toml axc_agent_engine tests
|
|
358
|
+
rg "pydantic_graph|pydantic-graph" axc_agent_engine/core axc_agent_engine/tools
|
|
359
|
+
rg "burr" axc_agent_engine/core axc_agent_engine/tools axc_agent_engine/planning
|
|
360
|
+
```
|
|
361
|
+
|
|
362
|
+
期望:
|
|
363
|
+
|
|
364
|
+
- 第一条只允许出现在边界测试或文档。
|
|
365
|
+
- 第二条无输出。
|
|
366
|
+
- 第三条无输出。
|
|
367
|
+
|
|
368
|
+
## 完成定义
|
|
369
|
+
|
|
370
|
+
重构完成必须同时满足:
|
|
371
|
+
|
|
372
|
+
- ReAct 自研路径仍可独立运行,不依赖 pydantic-graph 或 Burr。
|
|
373
|
+
- POR 主执行路径由 pydantic-graph 承载。
|
|
374
|
+
- pause/resume 主路径由 WorkflowRuntime 承载,Burr adapter 可用。
|
|
375
|
+
- `Agent` 不直接拼装 checkpoint 恢复细节。
|
|
376
|
+
- `Executor` 不直接实现 POR 状态机。
|
|
377
|
+
- 全量测试通过。
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: axc-agent-engine
|
|
3
|
-
Version:
|
|
3
|
+
Version: 2.1.0
|
|
4
4
|
Summary: Agent execution engine with Plan-Observe-Replan (POR) and plugin architecture
|
|
5
|
-
Project-URL: Homepage, https://github.com/
|
|
6
|
-
Project-URL: Documentation, https://github.com/
|
|
7
|
-
Project-URL: Repository, https://github.com/
|
|
8
|
-
Project-URL: Issues, https://github.com/
|
|
5
|
+
Project-URL: Homepage, https://github.com/axclogo/AxcAgentEngine
|
|
6
|
+
Project-URL: Documentation, https://github.com/axclogo/AxcAgentEngine#readme
|
|
7
|
+
Project-URL: Repository, https://github.com/axclogo/AxcAgentEngine
|
|
8
|
+
Project-URL: Issues, https://github.com/axclogo/AxcAgentEngine/issues
|
|
9
9
|
Author: AxcTeam
|
|
10
10
|
License-Expression: Apache-2.0
|
|
11
11
|
License-File: LICENSE
|
|
@@ -20,9 +20,11 @@ Classifier: Programming Language :: Python :: 3.13
|
|
|
20
20
|
Classifier: Topic :: Scientific/Engineering :: Artificial Intelligence
|
|
21
21
|
Requires-Python: >=3.11
|
|
22
22
|
Requires-Dist: httpx<0.29,>=0.27.0
|
|
23
|
+
Requires-Dist: pydantic-graph<2.0,>=1.102.0
|
|
23
24
|
Requires-Dist: pydantic<3.0,>=2.0
|
|
24
25
|
Requires-Dist: pyyaml<7.0,>=6.0
|
|
25
26
|
Provides-Extra: all
|
|
27
|
+
Requires-Dist: burr<0.41,>=0.40.2; extra == 'all'
|
|
26
28
|
Requires-Dist: faiss-cpu>=1.8.0; extra == 'all'
|
|
27
29
|
Requires-Dist: fastapi>=0.115.0; extra == 'all'
|
|
28
30
|
Requires-Dist: uvicorn>=0.30.0; extra == 'all'
|
|
@@ -42,6 +44,8 @@ Requires-Dist: ruff>=0.5.0; extra == 'dev'
|
|
|
42
44
|
Requires-Dist: twine>=5.0.0; extra == 'dev'
|
|
43
45
|
Provides-Extra: knowledge
|
|
44
46
|
Requires-Dist: faiss-cpu>=1.8.0; extra == 'knowledge'
|
|
47
|
+
Provides-Extra: workflow
|
|
48
|
+
Requires-Dist: burr<0.41,>=0.40.2; extra == 'workflow'
|
|
45
49
|
Description-Content-Type: text/markdown
|
|
46
50
|
|
|
47
51
|
<h1 align="center">AxcAgentEngine</h1>
|
|
@@ -51,7 +55,8 @@ Description-Content-Type: text/markdown
|
|
|
51
55
|
</p>
|
|
52
56
|
|
|
53
57
|
<p align="center">
|
|
54
|
-
<img src="https://img.shields.io/badge/python-3.
|
|
58
|
+
<img src="https://img.shields.io/badge/python-3.11%2B-blue" alt="python"/>
|
|
59
|
+
<img src="https://img.shields.io/pypi/v/axc-agent-engine" alt="pypi"/>
|
|
55
60
|
<img src="https://img.shields.io/badge/license-Apache--2.0-green" alt="license"/>
|
|
56
61
|
<img src="https://img.shields.io/badge/API-OpenAI%20compatible-orange" alt="api"/>
|
|
57
62
|
</p>
|
|
@@ -78,18 +83,17 @@ AxcAgentEngine adds **POR (Plan-Observe-Replan)** on top of ReAct: the agent pro
|
|
|
78
83
|
|
|
79
84
|
```bash
|
|
80
85
|
pip install axc-agent-engine
|
|
81
|
-
```
|
|
82
86
|
|
|
83
|
-
|
|
84
|
-
|
|
87
|
+
# Pin the current 2.0 release
|
|
88
|
+
pip install axc-agent-engine==2.0
|
|
85
89
|
|
|
86
|
-
|
|
87
|
-
pip install "axc-agent-engine[api]"
|
|
88
|
-
pip install "axc-agent-engine[
|
|
89
|
-
pip install "axc-agent-engine[
|
|
90
|
+
# Optional extras
|
|
91
|
+
pip install "axc-agent-engine[api]"
|
|
92
|
+
pip install "axc-agent-engine[workflow]"
|
|
93
|
+
pip install "axc-agent-engine[api,knowledge,workflow]"
|
|
90
94
|
```
|
|
91
95
|
|
|
92
|
-
|
|
96
|
+
Requires Python 3.11 or newer.
|
|
93
97
|
|
|
94
98
|
```python
|
|
95
99
|
from axc_agent_engine import Engine, LLMConfig, PluginRegistry
|
|
@@ -128,7 +132,7 @@ async for event in agent.stream("Build a REST API for user management"):
|
|
|
128
132
|
- **ReAct executor** - standard think / call / observe loop
|
|
129
133
|
- **Plugin system** - built-in spec registry, YAML-driven loading; optional capabilities live in plugins
|
|
130
134
|
- **Tool protocol** - every tool returns `ToolOutput`; read-only runs concurrent, write serial; safe function-name mapping
|
|
131
|
-
- **Durable
|
|
135
|
+
- **Durable workflow** - `WorkflowRuntime` + `CheckpointStore` + Agent resume API; Burr is optional via `axc-agent-engine[workflow]`
|
|
132
136
|
- **OpenAI compatible** - provider protocol + OpenAI-compatible HTTP client and API subset
|
|
133
137
|
- **Memory & knowledge** - four-layer memory (KV, dedup, decay, graph hooks) + semantic chunking + vector/BM25 hybrid retrieval
|
|
134
138
|
- **MCP** - stdio, JSON-RPC HTTP, official SDK transports
|
|
@@ -142,12 +146,12 @@ async for event in agent.stream("Build a REST API for user management"):
|
|
|
142
146
|
| --- | --- |
|
|
143
147
|
| ReAct loop | `Executor` |
|
|
144
148
|
| POR planning | `auto` / `react_only` / `por_first` |
|
|
145
|
-
| Durable
|
|
149
|
+
| Durable workflow | `MemoryWorkflowRuntime` by default; optional `BurrWorkflowRuntime` via `axc-agent-engine[workflow]` |
|
|
146
150
|
| Plugin system | spec registry + YAML-driven loading |
|
|
147
151
|
| LLM provider | provider protocol + OpenAI-compatible HTTP |
|
|
148
152
|
| Parallel tools | read concurrent, write serial |
|
|
149
153
|
| Tool output | enforced `ToolOutput` |
|
|
150
|
-
| Tool name
|
|
154
|
+
| Tool name mapping | provider-side model-safe mapping |
|
|
151
155
|
| Context compression | built-in `compress` plugin |
|
|
152
156
|
| Memory | four layers + KV fallback + dedup + decay + graph hooks |
|
|
153
157
|
| Knowledge | semantic chunking + embeddings + BM25/vector + optional rerank |
|
|
@@ -163,7 +167,7 @@ async for event in agent.stream("Build a REST API for user management"):
|
|
|
163
167
|
| | |
|
|
164
168
|
| --- | --- |
|
|
165
169
|
| [Architecture](docs/ARCHITECTURE.md) | Engine and plugin boundaries |
|
|
166
|
-
| [API
|
|
170
|
+
| [API](docs/API.md) | HTTP API subset notes |
|
|
167
171
|
| [Plugin development](docs/PLUGIN_DEVELOPMENT.md) | Build your own plugin |
|
|
168
172
|
| [Security model](docs/SECURITY_MODEL.md) | Capabilities, risk, workspace |
|
|
169
173
|
| [Examples](examples/README.md) | 7 end-to-end demos |
|
|
@@ -259,7 +263,7 @@ engine.provider_registry.register("fast", fast_provider)
|
|
|
259
263
|
agent = engine.load_agent("./agents/my_agent.yaml", default_llm="fast")
|
|
260
264
|
```
|
|
261
265
|
|
|
262
|
-
Tool-name
|
|
266
|
+
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.
|
|
263
267
|
|
|
264
268
|
## API
|
|
265
269
|
|
|
@@ -369,27 +373,48 @@ flowchart TD
|
|
|
369
373
|
A["User message"] --> B["Agent.chat() / Agent.stream()"]
|
|
370
374
|
B --> C["ExecutionContext"]
|
|
371
375
|
C --> D["Executor"]
|
|
372
|
-
D --> E["
|
|
373
|
-
|
|
374
|
-
F --> G["
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
J
|
|
379
|
-
|
|
380
|
-
|
|
376
|
+
D --> E["ExecutionRunLifecycle + checkpoints"]
|
|
377
|
+
D --> F["ReActKernel"]
|
|
378
|
+
F --> G["MessageStore"]
|
|
379
|
+
F --> H["Plugin hooks"]
|
|
380
|
+
F --> I["LLMCaller"]
|
|
381
|
+
I --> J["TransactionRouter"]
|
|
382
|
+
J -->|final answer| K["done event"]
|
|
383
|
+
J -->|tool calls| L["Tool pipeline"]
|
|
384
|
+
L --> G
|
|
385
|
+
J -->|plan or por_first| M["PORRunner"]
|
|
386
|
+
M --> N["PORGraphRuntime (pydantic_graph)"]
|
|
387
|
+
N --> K
|
|
381
388
|
```
|
|
382
389
|
|
|
383
390
|
## Plugin Development
|
|
384
391
|
|
|
385
392
|
```python
|
|
386
393
|
from axc_agent_engine import BasePlugin, ToolDefinition, ToolOutput
|
|
394
|
+
from axc_agent_engine.plugins.config_schema import config_field, config_schema
|
|
387
395
|
|
|
388
396
|
class MyPlugin(BasePlugin):
|
|
389
397
|
name = "my_plugin"
|
|
390
398
|
display_name = "My Plugin"
|
|
391
399
|
priority = 30
|
|
392
400
|
phase = "core"
|
|
401
|
+
config_schema = config_schema(
|
|
402
|
+
"my_plugin",
|
|
403
|
+
"My Plugin",
|
|
404
|
+
"Configuration for MyPlugin.",
|
|
405
|
+
[
|
|
406
|
+
config_field(
|
|
407
|
+
"api_url",
|
|
408
|
+
"接口地址",
|
|
409
|
+
"string",
|
|
410
|
+
"插件调用的后端接口地址。",
|
|
411
|
+
label_en="API URL",
|
|
412
|
+
default="http://localhost:5000",
|
|
413
|
+
required=True,
|
|
414
|
+
),
|
|
415
|
+
],
|
|
416
|
+
display_name_en="My Plugin",
|
|
417
|
+
)
|
|
393
418
|
|
|
394
419
|
def initialize(self, config: dict, ctx) -> None:
|
|
395
420
|
super().initialize(config, ctx)
|
|
@@ -410,7 +435,9 @@ class MyPlugin(BasePlugin):
|
|
|
410
435
|
return ToolOutput.text(f"Result for {args['query']}")
|
|
411
436
|
```
|
|
412
437
|
|
|
413
|
-
Plugins must inherit `BasePlugin`,
|
|
438
|
+
Plugins must inherit `BasePlugin`, declare `config_schema`, and return tools as `ToolDefinition` instances. `ToolRegistry` does not accept dicts.
|
|
439
|
+
|
|
440
|
+
Hosts can inspect registered plugin schemas through `registry.list_plugin_config_schemas()` or `registry.get_plugin_config_schema("my_plugin")`. The schema is for UI, templates, default display, and optional validation; YAML extra keys are still passed to `initialize(config, ctx)`.
|
|
414
441
|
|
|
415
442
|
```yaml
|
|
416
443
|
plugins:
|
|
@@ -435,11 +462,14 @@ CLI logging flags are global and must be placed before the subcommand.
|
|
|
435
462
|
|
|
436
463
|
## Design Decisions
|
|
437
464
|
|
|
438
|
-
- **Engine core = Executor + LLMCaller.** Reads Agent YAML, calls LLM providers, runs the loop, emits events/results.
|
|
465
|
+
- **Engine core = Executor + ReActKernel + LLMCaller.** Reads Agent YAML, calls LLM providers, runs the ReAct loop, emits events/results.
|
|
466
|
+
- **POR state transitions live in pydantic-graph.** `PORGraphRuntime` owns the plan/step/observe/replan loop; services execute work and persist checkpoints.
|
|
467
|
+
- **Workflow resume is a runtime boundary.** `MemoryWorkflowRuntime` is the default; `BurrWorkflowRuntime` is selected when the optional workflow dependency is installed.
|
|
439
468
|
- **Plugins are the runtime extension boundary.** Knowledge, memory, graph, MCP, output repair, skills belong in plugins.
|
|
440
469
|
- **Orchestration is sidecar.** Multi-agent sessions, simulation, mode adapters are host-driven.
|
|
441
470
|
- **Evaluation is sidecar.** EvalRunner, stores, matchers, reports are host-driven test framework pieces.
|
|
442
471
|
- **Registration is not loading.** The spec registry is the full plugin table; agents load only YAML-enabled plugins.
|
|
472
|
+
- **Plugin schema is mandatory.** A plugin without `config_schema` cannot be registered.
|
|
443
473
|
- **Tools come from plugins.** The engine core embeds no business tools.
|
|
444
474
|
- **Tools must return `ToolOutput`.** Non-`ToolOutput` returns are rejected.
|
|
445
475
|
- **Tool definitions must be `ToolDefinition`.** No dicts.
|
|
@@ -451,4 +481,7 @@ CLI logging flags are global and must be placed before the subcommand.
|
|
|
451
481
|
|
|
452
482
|
```bash
|
|
453
483
|
python3 -m pytest -q
|
|
484
|
+
python3 -m pytest --cov --cov-report=term-missing:skip-covered -q
|
|
454
485
|
```
|
|
486
|
+
|
|
487
|
+
The release gate requires at least 90% total coverage.
|