axc-agent-engine 2.0__tar.gz → 2.2.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-2.0 → axc_agent_engine-2.2.0}/PKG-INFO +82 -49
- {axc_agent_engine-2.0 → axc_agent_engine-2.2.0}/README.md +77 -44
- {axc_agent_engine-2.0 → axc_agent_engine-2.2.0}/README.zh-CN.md +70 -39
- {axc_agent_engine-2.0 → axc_agent_engine-2.2.0}/axc_agent_engine/__init__.py +11 -11
- {axc_agent_engine-2.0 → axc_agent_engine-2.2.0}/axc_agent_engine/agent.py +49 -27
- {axc_agent_engine-2.0 → axc_agent_engine-2.2.0}/axc_agent_engine/api/app.py +6 -4
- {axc_agent_engine-2.0 → axc_agent_engine-2.2.0}/axc_agent_engine/api/deps.py +12 -4
- {axc_agent_engine-2.0 → axc_agent_engine-2.2.0}/axc_agent_engine/api/routes/chat.py +18 -8
- {axc_agent_engine-2.0 → axc_agent_engine-2.2.0}/axc_agent_engine/api/routes/health.py +2 -1
- {axc_agent_engine-2.0 → axc_agent_engine-2.2.0}/axc_agent_engine/cli.py +32 -10
- {axc_agent_engine-2.0 → axc_agent_engine-2.2.0}/axc_agent_engine/core/__init__.py +2 -1
- axc_agent_engine-2.2.0/axc_agent_engine/core/constants.py +28 -0
- {axc_agent_engine-2.0 → axc_agent_engine-2.2.0}/axc_agent_engine/core/context.py +42 -19
- {axc_agent_engine-2.0 → axc_agent_engine-2.2.0}/axc_agent_engine/core/dispatcher.py +25 -9
- {axc_agent_engine-2.0 → axc_agent_engine-2.2.0}/axc_agent_engine/core/errors.py +30 -15
- {axc_agent_engine-2.0 → axc_agent_engine-2.2.0}/axc_agent_engine/core/events.py +36 -13
- {axc_agent_engine-2.0 → axc_agent_engine-2.2.0}/axc_agent_engine/core/execution_run.py +9 -5
- {axc_agent_engine-2.0 → axc_agent_engine-2.2.0}/axc_agent_engine/core/executor.py +17 -9
- {axc_agent_engine-2.0 → axc_agent_engine-2.2.0}/axc_agent_engine/core/llm_caller.py +28 -12
- {axc_agent_engine-2.0 → axc_agent_engine-2.2.0}/axc_agent_engine/core/message_store.py +36 -16
- {axc_agent_engine-2.0 → axc_agent_engine-2.2.0}/axc_agent_engine/core/plugin_manager.py +45 -21
- {axc_agent_engine-2.0 → axc_agent_engine-2.2.0}/axc_agent_engine/core/react_kernel.py +11 -8
- {axc_agent_engine-2.0 → axc_agent_engine-2.2.0}/axc_agent_engine/core/react_loop.py +6 -3
- {axc_agent_engine-2.0 → axc_agent_engine-2.2.0}/axc_agent_engine/core/run_request.py +2 -1
- {axc_agent_engine-2.0 → axc_agent_engine-2.2.0}/axc_agent_engine/core/schema.py +30 -13
- {axc_agent_engine-2.0 → axc_agent_engine-2.2.0}/axc_agent_engine/core/session.py +2 -1
- {axc_agent_engine-2.0 → axc_agent_engine-2.2.0}/axc_agent_engine/core/session_manager.py +23 -9
- {axc_agent_engine-2.0 → axc_agent_engine-2.2.0}/axc_agent_engine/core/stream_aggregator.py +10 -4
- {axc_agent_engine-2.0 → axc_agent_engine-2.2.0}/axc_agent_engine/core/stream_sink.py +2 -1
- {axc_agent_engine-2.0 → axc_agent_engine-2.2.0}/axc_agent_engine/engine.py +136 -103
- {axc_agent_engine-2.0 → axc_agent_engine-2.2.0}/axc_agent_engine/llm/client.py +13 -5
- {axc_agent_engine-2.0 → axc_agent_engine-2.2.0}/axc_agent_engine/llm/provider.py +3 -1
- {axc_agent_engine-2.0 → axc_agent_engine-2.2.0}/axc_agent_engine/llm/rate_limited.py +4 -2
- axc_agent_engine-2.2.0/axc_agent_engine/observability/__init__.py +2 -0
- {axc_agent_engine-2.0 → axc_agent_engine-2.2.0}/axc_agent_engine/observability/audit.py +10 -5
- {axc_agent_engine-2.0 → axc_agent_engine-2.2.0}/axc_agent_engine/observability/logging.py +7 -3
- {axc_agent_engine-2.0 → axc_agent_engine-2.2.0}/axc_agent_engine/planning/__init__.py +2 -1
- {axc_agent_engine-2.0 → axc_agent_engine-2.2.0}/axc_agent_engine/planning/checkpointing.py +9 -5
- {axc_agent_engine-2.0 → axc_agent_engine-2.2.0}/axc_agent_engine/planning/graph_nodes.py +1 -1
- {axc_agent_engine-2.0 → axc_agent_engine-2.2.0}/axc_agent_engine/planning/graph_runtime.py +4 -2
- {axc_agent_engine-2.0 → axc_agent_engine-2.2.0}/axc_agent_engine/planning/graph_state.py +2 -1
- {axc_agent_engine-2.0 → axc_agent_engine-2.2.0}/axc_agent_engine/planning/observer.py +6 -3
- {axc_agent_engine-2.0 → axc_agent_engine-2.2.0}/axc_agent_engine/planning/planner.py +10 -4
- {axc_agent_engine-2.0 → axc_agent_engine-2.2.0}/axc_agent_engine/planning/planning_service.py +9 -3
- {axc_agent_engine-2.0 → axc_agent_engine-2.2.0}/axc_agent_engine/planning/por_runner.py +36 -21
- {axc_agent_engine-2.0 → axc_agent_engine-2.2.0}/axc_agent_engine/planning/prompts.py +2 -1
- {axc_agent_engine-2.0 → axc_agent_engine-2.2.0}/axc_agent_engine/planning/replanner.py +4 -2
- {axc_agent_engine-2.0 → axc_agent_engine-2.2.0}/axc_agent_engine/planning/router.py +10 -4
- {axc_agent_engine-2.0 → axc_agent_engine-2.2.0}/axc_agent_engine/planning/scheduler.py +8 -4
- {axc_agent_engine-2.0 → axc_agent_engine-2.2.0}/axc_agent_engine/planning/step_executor.py +3 -1
- {axc_agent_engine-2.0 → axc_agent_engine-2.2.0}/axc_agent_engine/plugins/__init__.py +44 -19
- {axc_agent_engine-2.0 → axc_agent_engine-2.2.0}/axc_agent_engine/plugins/base.py +45 -21
- {axc_agent_engine-2.0 → axc_agent_engine-2.2.0}/axc_agent_engine/plugins/builtin/__init__.py +4 -3
- {axc_agent_engine-2.0 → axc_agent_engine-2.2.0}/axc_agent_engine/plugins/builtin/builtin_tools/command_tools.py +8 -4
- {axc_agent_engine-2.0 → axc_agent_engine-2.2.0}/axc_agent_engine/plugins/builtin/builtin_tools/file_tools.py +2 -1
- {axc_agent_engine-2.0 → axc_agent_engine-2.2.0}/axc_agent_engine/plugins/builtin/builtin_tools/http_tools.py +6 -3
- {axc_agent_engine-2.0 → axc_agent_engine-2.2.0}/axc_agent_engine/plugins/builtin/builtin_tools/path_policy.py +4 -2
- {axc_agent_engine-2.0 → axc_agent_engine-2.2.0}/axc_agent_engine/plugins/builtin/builtin_tools/plugin.py +14 -6
- {axc_agent_engine-2.0 → axc_agent_engine-2.2.0}/axc_agent_engine/plugins/builtin/builtin_tools/presenter.py +2 -1
- {axc_agent_engine-2.0 → axc_agent_engine-2.2.0}/axc_agent_engine/plugins/builtin/builtin_tools/registry.py +4 -2
- {axc_agent_engine-2.0 → axc_agent_engine-2.2.0}/axc_agent_engine/plugins/builtin/builtin_tools/result_store.py +2 -1
- {axc_agent_engine-2.0 → axc_agent_engine-2.2.0}/axc_agent_engine/plugins/builtin/builtin_tools/result_tools.py +2 -1
- {axc_agent_engine-2.0 → axc_agent_engine-2.2.0}/axc_agent_engine/plugins/builtin/builtin_tools/support.py +2 -1
- {axc_agent_engine-2.0 → axc_agent_engine-2.2.0}/axc_agent_engine/plugins/builtin/builtin_tools/tool_definitions.py +6 -5
- {axc_agent_engine-2.0 → axc_agent_engine-2.2.0}/axc_agent_engine/plugins/builtin/collaboration/plugin.py +6 -2
- {axc_agent_engine-2.0 → axc_agent_engine-2.2.0}/axc_agent_engine/plugins/builtin/common.py +16 -7
- axc_agent_engine-2.2.0/axc_agent_engine/plugins/builtin/compress/context/__init__.py +3 -0
- {axc_agent_engine-2.0 → axc_agent_engine-2.2.0}/axc_agent_engine/plugins/builtin/compress/context/boundary.py +8 -4
- {axc_agent_engine-2.0 → axc_agent_engine-2.2.0}/axc_agent_engine/plugins/builtin/compress/context/file_cache.py +8 -5
- {axc_agent_engine-2.0 → axc_agent_engine-2.2.0}/axc_agent_engine/plugins/builtin/compress/context/models.py +8 -4
- {axc_agent_engine-2.0 → axc_agent_engine-2.2.0}/axc_agent_engine/plugins/builtin/compress/context/normalizer.py +6 -3
- {axc_agent_engine-2.0 → axc_agent_engine-2.2.0}/axc_agent_engine/plugins/builtin/compress/context/packer.py +5 -3
- {axc_agent_engine-2.0 → axc_agent_engine-2.2.0}/axc_agent_engine/plugins/builtin/compress/context/recall.py +8 -4
- {axc_agent_engine-2.0 → axc_agent_engine-2.2.0}/axc_agent_engine/plugins/builtin/compress/context/recent_window.py +4 -2
- {axc_agent_engine-2.0 → axc_agent_engine-2.2.0}/axc_agent_engine/plugins/builtin/compress/context/scoring.py +2 -1
- {axc_agent_engine-2.0 → axc_agent_engine-2.2.0}/axc_agent_engine/plugins/builtin/compress/context/summarizer.py +7 -5
- {axc_agent_engine-2.0 → axc_agent_engine-2.2.0}/axc_agent_engine/plugins/builtin/compress/context/tool_result.py +8 -5
- {axc_agent_engine-2.0 → axc_agent_engine-2.2.0}/axc_agent_engine/plugins/builtin/compress/context/tool_summary.py +15 -12
- {axc_agent_engine-2.0 → axc_agent_engine-2.2.0}/axc_agent_engine/plugins/builtin/compress/plugin.py +10 -6
- axc_agent_engine-2.2.0/axc_agent_engine/plugins/builtin/config_schemas.py +405 -0
- {axc_agent_engine-2.0 → axc_agent_engine-2.2.0}/axc_agent_engine/plugins/builtin/cost_statistics/plugin.py +10 -47
- {axc_agent_engine-2.0 → axc_agent_engine-2.2.0}/axc_agent_engine/plugins/builtin/graph/audit.py +2 -1
- {axc_agent_engine-2.0 → axc_agent_engine-2.2.0}/axc_agent_engine/plugins/builtin/graph/config.py +2 -1
- {axc_agent_engine-2.0 → axc_agent_engine-2.2.0}/axc_agent_engine/plugins/builtin/graph/plugin.py +3 -1
- {axc_agent_engine-2.0 → axc_agent_engine-2.2.0}/axc_agent_engine/plugins/builtin/graph/policy.py +2 -1
- {axc_agent_engine-2.0 → axc_agent_engine-2.2.0}/axc_agent_engine/plugins/builtin/graph/presenter.py +2 -1
- {axc_agent_engine-2.0 → axc_agent_engine-2.2.0}/axc_agent_engine/plugins/builtin/graph/service.py +2 -1
- {axc_agent_engine-2.0 → axc_agent_engine-2.2.0}/axc_agent_engine/plugins/builtin/graph/source_loader.py +2 -1
- {axc_agent_engine-2.0 → axc_agent_engine-2.2.0}/axc_agent_engine/plugins/builtin/graph/support.py +6 -3
- {axc_agent_engine-2.0 → axc_agent_engine-2.2.0}/axc_agent_engine/plugins/builtin/graph/tool_factory.py +2 -1
- {axc_agent_engine-2.0 → axc_agent_engine-2.2.0}/axc_agent_engine/plugins/builtin/graph/tool_handlers.py +2 -1
- {axc_agent_engine-2.0 → axc_agent_engine-2.2.0}/axc_agent_engine/plugins/builtin/graph/utils.py +2 -1
- {axc_agent_engine-2.0 → axc_agent_engine-2.2.0}/axc_agent_engine/plugins/builtin/hooks/plugin.py +13 -5
- {axc_agent_engine-2.0 → axc_agent_engine-2.2.0}/axc_agent_engine/plugins/builtin/human_in_the_loop/plugin.py +16 -7
- {axc_agent_engine-2.0 → axc_agent_engine-2.2.0}/axc_agent_engine/plugins/builtin/knowledge/plugin.py +53 -29
- {axc_agent_engine-2.0 → axc_agent_engine-2.2.0}/axc_agent_engine/plugins/builtin/knowledge/support/__init__.py +2 -1
- {axc_agent_engine-2.0 → axc_agent_engine-2.2.0}/axc_agent_engine/plugins/builtin/knowledge/support/chunker.py +7 -4
- {axc_agent_engine-2.0 → axc_agent_engine-2.2.0}/axc_agent_engine/plugins/builtin/knowledge/support/ingestion.py +14 -7
- {axc_agent_engine-2.0 → axc_agent_engine-2.2.0}/axc_agent_engine/plugins/builtin/knowledge/support/retrieval.py +72 -52
- {axc_agent_engine-2.0 → axc_agent_engine-2.2.0}/axc_agent_engine/plugins/builtin/mcp/plugin.py +4 -1
- {axc_agent_engine-2.0 → axc_agent_engine-2.2.0}/axc_agent_engine/plugins/builtin/mcp/support/__init__.py +2 -1
- {axc_agent_engine-2.0 → axc_agent_engine-2.2.0}/axc_agent_engine/plugins/builtin/mcp/support/client.py +2 -1
- {axc_agent_engine-2.0 → axc_agent_engine-2.2.0}/axc_agent_engine/plugins/builtin/mcp/support/connection.py +5 -3
- {axc_agent_engine-2.0 → axc_agent_engine-2.2.0}/axc_agent_engine/plugins/builtin/mcp/support/models.py +6 -3
- {axc_agent_engine-2.0 → axc_agent_engine-2.2.0}/axc_agent_engine/plugins/builtin/mcp/support/normalization.py +2 -1
- {axc_agent_engine-2.0 → axc_agent_engine-2.2.0}/axc_agent_engine/plugins/builtin/mcp/support/transports/__init__.py +2 -1
- {axc_agent_engine-2.0 → axc_agent_engine-2.2.0}/axc_agent_engine/plugins/builtin/mcp/support/transports/base.py +2 -1
- {axc_agent_engine-2.0 → axc_agent_engine-2.2.0}/axc_agent_engine/plugins/builtin/mcp/support/transports/http.py +2 -1
- {axc_agent_engine-2.0 → axc_agent_engine-2.2.0}/axc_agent_engine/plugins/builtin/mcp/support/transports/sdk.py +4 -2
- {axc_agent_engine-2.0 → axc_agent_engine-2.2.0}/axc_agent_engine/plugins/builtin/mcp/support/transports/stdio.py +2 -1
- {axc_agent_engine-2.0 → axc_agent_engine-2.2.0}/axc_agent_engine/plugins/builtin/memory/plugin.py +33 -16
- {axc_agent_engine-2.0 → axc_agent_engine-2.2.0}/axc_agent_engine/plugins/builtin/memory/support/__init__.py +2 -1
- {axc_agent_engine-2.0 → axc_agent_engine-2.2.0}/axc_agent_engine/plugins/builtin/memory/support/embedding.py +8 -8
- {axc_agent_engine-2.0 → axc_agent_engine-2.2.0}/axc_agent_engine/plugins/builtin/memory/support/graph.py +8 -4
- {axc_agent_engine-2.0 → axc_agent_engine-2.2.0}/axc_agent_engine/plugins/builtin/memory/support/retrieval.py +12 -6
- {axc_agent_engine-2.0 → axc_agent_engine-2.2.0}/axc_agent_engine/plugins/builtin/memory/support/service.py +22 -11
- {axc_agent_engine-2.0 → axc_agent_engine-2.2.0}/axc_agent_engine/plugins/builtin/output_format/plugin.py +14 -8
- {axc_agent_engine-2.0 → axc_agent_engine-2.2.0}/axc_agent_engine/plugins/builtin/output_format/support/__init__.py +2 -1
- {axc_agent_engine-2.0 → axc_agent_engine-2.2.0}/axc_agent_engine/plugins/builtin/output_format/support/service.py +25 -22
- {axc_agent_engine-2.0 → axc_agent_engine-2.2.0}/axc_agent_engine/plugins/builtin/post_process/plugin.py +4 -2
- {axc_agent_engine-2.0 → axc_agent_engine-2.2.0}/axc_agent_engine/plugins/builtin/reflexion/plugin.py +9 -4
- {axc_agent_engine-2.0 → axc_agent_engine-2.2.0}/axc_agent_engine/plugins/builtin/repetition_guard/plugin.py +7 -2
- {axc_agent_engine-2.0 → axc_agent_engine-2.2.0}/axc_agent_engine/plugins/builtin/risk_guard/plugin.py +7 -2
- {axc_agent_engine-2.0 → axc_agent_engine-2.2.0}/axc_agent_engine/plugins/builtin/safety/plugin.py +11 -4
- {axc_agent_engine-2.0 → axc_agent_engine-2.2.0}/axc_agent_engine/plugins/builtin/skill/plugin.py +12 -4
- {axc_agent_engine-2.0 → axc_agent_engine-2.2.0}/axc_agent_engine/plugins/builtin/swarm/plugin.py +2 -0
- {axc_agent_engine-2.0 → axc_agent_engine-2.2.0}/axc_agent_engine/plugins/builtin/tracing/plugin.py +7 -3
- axc_agent_engine-2.2.0/axc_agent_engine/plugins/config_schema.py +192 -0
- {axc_agent_engine-2.0 → axc_agent_engine-2.2.0}/axc_agent_engine/plugins/loader.py +19 -8
- axc_agent_engine-2.2.0/axc_agent_engine/plugins/registry.py +147 -0
- axc_agent_engine-2.2.0/axc_agent_engine/runtime/__init__.py +2 -0
- {axc_agent_engine-2.0 → axc_agent_engine-2.2.0}/axc_agent_engine/runtime/checkpoint.py +9 -5
- {axc_agent_engine-2.0 → axc_agent_engine-2.2.0}/axc_agent_engine/runtime/concurrency.py +9 -5
- {axc_agent_engine-2.0 → axc_agent_engine-2.2.0}/axc_agent_engine/runtime/input.py +8 -4
- {axc_agent_engine-2.0 → axc_agent_engine-2.2.0}/axc_agent_engine/runtime/policy.py +10 -5
- {axc_agent_engine-2.0 → axc_agent_engine-2.2.0}/axc_agent_engine/runtime/resources.py +14 -7
- {axc_agent_engine-2.0 → axc_agent_engine-2.2.0}/axc_agent_engine/runtime/risk.py +2 -1
- {axc_agent_engine-2.0 → axc_agent_engine-2.2.0}/axc_agent_engine/runtime/sandbox_code.py +6 -3
- {axc_agent_engine-2.0 → axc_agent_engine-2.2.0}/axc_agent_engine/runtime/sandbox_local.py +4 -2
- {axc_agent_engine-2.0 → axc_agent_engine-2.2.0}/axc_agent_engine/runtime/sandbox_models.py +12 -6
- {axc_agent_engine-2.0 → axc_agent_engine-2.2.0}/axc_agent_engine/runtime/sandbox_policy.py +6 -3
- {axc_agent_engine-2.0 → axc_agent_engine-2.2.0}/axc_agent_engine/runtime/sandbox_provider.py +4 -2
- {axc_agent_engine-2.0 → axc_agent_engine-2.2.0}/axc_agent_engine/runtime/sandbox_utils.py +2 -1
- {axc_agent_engine-2.0 → axc_agent_engine-2.2.0}/axc_agent_engine/runtime/sandbox_workspace.py +4 -2
- {axc_agent_engine-2.0 → axc_agent_engine-2.2.0}/axc_agent_engine/sidecar/__init__.py +4 -3
- {axc_agent_engine-2.0 → axc_agent_engine-2.2.0}/axc_agent_engine/sidecar/agent_selector/__init__.py +16 -7
- {axc_agent_engine-2.0 → axc_agent_engine-2.2.0}/axc_agent_engine/sidecar/cost_optimizer/__init__.py +22 -9
- {axc_agent_engine-2.0 → axc_agent_engine-2.2.0}/axc_agent_engine/sidecar/distiller/__init__.py +19 -8
- {axc_agent_engine-2.0 → axc_agent_engine-2.2.0}/axc_agent_engine/sidecar/eval/__init__.py +4 -3
- {axc_agent_engine-2.0 → axc_agent_engine-2.2.0}/axc_agent_engine/sidecar/eval/judge.py +6 -2
- {axc_agent_engine-2.0 → axc_agent_engine-2.2.0}/axc_agent_engine/sidecar/eval/matcher.py +16 -7
- {axc_agent_engine-2.0 → axc_agent_engine-2.2.0}/axc_agent_engine/sidecar/eval/report.py +10 -5
- {axc_agent_engine-2.0 → axc_agent_engine-2.2.0}/axc_agent_engine/sidecar/eval/runner.py +27 -9
- {axc_agent_engine-2.0 → axc_agent_engine-2.2.0}/axc_agent_engine/sidecar/eval/store.py +19 -8
- {axc_agent_engine-2.0 → axc_agent_engine-2.2.0}/axc_agent_engine/sidecar/failure_miner/__init__.py +16 -7
- {axc_agent_engine-2.0 → axc_agent_engine-2.2.0}/axc_agent_engine/sidecar/multi_agent/events.py +3 -1
- {axc_agent_engine-2.0 → axc_agent_engine-2.2.0}/axc_agent_engine/sidecar/multi_agent/modes.py +23 -18
- {axc_agent_engine-2.0 → axc_agent_engine-2.2.0}/axc_agent_engine/sidecar/multi_agent/persona.py +9 -3
- axc_agent_engine-2.2.0/axc_agent_engine/sidecar/multi_agent/scheduler/__init__.py +25 -0
- {axc_agent_engine-2.0 → axc_agent_engine-2.2.0}/axc_agent_engine/sidecar/multi_agent/scheduler/all_parallel.py +6 -2
- {axc_agent_engine-2.0 → axc_agent_engine-2.2.0}/axc_agent_engine/sidecar/multi_agent/scheduler/debate.py +8 -4
- {axc_agent_engine-2.0 → axc_agent_engine-2.2.0}/axc_agent_engine/sidecar/multi_agent/scheduler/redblue.py +12 -8
- {axc_agent_engine-2.0 → axc_agent_engine-2.2.0}/axc_agent_engine/sidecar/multi_agent/scheduler/round_robin.py +5 -2
- {axc_agent_engine-2.0 → axc_agent_engine-2.2.0}/axc_agent_engine/sidecar/multi_agent/scheduler/supervisor.py +19 -13
- {axc_agent_engine-2.0 → axc_agent_engine-2.2.0}/axc_agent_engine/sidecar/multi_agent/session.py +29 -13
- {axc_agent_engine-2.0 → axc_agent_engine-2.2.0}/axc_agent_engine/sidecar/multi_agent/shared_context.py +18 -6
- {axc_agent_engine-2.0 → axc_agent_engine-2.2.0}/axc_agent_engine/sidecar/multi_agent/simulation_session.py +13 -6
- {axc_agent_engine-2.0 → axc_agent_engine-2.2.0}/axc_agent_engine/sidecar/multi_agent/stop_condition/__init__.py +6 -2
- {axc_agent_engine-2.0 → axc_agent_engine-2.2.0}/axc_agent_engine/sidecar/multi_agent/stop_condition/llm_based.py +8 -4
- {axc_agent_engine-2.0 → axc_agent_engine-2.2.0}/axc_agent_engine/sidecar/multi_agent/stop_condition/max_rounds.py +3 -1
- {axc_agent_engine-2.0 → axc_agent_engine-2.2.0}/axc_agent_engine/sidecar/multi_agent/types.py +10 -5
- {axc_agent_engine-2.0 → axc_agent_engine-2.2.0}/axc_agent_engine/sidecar/orchestration/__init__.py +25 -14
- {axc_agent_engine-2.0 → axc_agent_engine-2.2.0}/axc_agent_engine/sidecar/simulation/__init__.py +4 -3
- {axc_agent_engine-2.0 → axc_agent_engine-2.2.0}/axc_agent_engine/sidecar/simulation/action_parser.py +10 -5
- {axc_agent_engine-2.0 → axc_agent_engine-2.2.0}/axc_agent_engine/sidecar/simulation/adapters.py +17 -13
- {axc_agent_engine-2.0 → axc_agent_engine-2.2.0}/axc_agent_engine/sidecar/simulation/defaults.py +25 -10
- {axc_agent_engine-2.0 → axc_agent_engine-2.2.0}/axc_agent_engine/sidecar/simulation/interfaces.py +22 -9
- {axc_agent_engine-2.0 → axc_agent_engine-2.2.0}/axc_agent_engine/sidecar/simulation/models.py +40 -15
- {axc_agent_engine-2.0 → axc_agent_engine-2.2.0}/axc_agent_engine/sidecar/simulation/modes.py +7 -4
- {axc_agent_engine-2.0 → axc_agent_engine-2.2.0}/axc_agent_engine/sidecar/simulation/report.py +23 -14
- {axc_agent_engine-2.0 → axc_agent_engine-2.2.0}/axc_agent_engine/sidecar/simulation/runner.py +19 -8
- {axc_agent_engine-2.0 → axc_agent_engine-2.2.0}/axc_agent_engine/storage/__init__.py +3 -1
- {axc_agent_engine-2.0 → axc_agent_engine-2.2.0}/axc_agent_engine/storage/in_memory.py +15 -9
- {axc_agent_engine-2.0 → axc_agent_engine-2.2.0}/axc_agent_engine/storage/protocols.py +25 -10
- {axc_agent_engine-2.0 → axc_agent_engine-2.2.0}/axc_agent_engine/storage/result_store.py +16 -8
- axc_agent_engine-2.2.0/axc_agent_engine/tools/__init__.py +2 -0
- {axc_agent_engine-2.0 → axc_agent_engine-2.2.0}/axc_agent_engine/tools/audit.py +2 -1
- {axc_agent_engine-2.0 → axc_agent_engine-2.2.0}/axc_agent_engine/tools/batches.py +4 -2
- {axc_agent_engine-2.0 → axc_agent_engine-2.2.0}/axc_agent_engine/tools/context.py +11 -4
- {axc_agent_engine-2.0 → axc_agent_engine-2.2.0}/axc_agent_engine/tools/decorator.py +7 -3
- {axc_agent_engine-2.0 → axc_agent_engine-2.2.0}/axc_agent_engine/tools/executor.py +24 -11
- {axc_agent_engine-2.0 → axc_agent_engine-2.2.0}/axc_agent_engine/tools/name_mapping.py +10 -5
- {axc_agent_engine-2.0 → axc_agent_engine-2.2.0}/axc_agent_engine/tools/orchestrator.py +12 -6
- {axc_agent_engine-2.0 → axc_agent_engine-2.2.0}/axc_agent_engine/tools/policy.py +2 -1
- {axc_agent_engine-2.0 → axc_agent_engine-2.2.0}/axc_agent_engine/tools/registry.py +27 -13
- {axc_agent_engine-2.0 → axc_agent_engine-2.2.0}/axc_agent_engine/tools/runtime.py +6 -3
- {axc_agent_engine-2.0 → axc_agent_engine-2.2.0}/axc_agent_engine/tools/tool_output.py +28 -13
- {axc_agent_engine-2.0 → axc_agent_engine-2.2.0}/axc_agent_engine/tools/utils.py +8 -3
- axc_agent_engine-2.2.0/axc_agent_engine/utils/__init__.py +2 -0
- {axc_agent_engine-2.0 → axc_agent_engine-2.2.0}/axc_agent_engine/utils/json_utils.py +9 -3
- {axc_agent_engine-2.0 → axc_agent_engine-2.2.0}/axc_agent_engine/utils/math_utils.py +4 -2
- {axc_agent_engine-2.0 → axc_agent_engine-2.2.0}/axc_agent_engine/workflow/__init__.py +2 -1
- {axc_agent_engine-2.0 → axc_agent_engine-2.2.0}/axc_agent_engine/workflow/burr_runtime.py +3 -2
- {axc_agent_engine-2.0 → axc_agent_engine-2.2.0}/axc_agent_engine/workflow/factory.py +4 -2
- {axc_agent_engine-2.0 → axc_agent_engine-2.2.0}/axc_agent_engine/workflow/memory_runtime.py +3 -2
- {axc_agent_engine-2.0 → axc_agent_engine-2.2.0}/axc_agent_engine/workflow/protocols.py +1 -1
- {axc_agent_engine-2.0 → axc_agent_engine-2.2.0}/axc_agent_engine/workflow/state.py +2 -1
- {axc_agent_engine-2.0 → axc_agent_engine-2.2.0}/docs/ARCHITECTURE.md +8 -5
- {axc_agent_engine-2.0 → axc_agent_engine-2.2.0}/docs/PLUGIN_DEVELOPMENT.md +50 -3
- {axc_agent_engine-2.0 → axc_agent_engine-2.2.0}/docs/RAVEN_EXECUTION_KERNEL_REPLACEMENT.md +7 -6
- axc_agent_engine-2.2.0/examples/01_basic_chat/run.py +30 -0
- {axc_agent_engine-2.0 → axc_agent_engine-2.2.0}/examples/02_tool_agent/run.py +12 -10
- {axc_agent_engine-2.0 → axc_agent_engine-2.2.0}/examples/03_rag_agent/run.py +12 -10
- {axc_agent_engine-2.0 → axc_agent_engine-2.2.0}/examples/04_streaming/run.py +12 -10
- {axc_agent_engine-2.0 → axc_agent_engine-2.2.0}/examples/05_custom_plugin/run.py +12 -10
- {axc_agent_engine-2.0 → axc_agent_engine-2.2.0}/examples/06_multi_agent/run_group_chat.py +14 -11
- {axc_agent_engine-2.0 → axc_agent_engine-2.2.0}/examples/06_multi_agent/run_supervisor.py +15 -12
- {axc_agent_engine-2.0 → axc_agent_engine-2.2.0}/examples/07_simulation/run_debate.py +14 -11
- {axc_agent_engine-2.0 → axc_agent_engine-2.2.0}/examples/07_simulation/run_redblue.py +14 -11
- {axc_agent_engine-2.0 → axc_agent_engine-2.2.0}/pyproject.toml +5 -5
- {axc_agent_engine-2.0 → axc_agent_engine-2.2.0}/tests/api/test_api_chat.py +8 -4
- {axc_agent_engine-2.0 → axc_agent_engine-2.2.0}/tests/boundaries/test_compression_boundary.py +4 -4
- {axc_agent_engine-2.0 → axc_agent_engine-2.2.0}/tests/boundaries/test_init_exports.py +1 -1
- axc_agent_engine-2.2.0/tests/boundaries/test_plugin_config_schema_boundaries.py +73 -0
- axc_agent_engine-2.2.0/tests/boundaries/test_source_text_policy.py +170 -0
- {axc_agent_engine-2.0 → axc_agent_engine-2.2.0}/tests/cli/test_cli.py +6 -3
- {axc_agent_engine-2.0 → axc_agent_engine-2.2.0}/tests/conftest.py +2 -2
- {axc_agent_engine-2.0 → axc_agent_engine-2.2.0}/tests/core/test_constants.py +3 -3
- {axc_agent_engine-2.0 → axc_agent_engine-2.2.0}/tests/core/test_core.py +3 -3
- {axc_agent_engine-2.0 → axc_agent_engine-2.2.0}/tests/core/test_execution_services.py +1 -1
- {axc_agent_engine-2.0 → axc_agent_engine-2.2.0}/tests/core/test_executor_checkpoint.py +2 -2
- {axc_agent_engine-2.0 → axc_agent_engine-2.2.0}/tests/core/test_message_store_snapshot.py +2 -2
- {axc_agent_engine-2.0 → axc_agent_engine-2.2.0}/tests/core/test_message_store_tooloutput.py +4 -4
- axc_agent_engine-2.2.0/tests/engine/test_engine.py +227 -0
- {axc_agent_engine-2.0 → axc_agent_engine-2.2.0}/tests/engine/test_engine_dispatcher_lifecycle.py +16 -16
- {axc_agent_engine-2.0 → axc_agent_engine-2.2.0}/tests/engine/test_integration_flow.py +1 -1
- {axc_agent_engine-2.0 → axc_agent_engine-2.2.0}/tests/llm/test_provider.py +1 -23
- {axc_agent_engine-2.0 → axc_agent_engine-2.2.0}/tests/planning/test_planning.py +4 -4
- {axc_agent_engine-2.0 → axc_agent_engine-2.2.0}/tests/plugins/test_compress_tooloutput.py +3 -3
- axc_agent_engine-2.2.0/tests/plugins/test_config_schema.py +84 -0
- {axc_agent_engine-2.0 → axc_agent_engine-2.2.0}/tests/plugins/test_knowledge_core.py +1 -1
- {axc_agent_engine-2.0 → axc_agent_engine-2.2.0}/tests/plugins/test_knowledge_vector.py +8 -8
- {axc_agent_engine-2.0 → axc_agent_engine-2.2.0}/tests/plugins/test_lightweight_guards.py +2 -2
- {axc_agent_engine-2.0 → axc_agent_engine-2.2.0}/tests/plugins/test_memory_plugin.py +1 -1
- {axc_agent_engine-2.0 → axc_agent_engine-2.2.0}/tests/plugins/test_memory_support.py +5 -7
- {axc_agent_engine-2.0 → axc_agent_engine-2.2.0}/tests/plugins/test_output_format_service.py +2 -2
- {axc_agent_engine-2.0 → axc_agent_engine-2.2.0}/tests/plugins/test_plugin_context_workspace.py +5 -5
- {axc_agent_engine-2.0 → axc_agent_engine-2.2.0}/tests/plugins/test_plugin_registry.py +31 -4
- {axc_agent_engine-2.0 → axc_agent_engine-2.2.0}/tests/plugins/test_plugins.py +14 -34
- {axc_agent_engine-2.0 → axc_agent_engine-2.2.0}/tests/plugins/test_tracing_plugin.py +1 -1
- {axc_agent_engine-2.0 → axc_agent_engine-2.2.0}/tests/runtime/test_concurrency.py +4 -4
- {axc_agent_engine-2.0 → axc_agent_engine-2.2.0}/tests/sidecar/test_simulation_adapters.py +1 -1
- {axc_agent_engine-2.0 → axc_agent_engine-2.2.0}/tests/tools/test_tool_output.py +4 -4
- {axc_agent_engine-2.0 → axc_agent_engine-2.2.0}/tests/workflow/test_workflow_runtime.py +2 -2
- axc_agent_engine-2.0/axc_agent_engine/core/constants.py +0 -27
- axc_agent_engine-2.0/axc_agent_engine/llm/registry.py +0 -56
- axc_agent_engine-2.0/axc_agent_engine/observability/__init__.py +0 -1
- axc_agent_engine-2.0/axc_agent_engine/plugins/builtin/compress/context/__init__.py +0 -2
- axc_agent_engine-2.0/axc_agent_engine/plugins/registry.py +0 -87
- axc_agent_engine-2.0/axc_agent_engine/runtime/__init__.py +0 -1
- axc_agent_engine-2.0/axc_agent_engine/sidecar/multi_agent/scheduler/__init__.py +0 -19
- axc_agent_engine-2.0/axc_agent_engine/tools/__init__.py +0 -1
- axc_agent_engine-2.0/axc_agent_engine/utils/__init__.py +0 -1
- axc_agent_engine-2.0/examples/01_basic_chat/run.py +0 -28
- axc_agent_engine-2.0/tests/engine/test_engine.py +0 -158
- {axc_agent_engine-2.0 → axc_agent_engine-2.2.0}/.gitignore +0 -0
- {axc_agent_engine-2.0 → axc_agent_engine-2.2.0}/AXC_ENGINE_CORE_REFACTOR_PLAN.md +0 -0
- {axc_agent_engine-2.0 → axc_agent_engine-2.2.0}/CHANGELOG.md +0 -0
- {axc_agent_engine-2.0 → axc_agent_engine-2.2.0}/CODE_OF_CONDUCT.md +0 -0
- {axc_agent_engine-2.0 → axc_agent_engine-2.2.0}/CONTRIBUTING.md +0 -0
- {axc_agent_engine-2.0 → axc_agent_engine-2.2.0}/ENGINE_BOUNDARY_DESIGN.md +0 -0
- {axc_agent_engine-2.0 → axc_agent_engine-2.2.0}/LICENSE +0 -0
- {axc_agent_engine-2.0 → axc_agent_engine-2.2.0}/Makefile +0 -0
- {axc_agent_engine-2.0 → axc_agent_engine-2.2.0}/NOTICE +0 -0
- {axc_agent_engine-2.0 → axc_agent_engine-2.2.0}/RAVEN_EXECUTION_KERNEL_REPLACEMENT.md +0 -0
- {axc_agent_engine-2.0 → axc_agent_engine-2.2.0}/SECURITY.md +0 -0
- {axc_agent_engine-2.0 → axc_agent_engine-2.2.0}/axc_agent_engine/api/__init__.py +0 -0
- {axc_agent_engine-2.0 → axc_agent_engine-2.2.0}/axc_agent_engine/api/routes/__init__.py +0 -0
- {axc_agent_engine-2.0 → axc_agent_engine-2.2.0}/axc_agent_engine/llm/__init__.py +0 -0
- {axc_agent_engine-2.0 → axc_agent_engine-2.2.0}/axc_agent_engine/llm/config.py +0 -0
- {axc_agent_engine-2.0 → axc_agent_engine-2.2.0}/axc_agent_engine/planning/runtime.py +0 -0
- {axc_agent_engine-2.0 → axc_agent_engine-2.2.0}/axc_agent_engine/plugins/builtin/builtin_tools/__init__.py +0 -0
- {axc_agent_engine-2.0 → axc_agent_engine-2.2.0}/axc_agent_engine/plugins/builtin/collaboration/__init__.py +0 -0
- {axc_agent_engine-2.0 → axc_agent_engine-2.2.0}/axc_agent_engine/plugins/builtin/compress/__init__.py +0 -0
- {axc_agent_engine-2.0 → axc_agent_engine-2.2.0}/axc_agent_engine/plugins/builtin/compress/prompts.py +0 -0
- {axc_agent_engine-2.0 → axc_agent_engine-2.2.0}/axc_agent_engine/plugins/builtin/cost_statistics/__init__.py +0 -0
- {axc_agent_engine-2.0 → axc_agent_engine-2.2.0}/axc_agent_engine/plugins/builtin/graph/__init__.py +0 -0
- {axc_agent_engine-2.0 → axc_agent_engine-2.2.0}/axc_agent_engine/plugins/builtin/hooks/__init__.py +0 -0
- {axc_agent_engine-2.0 → axc_agent_engine-2.2.0}/axc_agent_engine/plugins/builtin/human_in_the_loop/__init__.py +0 -0
- {axc_agent_engine-2.0 → axc_agent_engine-2.2.0}/axc_agent_engine/plugins/builtin/knowledge/__init__.py +0 -0
- {axc_agent_engine-2.0 → axc_agent_engine-2.2.0}/axc_agent_engine/plugins/builtin/mcp/__init__.py +0 -0
- {axc_agent_engine-2.0 → axc_agent_engine-2.2.0}/axc_agent_engine/plugins/builtin/memory/__init__.py +0 -0
- {axc_agent_engine-2.0 → axc_agent_engine-2.2.0}/axc_agent_engine/plugins/builtin/memory/prompts.py +0 -0
- {axc_agent_engine-2.0 → axc_agent_engine-2.2.0}/axc_agent_engine/plugins/builtin/output_format/__init__.py +0 -0
- {axc_agent_engine-2.0 → axc_agent_engine-2.2.0}/axc_agent_engine/plugins/builtin/post_process/__init__.py +0 -0
- {axc_agent_engine-2.0 → axc_agent_engine-2.2.0}/axc_agent_engine/plugins/builtin/reflexion/__init__.py +0 -0
- {axc_agent_engine-2.0 → axc_agent_engine-2.2.0}/axc_agent_engine/plugins/builtin/reflexion/prompts.py +0 -0
- {axc_agent_engine-2.0 → axc_agent_engine-2.2.0}/axc_agent_engine/plugins/builtin/repetition_guard/__init__.py +0 -0
- {axc_agent_engine-2.0 → axc_agent_engine-2.2.0}/axc_agent_engine/plugins/builtin/risk_guard/__init__.py +0 -0
- {axc_agent_engine-2.0 → axc_agent_engine-2.2.0}/axc_agent_engine/plugins/builtin/safety/__init__.py +0 -0
- {axc_agent_engine-2.0 → axc_agent_engine-2.2.0}/axc_agent_engine/plugins/builtin/skill/__init__.py +0 -0
- {axc_agent_engine-2.0 → axc_agent_engine-2.2.0}/axc_agent_engine/plugins/builtin/swarm/__init__.py +0 -0
- {axc_agent_engine-2.0 → axc_agent_engine-2.2.0}/axc_agent_engine/plugins/builtin/tracing/__init__.py +0 -0
- {axc_agent_engine-2.0 → axc_agent_engine-2.2.0}/axc_agent_engine/py.typed +0 -0
- {axc_agent_engine-2.0 → axc_agent_engine-2.2.0}/axc_agent_engine/sidecar/README.md +0 -0
- {axc_agent_engine-2.0 → axc_agent_engine-2.2.0}/axc_agent_engine/sidecar/multi_agent/__init__.py +0 -0
- {axc_agent_engine-2.0 → axc_agent_engine-2.2.0}/axc_agent_engine/sidecar/multi_agent/stop_condition/causal_chain.py +0 -0
- {axc_agent_engine-2.0 → axc_agent_engine-2.2.0}/axc_agent_engine/sidecar/multi_agent/stop_condition/consensus.py +0 -0
- {axc_agent_engine-2.0 → axc_agent_engine-2.2.0}/axc_agent_engine/sidecar/multi_agent/stop_condition/goal_reached.py +0 -0
- {axc_agent_engine-2.0 → axc_agent_engine-2.2.0}/docs/API.md +0 -0
- {axc_agent_engine-2.0 → axc_agent_engine-2.2.0}/docs/OPEN_SOURCE_REPORT.md +0 -0
- {axc_agent_engine-2.0 → axc_agent_engine-2.2.0}/docs/RELEASE_CHECKLIST.md +0 -0
- {axc_agent_engine-2.0 → axc_agent_engine-2.2.0}/docs/SECURITY_MODEL.md +0 -0
- {axc_agent_engine-2.0 → axc_agent_engine-2.2.0}/examples/01_basic_chat/README.md +0 -0
- {axc_agent_engine-2.0 → axc_agent_engine-2.2.0}/examples/01_basic_chat/agent.yaml +0 -0
- {axc_agent_engine-2.0 → axc_agent_engine-2.2.0}/examples/02_tool_agent/agent.yaml +0 -0
- {axc_agent_engine-2.0 → axc_agent_engine-2.2.0}/examples/03_rag_agent/agent.yaml +0 -0
- {axc_agent_engine-2.0 → axc_agent_engine-2.2.0}/examples/03_rag_agent/docs/faq.md +0 -0
- {axc_agent_engine-2.0 → axc_agent_engine-2.2.0}/examples/04_streaming/agent.yaml +0 -0
- {axc_agent_engine-2.0 → axc_agent_engine-2.2.0}/examples/05_custom_plugin/agent.yaml +0 -0
- {axc_agent_engine-2.0 → axc_agent_engine-2.2.0}/examples/05_custom_plugin/my_plugin.py +0 -0
- {axc_agent_engine-2.0 → axc_agent_engine-2.2.0}/examples/06_multi_agent/agent_dev.yaml +0 -0
- {axc_agent_engine-2.0 → axc_agent_engine-2.2.0}/examples/06_multi_agent/agent_pm.yaml +0 -0
- {axc_agent_engine-2.0 → axc_agent_engine-2.2.0}/examples/06_multi_agent/agent_supervisor.yaml +0 -0
- {axc_agent_engine-2.0 → axc_agent_engine-2.2.0}/examples/07_simulation/agent_blue.yaml +0 -0
- {axc_agent_engine-2.0 → axc_agent_engine-2.2.0}/examples/07_simulation/agent_con.yaml +0 -0
- {axc_agent_engine-2.0 → axc_agent_engine-2.2.0}/examples/07_simulation/agent_pro.yaml +0 -0
- {axc_agent_engine-2.0 → axc_agent_engine-2.2.0}/examples/07_simulation/agent_red.yaml +0 -0
- {axc_agent_engine-2.0 → axc_agent_engine-2.2.0}/examples/README.md +0 -0
- {axc_agent_engine-2.0 → axc_agent_engine-2.2.0}/llms.txt +0 -0
- {axc_agent_engine-2.0 → axc_agent_engine-2.2.0}/tests/__init__.py +0 -0
- {axc_agent_engine-2.0 → axc_agent_engine-2.2.0}/tests/api/__init__.py +0 -0
- {axc_agent_engine-2.0 → axc_agent_engine-2.2.0}/tests/boundaries/__init__.py +0 -0
- {axc_agent_engine-2.0 → axc_agent_engine-2.2.0}/tests/boundaries/test_core_dependency_boundaries.py +0 -0
- {axc_agent_engine-2.0 → axc_agent_engine-2.2.0}/tests/boundaries/test_engine_boundaries.py +0 -0
- {axc_agent_engine-2.0 → axc_agent_engine-2.2.0}/tests/boundaries/test_engine_boundary_matrix.py +0 -0
- {axc_agent_engine-2.0 → axc_agent_engine-2.2.0}/tests/boundaries/test_engine_plugin_boundaries.py +0 -0
- {axc_agent_engine-2.0 → axc_agent_engine-2.2.0}/tests/boundaries/test_pyproject_deps.py +0 -0
- {axc_agent_engine-2.0 → axc_agent_engine-2.2.0}/tests/core/__init__.py +0 -0
- {axc_agent_engine-2.0 → axc_agent_engine-2.2.0}/tests/core/test_context.py +0 -0
- {axc_agent_engine-2.0 → axc_agent_engine-2.2.0}/tests/core/test_context_layers.py +0 -0
- {axc_agent_engine-2.0 → axc_agent_engine-2.2.0}/tests/core/test_dispatcher_architecture.py +0 -0
- {axc_agent_engine-2.0 → axc_agent_engine-2.2.0}/tests/core/test_errors.py +0 -0
- {axc_agent_engine-2.0 → axc_agent_engine-2.2.0}/tests/core/test_event_categories.py +0 -0
- {axc_agent_engine-2.0 → axc_agent_engine-2.2.0}/tests/core/test_events.py +0 -0
- {axc_agent_engine-2.0 → axc_agent_engine-2.2.0}/tests/core/test_execution_config_workspace.py +0 -0
- {axc_agent_engine-2.0 → axc_agent_engine-2.2.0}/tests/core/test_realtime_stream.py +0 -0
- {axc_agent_engine-2.0 → axc_agent_engine-2.2.0}/tests/core/test_schema.py +0 -0
- {axc_agent_engine-2.0 → axc_agent_engine-2.2.0}/tests/core/test_stream_aggregator.py +0 -0
- {axc_agent_engine-2.0 → axc_agent_engine-2.2.0}/tests/engine/__init__.py +0 -0
- {axc_agent_engine-2.0 → axc_agent_engine-2.2.0}/tests/llm/__init__.py +0 -0
- {axc_agent_engine-2.0 → axc_agent_engine-2.2.0}/tests/llm/test_llm_caller_retry.py +0 -0
- {axc_agent_engine-2.0 → axc_agent_engine-2.2.0}/tests/observability/__init__.py +0 -0
- {axc_agent_engine-2.0 → axc_agent_engine-2.2.0}/tests/observability/test_audit.py +0 -0
- {axc_agent_engine-2.0 → axc_agent_engine-2.2.0}/tests/observability/test_logging.py +0 -0
- {axc_agent_engine-2.0 → axc_agent_engine-2.2.0}/tests/planning/__init__.py +0 -0
- {axc_agent_engine-2.0 → axc_agent_engine-2.2.0}/tests/planning/test_plan_runtime.py +0 -0
- {axc_agent_engine-2.0 → axc_agent_engine-2.2.0}/tests/planning/test_por_checkpointing.py +0 -0
- {axc_agent_engine-2.0 → axc_agent_engine-2.2.0}/tests/planning/test_por_graph_runtime.py +0 -0
- {axc_agent_engine-2.0 → axc_agent_engine-2.2.0}/tests/plugins/__init__.py +0 -0
- {axc_agent_engine-2.0 → axc_agent_engine-2.2.0}/tests/plugins/test_builtin_tools_tooloutput.py +0 -0
- {axc_agent_engine-2.0 → axc_agent_engine-2.2.0}/tests/plugins/test_collaboration_plugin.py +0 -0
- {axc_agent_engine-2.0 → axc_agent_engine-2.2.0}/tests/plugins/test_graph_store.py +0 -0
- {axc_agent_engine-2.0 → axc_agent_engine-2.2.0}/tests/plugins/test_hooks_and_hitl.py +0 -0
- {axc_agent_engine-2.0 → axc_agent_engine-2.2.0}/tests/plugins/test_knowledge_plugin.py +0 -0
- {axc_agent_engine-2.0 → axc_agent_engine-2.2.0}/tests/plugins/test_mcp_plugin.py +0 -0
- {axc_agent_engine-2.0 → axc_agent_engine-2.2.0}/tests/plugins/test_mcp_transports.py +0 -0
- {axc_agent_engine-2.0 → axc_agent_engine-2.2.0}/tests/plugins/test_memory_core.py +0 -0
- {axc_agent_engine-2.0 → axc_agent_engine-2.2.0}/tests/plugins/test_plugin_dependencies.py +0 -0
- {axc_agent_engine-2.0 → axc_agent_engine-2.2.0}/tests/plugins/test_plugin_isolation.py +0 -0
- {axc_agent_engine-2.0 → axc_agent_engine-2.2.0}/tests/plugins/test_plugin_post_tool_call.py +0 -0
- {axc_agent_engine-2.0 → axc_agent_engine-2.2.0}/tests/plugins/test_skill_plugin.py +0 -0
- {axc_agent_engine-2.0 → axc_agent_engine-2.2.0}/tests/plugins/test_swarm_plugin.py +0 -0
- {axc_agent_engine-2.0 → axc_agent_engine-2.2.0}/tests/plugins/test_vector_store_capacity.py +0 -0
- {axc_agent_engine-2.0 → axc_agent_engine-2.2.0}/tests/runtime/__init__.py +0 -0
- {axc_agent_engine-2.0 → axc_agent_engine-2.2.0}/tests/runtime/test_capability_gate.py +0 -0
- {axc_agent_engine-2.0 → axc_agent_engine-2.2.0}/tests/runtime/test_checkpoint.py +0 -0
- {axc_agent_engine-2.0 → axc_agent_engine-2.2.0}/tests/runtime/test_policy.py +0 -0
- {axc_agent_engine-2.0 → axc_agent_engine-2.2.0}/tests/runtime/test_sandbox.py +0 -0
- {axc_agent_engine-2.0 → axc_agent_engine-2.2.0}/tests/runtime/test_security_risk.py +0 -0
- {axc_agent_engine-2.0 → axc_agent_engine-2.2.0}/tests/sidecar/__init__.py +0 -0
- {axc_agent_engine-2.0 → axc_agent_engine-2.2.0}/tests/sidecar/test_eval_framework.py +0 -0
- {axc_agent_engine-2.0 → axc_agent_engine-2.2.0}/tests/sidecar/test_multi_agent_modes.py +0 -0
- {axc_agent_engine-2.0 → axc_agent_engine-2.2.0}/tests/sidecar/test_orchestration_service.py +0 -0
- {axc_agent_engine-2.0 → axc_agent_engine-2.2.0}/tests/sidecar/test_sidecar_agent_ops.py +0 -0
- {axc_agent_engine-2.0 → axc_agent_engine-2.2.0}/tests/sidecar/test_simulation_kernel.py +0 -0
- {axc_agent_engine-2.0 → axc_agent_engine-2.2.0}/tests/storage/__init__.py +0 -0
- {axc_agent_engine-2.0 → axc_agent_engine-2.2.0}/tests/storage/test_storage.py +0 -0
- {axc_agent_engine-2.0 → axc_agent_engine-2.2.0}/tests/tools/__init__.py +0 -0
- {axc_agent_engine-2.0 → axc_agent_engine-2.2.0}/tests/tools/test_decorator_tooloutput.py +0 -0
- {axc_agent_engine-2.0 → axc_agent_engine-2.2.0}/tests/tools/test_orchestrator_tool_context.py +0 -0
- {axc_agent_engine-2.0 → axc_agent_engine-2.2.0}/tests/tools/test_tool_context.py +0 -0
- {axc_agent_engine-2.0 → axc_agent_engine-2.2.0}/tests/tools/test_tool_orchestrator_timeout.py +0 -0
- {axc_agent_engine-2.0 → axc_agent_engine-2.2.0}/tests/tools/test_tool_output_integration.py +0 -0
- {axc_agent_engine-2.0 → axc_agent_engine-2.2.0}/tests/tools/test_tool_validation.py +0 -0
- {axc_agent_engine-2.0 → axc_agent_engine-2.2.0}/tests/tools/test_tooloutput_protocol.py +0 -0
- {axc_agent_engine-2.0 → axc_agent_engine-2.2.0}/tests/tools/test_tools.py +0 -0
- {axc_agent_engine-2.0 → axc_agent_engine-2.2.0}/tests/utils/__init__.py +0 -0
- {axc_agent_engine-2.0 → axc_agent_engine-2.2.0}/tests/utils/test_math_utils.py +0 -0
- {axc_agent_engine-2.0 → axc_agent_engine-2.2.0}/tests/workflow/__init__.py +0 -0
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: axc-agent-engine
|
|
3
|
-
Version: 2.0
|
|
3
|
+
Version: 2.2.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
|
|
@@ -55,7 +55,8 @@ Description-Content-Type: text/markdown
|
|
|
55
55
|
</p>
|
|
56
56
|
|
|
57
57
|
<p align="center">
|
|
58
|
-
<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"/>
|
|
59
60
|
<img src="https://img.shields.io/badge/license-Apache--2.0-green" alt="license"/>
|
|
60
61
|
<img src="https://img.shields.io/badge/API-OpenAI%20compatible-orange" alt="api"/>
|
|
61
62
|
</p>
|
|
@@ -82,27 +83,33 @@ AxcAgentEngine adds **POR (Plan-Observe-Replan)** on top of ReAct: the agent pro
|
|
|
82
83
|
|
|
83
84
|
```bash
|
|
84
85
|
pip install axc-agent-engine
|
|
85
|
-
```
|
|
86
86
|
|
|
87
|
+
# Pin the current 2.0 release
|
|
88
|
+
pip install axc-agent-engine==2.0
|
|
89
|
+
|
|
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]"
|
|
94
|
+
```
|
|
87
95
|
|
|
96
|
+
Requires Python 3.11 or newer.
|
|
88
97
|
|
|
89
98
|
```python
|
|
90
|
-
from axc_agent_engine import Engine, LLMConfig, PluginRegistry
|
|
99
|
+
from axc_agent_engine import AgentModels, Engine, LLMConfig, PluginRegistry
|
|
100
|
+
from axc_agent_engine.llm.client import OpenAIClient
|
|
91
101
|
from axc_agent_engine.plugins.builtin import BuiltinToolsPlugin
|
|
92
102
|
|
|
93
103
|
registry = PluginRegistry()
|
|
94
104
|
registry.register(BuiltinToolsPlugin)
|
|
95
105
|
|
|
96
|
-
engine = Engine(
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
)
|
|
104
|
-
|
|
105
|
-
agent = engine.load_agent("./agents/my_agent.yaml")
|
|
106
|
+
engine = Engine(plugin_registry=registry)
|
|
107
|
+
models = AgentModels(default=OpenAIClient(LLMConfig(
|
|
108
|
+
base_url="https://api.openai.com/v1",
|
|
109
|
+
api_key="sk-xxx",
|
|
110
|
+
model="gpt-4o",
|
|
111
|
+
)))
|
|
112
|
+
agent = engine.load_agent_template("./agents/my_agent.yaml").instantiate(models=models)
|
|
106
113
|
|
|
107
114
|
# Non-streaming
|
|
108
115
|
result = await agent.chat("Analyze last month's sales data")
|
|
@@ -123,7 +130,7 @@ async for event in agent.stream("Build a REST API for user management"):
|
|
|
123
130
|
- **ReAct executor** - standard think / call / observe loop
|
|
124
131
|
- **Plugin system** - built-in spec registry, YAML-driven loading; optional capabilities live in plugins
|
|
125
132
|
- **Tool protocol** - every tool returns `ToolOutput`; read-only runs concurrent, write serial; safe function-name mapping
|
|
126
|
-
- **Durable workflow** - `WorkflowRuntime` + `CheckpointStore` + Agent resume API
|
|
133
|
+
- **Durable workflow** - `WorkflowRuntime` + `CheckpointStore` + Agent resume API; Burr is optional via `axc-agent-engine[workflow]`
|
|
127
134
|
- **OpenAI compatible** - provider protocol + OpenAI-compatible HTTP client and API subset
|
|
128
135
|
- **Memory & knowledge** - four-layer memory (KV, dedup, decay, graph hooks) + semantic chunking + vector/BM25 hybrid retrieval
|
|
129
136
|
- **MCP** - stdio, JSON-RPC HTTP, official SDK transports
|
|
@@ -137,7 +144,7 @@ async for event in agent.stream("Build a REST API for user management"):
|
|
|
137
144
|
| --- | --- |
|
|
138
145
|
| ReAct loop | `Executor` |
|
|
139
146
|
| POR planning | `auto` / `react_only` / `por_first` |
|
|
140
|
-
| Durable workflow | `
|
|
147
|
+
| Durable workflow | `MemoryWorkflowRuntime` by default; optional `BurrWorkflowRuntime` via `axc-agent-engine[workflow]` |
|
|
141
148
|
| Plugin system | spec registry + YAML-driven loading |
|
|
142
149
|
| LLM provider | provider protocol + OpenAI-compatible HTTP |
|
|
143
150
|
| Parallel tools | read concurrent, write serial |
|
|
@@ -221,13 +228,13 @@ Notes:
|
|
|
221
228
|
|
|
222
229
|
## Provider Configuration
|
|
223
230
|
|
|
224
|
-
`
|
|
231
|
+
`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`).
|
|
225
232
|
|
|
226
233
|
```python
|
|
227
234
|
from axc_agent_engine import ConcurrencyConfig, Engine, LLMConfig
|
|
228
235
|
from axc_agent_engine.tools.name_mapping import ToolNameMappingConfig
|
|
229
236
|
|
|
230
|
-
|
|
237
|
+
main_model_config = LLMConfig(
|
|
231
238
|
base_url="https://api.openai.com/v1",
|
|
232
239
|
api_key="sk-xxx",
|
|
233
240
|
model="gpt-4o",
|
|
@@ -239,19 +246,14 @@ default_llm = LLMConfig(
|
|
|
239
246
|
)
|
|
240
247
|
|
|
241
248
|
engine = Engine(
|
|
242
|
-
default_llm=default_llm,
|
|
243
249
|
concurrency=ConcurrencyConfig(
|
|
244
250
|
max_engine_concurrent_runs=128,
|
|
245
251
|
queue_timeout=30,
|
|
246
252
|
),
|
|
247
253
|
)
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
```python
|
|
253
|
-
engine.provider_registry.register("fast", fast_provider)
|
|
254
|
-
agent = engine.load_agent("./agents/my_agent.yaml", default_llm="fast")
|
|
254
|
+
agent = engine.load_agent_template("./agents/my_agent.yaml").instantiate(
|
|
255
|
+
models=AgentModels(default=OpenAIClient(main_model_config)),
|
|
256
|
+
)
|
|
255
257
|
```
|
|
256
258
|
|
|
257
259
|
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.
|
|
@@ -273,13 +275,14 @@ Clients should not assume full OpenAI parity; call `/v1/capabilities` first. See
|
|
|
273
275
|
Capabilities not required by a basic agent live in plugins. The default `Engine.plugin_registry` is empty; both built-in and custom plugins must be registered explicitly.
|
|
274
276
|
|
|
275
277
|
```python
|
|
276
|
-
from axc_agent_engine import
|
|
278
|
+
from axc_agent_engine import AgentModels, Engine, PluginRegistry
|
|
277
279
|
from axc_agent_engine.plugins.builtin import BuiltinToolsPlugin, MemoryPlugin
|
|
278
280
|
from my_project.plugins import MyCustomPlugin
|
|
279
281
|
|
|
280
282
|
registry = PluginRegistry()
|
|
281
283
|
registry.register_many([BuiltinToolsPlugin, MemoryPlugin, MyCustomPlugin])
|
|
282
|
-
engine = Engine(
|
|
284
|
+
engine = Engine(plugin_registry=registry)
|
|
285
|
+
agent = engine.load_agent_template("./agents/my_agent.yaml").instantiate(models=AgentModels(default=llm))
|
|
283
286
|
```
|
|
284
287
|
|
|
285
288
|
| Plugin | Purpose |
|
|
@@ -321,15 +324,16 @@ Sidecars live under `axc_agent_engine.sidecar` and are invoked explicitly by the
|
|
|
321
324
|
from axc_agent_engine.sidecar import OrchestrationTaskService
|
|
322
325
|
from axc_agent_engine.storage.in_memory import InMemoryMessageBus
|
|
323
326
|
|
|
324
|
-
engine = Engine(
|
|
325
|
-
|
|
326
|
-
|
|
327
|
+
engine = Engine(message_bus=InMemoryMessageBus())
|
|
328
|
+
models = AgentModels(default=main_model, utility=utility_model)
|
|
329
|
+
red = engine.load_agent_template("./agents/red.yaml").instantiate(models=models)
|
|
330
|
+
blue = engine.load_agent_template("./agents/blue.yaml").instantiate(models=models)
|
|
327
331
|
|
|
328
332
|
service = OrchestrationTaskService(
|
|
329
333
|
agent_getter=engine.get_agent,
|
|
330
334
|
agent_lister=engine.list_agents,
|
|
331
335
|
dispatcher=engine._dispatcher,
|
|
332
|
-
|
|
336
|
+
utility_model=utility_model,
|
|
333
337
|
)
|
|
334
338
|
|
|
335
339
|
task = await service.run_task(
|
|
@@ -347,8 +351,8 @@ task = await service.run_task(
|
|
|
347
351
|
```mermaid
|
|
348
352
|
flowchart TD
|
|
349
353
|
A["Application creates Engine"] --> B["Inject providers and services"]
|
|
350
|
-
B --> C["Engine.
|
|
351
|
-
C --> D["
|
|
354
|
+
B --> C["Engine.load_agent_template(agent.yaml)"]
|
|
355
|
+
C --> D["AgentTemplate.instantiate(models, mounts)"]
|
|
352
356
|
D --> E["Build PluginContext"]
|
|
353
357
|
E --> F["Load enabled plugins"]
|
|
354
358
|
F --> G["Plugin.initialize()"]
|
|
@@ -364,27 +368,48 @@ flowchart TD
|
|
|
364
368
|
A["User message"] --> B["Agent.chat() / Agent.stream()"]
|
|
365
369
|
B --> C["ExecutionContext"]
|
|
366
370
|
C --> D["Executor"]
|
|
367
|
-
D --> E["
|
|
368
|
-
|
|
369
|
-
F --> G["
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
J
|
|
374
|
-
|
|
375
|
-
|
|
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
|
|
376
383
|
```
|
|
377
384
|
|
|
378
385
|
## Plugin Development
|
|
379
386
|
|
|
380
387
|
```python
|
|
381
388
|
from axc_agent_engine import BasePlugin, ToolDefinition, ToolOutput
|
|
389
|
+
from axc_agent_engine.plugins.config_schema import config_field, config_schema
|
|
382
390
|
|
|
383
391
|
class MyPlugin(BasePlugin):
|
|
384
392
|
name = "my_plugin"
|
|
385
393
|
display_name = "My Plugin"
|
|
386
394
|
priority = 30
|
|
387
395
|
phase = "core"
|
|
396
|
+
config_schema = config_schema(
|
|
397
|
+
"my_plugin",
|
|
398
|
+
"My Plugin",
|
|
399
|
+
"Configuration for MyPlugin.",
|
|
400
|
+
[
|
|
401
|
+
config_field(
|
|
402
|
+
"api_url",
|
|
403
|
+
"接口地址",
|
|
404
|
+
"string",
|
|
405
|
+
"插件调用的后端接口地址。",
|
|
406
|
+
label_en="API URL",
|
|
407
|
+
default="http://localhost:5000",
|
|
408
|
+
required=True,
|
|
409
|
+
),
|
|
410
|
+
],
|
|
411
|
+
display_name_en="My Plugin",
|
|
412
|
+
)
|
|
388
413
|
|
|
389
414
|
def initialize(self, config: dict, ctx) -> None:
|
|
390
415
|
super().initialize(config, ctx)
|
|
@@ -405,7 +430,9 @@ class MyPlugin(BasePlugin):
|
|
|
405
430
|
return ToolOutput.text(f"Result for {args['query']}")
|
|
406
431
|
```
|
|
407
432
|
|
|
408
|
-
Plugins must inherit `BasePlugin`,
|
|
433
|
+
Plugins must inherit `BasePlugin`, declare `config_schema`, and return tools as `ToolDefinition` instances. `ToolRegistry` does not accept dicts.
|
|
434
|
+
|
|
435
|
+
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)`.
|
|
409
436
|
|
|
410
437
|
```yaml
|
|
411
438
|
plugins:
|
|
@@ -430,11 +457,14 @@ CLI logging flags are global and must be placed before the subcommand.
|
|
|
430
457
|
|
|
431
458
|
## Design Decisions
|
|
432
459
|
|
|
433
|
-
- **Engine core = Executor + LLMCaller.** Reads Agent YAML, calls LLM providers, runs the loop, emits events/results.
|
|
460
|
+
- **Engine core = Executor + ReActKernel + LLMCaller.** Reads Agent YAML, calls LLM providers, runs the ReAct loop, emits events/results.
|
|
461
|
+
- **POR state transitions live in pydantic-graph.** `PORGraphRuntime` owns the plan/step/observe/replan loop; services execute work and persist checkpoints.
|
|
462
|
+
- **Workflow resume is a runtime boundary.** `MemoryWorkflowRuntime` is the default; `BurrWorkflowRuntime` is selected when the optional workflow dependency is installed.
|
|
434
463
|
- **Plugins are the runtime extension boundary.** Knowledge, memory, graph, MCP, output repair, skills belong in plugins.
|
|
435
464
|
- **Orchestration is sidecar.** Multi-agent sessions, simulation, mode adapters are host-driven.
|
|
436
465
|
- **Evaluation is sidecar.** EvalRunner, stores, matchers, reports are host-driven test framework pieces.
|
|
437
466
|
- **Registration is not loading.** The spec registry is the full plugin table; agents load only YAML-enabled plugins.
|
|
467
|
+
- **Plugin schema is mandatory.** A plugin without `config_schema` cannot be registered.
|
|
438
468
|
- **Tools come from plugins.** The engine core embeds no business tools.
|
|
439
469
|
- **Tools must return `ToolOutput`.** Non-`ToolOutput` returns are rejected.
|
|
440
470
|
- **Tool definitions must be `ToolDefinition`.** No dicts.
|
|
@@ -446,4 +476,7 @@ CLI logging flags are global and must be placed before the subcommand.
|
|
|
446
476
|
|
|
447
477
|
```bash
|
|
448
478
|
python3 -m pytest -q
|
|
479
|
+
python3 -m pytest --cov --cov-report=term-missing:skip-covered -q
|
|
449
480
|
```
|
|
481
|
+
|
|
482
|
+
The release gate requires at least 90% total coverage.
|
|
@@ -5,7 +5,8 @@
|
|
|
5
5
|
</p>
|
|
6
6
|
|
|
7
7
|
<p align="center">
|
|
8
|
-
<img src="https://img.shields.io/badge/python-3.
|
|
8
|
+
<img src="https://img.shields.io/badge/python-3.11%2B-blue" alt="python"/>
|
|
9
|
+
<img src="https://img.shields.io/pypi/v/axc-agent-engine" alt="pypi"/>
|
|
9
10
|
<img src="https://img.shields.io/badge/license-Apache--2.0-green" alt="license"/>
|
|
10
11
|
<img src="https://img.shields.io/badge/API-OpenAI%20compatible-orange" alt="api"/>
|
|
11
12
|
</p>
|
|
@@ -32,27 +33,33 @@ AxcAgentEngine adds **POR (Plan-Observe-Replan)** on top of ReAct: the agent pro
|
|
|
32
33
|
|
|
33
34
|
```bash
|
|
34
35
|
pip install axc-agent-engine
|
|
35
|
-
```
|
|
36
36
|
|
|
37
|
+
# Pin the current 2.0 release
|
|
38
|
+
pip install axc-agent-engine==2.0
|
|
39
|
+
|
|
40
|
+
# Optional extras
|
|
41
|
+
pip install "axc-agent-engine[api]"
|
|
42
|
+
pip install "axc-agent-engine[workflow]"
|
|
43
|
+
pip install "axc-agent-engine[api,knowledge,workflow]"
|
|
44
|
+
```
|
|
37
45
|
|
|
46
|
+
Requires Python 3.11 or newer.
|
|
38
47
|
|
|
39
48
|
```python
|
|
40
|
-
from axc_agent_engine import Engine, LLMConfig, PluginRegistry
|
|
49
|
+
from axc_agent_engine import AgentModels, Engine, LLMConfig, PluginRegistry
|
|
50
|
+
from axc_agent_engine.llm.client import OpenAIClient
|
|
41
51
|
from axc_agent_engine.plugins.builtin import BuiltinToolsPlugin
|
|
42
52
|
|
|
43
53
|
registry = PluginRegistry()
|
|
44
54
|
registry.register(BuiltinToolsPlugin)
|
|
45
55
|
|
|
46
|
-
engine = Engine(
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
)
|
|
54
|
-
|
|
55
|
-
agent = engine.load_agent("./agents/my_agent.yaml")
|
|
56
|
+
engine = Engine(plugin_registry=registry)
|
|
57
|
+
models = AgentModels(default=OpenAIClient(LLMConfig(
|
|
58
|
+
base_url="https://api.openai.com/v1",
|
|
59
|
+
api_key="sk-xxx",
|
|
60
|
+
model="gpt-4o",
|
|
61
|
+
)))
|
|
62
|
+
agent = engine.load_agent_template("./agents/my_agent.yaml").instantiate(models=models)
|
|
56
63
|
|
|
57
64
|
# Non-streaming
|
|
58
65
|
result = await agent.chat("Analyze last month's sales data")
|
|
@@ -73,7 +80,7 @@ async for event in agent.stream("Build a REST API for user management"):
|
|
|
73
80
|
- **ReAct executor** - standard think / call / observe loop
|
|
74
81
|
- **Plugin system** - built-in spec registry, YAML-driven loading; optional capabilities live in plugins
|
|
75
82
|
- **Tool protocol** - every tool returns `ToolOutput`; read-only runs concurrent, write serial; safe function-name mapping
|
|
76
|
-
- **Durable workflow** - `WorkflowRuntime` + `CheckpointStore` + Agent resume API
|
|
83
|
+
- **Durable workflow** - `WorkflowRuntime` + `CheckpointStore` + Agent resume API; Burr is optional via `axc-agent-engine[workflow]`
|
|
77
84
|
- **OpenAI compatible** - provider protocol + OpenAI-compatible HTTP client and API subset
|
|
78
85
|
- **Memory & knowledge** - four-layer memory (KV, dedup, decay, graph hooks) + semantic chunking + vector/BM25 hybrid retrieval
|
|
79
86
|
- **MCP** - stdio, JSON-RPC HTTP, official SDK transports
|
|
@@ -87,7 +94,7 @@ async for event in agent.stream("Build a REST API for user management"):
|
|
|
87
94
|
| --- | --- |
|
|
88
95
|
| ReAct loop | `Executor` |
|
|
89
96
|
| POR planning | `auto` / `react_only` / `por_first` |
|
|
90
|
-
| Durable workflow | `
|
|
97
|
+
| Durable workflow | `MemoryWorkflowRuntime` by default; optional `BurrWorkflowRuntime` via `axc-agent-engine[workflow]` |
|
|
91
98
|
| Plugin system | spec registry + YAML-driven loading |
|
|
92
99
|
| LLM provider | provider protocol + OpenAI-compatible HTTP |
|
|
93
100
|
| Parallel tools | read concurrent, write serial |
|
|
@@ -171,13 +178,13 @@ Notes:
|
|
|
171
178
|
|
|
172
179
|
## Provider Configuration
|
|
173
180
|
|
|
174
|
-
`
|
|
181
|
+
`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`).
|
|
175
182
|
|
|
176
183
|
```python
|
|
177
184
|
from axc_agent_engine import ConcurrencyConfig, Engine, LLMConfig
|
|
178
185
|
from axc_agent_engine.tools.name_mapping import ToolNameMappingConfig
|
|
179
186
|
|
|
180
|
-
|
|
187
|
+
main_model_config = LLMConfig(
|
|
181
188
|
base_url="https://api.openai.com/v1",
|
|
182
189
|
api_key="sk-xxx",
|
|
183
190
|
model="gpt-4o",
|
|
@@ -189,19 +196,14 @@ default_llm = LLMConfig(
|
|
|
189
196
|
)
|
|
190
197
|
|
|
191
198
|
engine = Engine(
|
|
192
|
-
default_llm=default_llm,
|
|
193
199
|
concurrency=ConcurrencyConfig(
|
|
194
200
|
max_engine_concurrent_runs=128,
|
|
195
201
|
queue_timeout=30,
|
|
196
202
|
),
|
|
197
203
|
)
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
```python
|
|
203
|
-
engine.provider_registry.register("fast", fast_provider)
|
|
204
|
-
agent = engine.load_agent("./agents/my_agent.yaml", default_llm="fast")
|
|
204
|
+
agent = engine.load_agent_template("./agents/my_agent.yaml").instantiate(
|
|
205
|
+
models=AgentModels(default=OpenAIClient(main_model_config)),
|
|
206
|
+
)
|
|
205
207
|
```
|
|
206
208
|
|
|
207
209
|
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.
|
|
@@ -223,13 +225,14 @@ Clients should not assume full OpenAI parity; call `/v1/capabilities` first. See
|
|
|
223
225
|
Capabilities not required by a basic agent live in plugins. The default `Engine.plugin_registry` is empty; both built-in and custom plugins must be registered explicitly.
|
|
224
226
|
|
|
225
227
|
```python
|
|
226
|
-
from axc_agent_engine import
|
|
228
|
+
from axc_agent_engine import AgentModels, Engine, PluginRegistry
|
|
227
229
|
from axc_agent_engine.plugins.builtin import BuiltinToolsPlugin, MemoryPlugin
|
|
228
230
|
from my_project.plugins import MyCustomPlugin
|
|
229
231
|
|
|
230
232
|
registry = PluginRegistry()
|
|
231
233
|
registry.register_many([BuiltinToolsPlugin, MemoryPlugin, MyCustomPlugin])
|
|
232
|
-
engine = Engine(
|
|
234
|
+
engine = Engine(plugin_registry=registry)
|
|
235
|
+
agent = engine.load_agent_template("./agents/my_agent.yaml").instantiate(models=AgentModels(default=llm))
|
|
233
236
|
```
|
|
234
237
|
|
|
235
238
|
| Plugin | Purpose |
|
|
@@ -271,15 +274,16 @@ Sidecars live under `axc_agent_engine.sidecar` and are invoked explicitly by the
|
|
|
271
274
|
from axc_agent_engine.sidecar import OrchestrationTaskService
|
|
272
275
|
from axc_agent_engine.storage.in_memory import InMemoryMessageBus
|
|
273
276
|
|
|
274
|
-
engine = Engine(
|
|
275
|
-
|
|
276
|
-
|
|
277
|
+
engine = Engine(message_bus=InMemoryMessageBus())
|
|
278
|
+
models = AgentModels(default=main_model, utility=utility_model)
|
|
279
|
+
red = engine.load_agent_template("./agents/red.yaml").instantiate(models=models)
|
|
280
|
+
blue = engine.load_agent_template("./agents/blue.yaml").instantiate(models=models)
|
|
277
281
|
|
|
278
282
|
service = OrchestrationTaskService(
|
|
279
283
|
agent_getter=engine.get_agent,
|
|
280
284
|
agent_lister=engine.list_agents,
|
|
281
285
|
dispatcher=engine._dispatcher,
|
|
282
|
-
|
|
286
|
+
utility_model=utility_model,
|
|
283
287
|
)
|
|
284
288
|
|
|
285
289
|
task = await service.run_task(
|
|
@@ -297,8 +301,8 @@ task = await service.run_task(
|
|
|
297
301
|
```mermaid
|
|
298
302
|
flowchart TD
|
|
299
303
|
A["Application creates Engine"] --> B["Inject providers and services"]
|
|
300
|
-
B --> C["Engine.
|
|
301
|
-
C --> D["
|
|
304
|
+
B --> C["Engine.load_agent_template(agent.yaml)"]
|
|
305
|
+
C --> D["AgentTemplate.instantiate(models, mounts)"]
|
|
302
306
|
D --> E["Build PluginContext"]
|
|
303
307
|
E --> F["Load enabled plugins"]
|
|
304
308
|
F --> G["Plugin.initialize()"]
|
|
@@ -314,27 +318,48 @@ flowchart TD
|
|
|
314
318
|
A["User message"] --> B["Agent.chat() / Agent.stream()"]
|
|
315
319
|
B --> C["ExecutionContext"]
|
|
316
320
|
C --> D["Executor"]
|
|
317
|
-
D --> E["
|
|
318
|
-
|
|
319
|
-
F --> G["
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
J
|
|
324
|
-
|
|
325
|
-
|
|
321
|
+
D --> E["ExecutionRunLifecycle + checkpoints"]
|
|
322
|
+
D --> F["ReActKernel"]
|
|
323
|
+
F --> G["MessageStore"]
|
|
324
|
+
F --> H["Plugin hooks"]
|
|
325
|
+
F --> I["LLMCaller"]
|
|
326
|
+
I --> J["TransactionRouter"]
|
|
327
|
+
J -->|final answer| K["done event"]
|
|
328
|
+
J -->|tool calls| L["Tool pipeline"]
|
|
329
|
+
L --> G
|
|
330
|
+
J -->|plan or por_first| M["PORRunner"]
|
|
331
|
+
M --> N["PORGraphRuntime (pydantic_graph)"]
|
|
332
|
+
N --> K
|
|
326
333
|
```
|
|
327
334
|
|
|
328
335
|
## Plugin Development
|
|
329
336
|
|
|
330
337
|
```python
|
|
331
338
|
from axc_agent_engine import BasePlugin, ToolDefinition, ToolOutput
|
|
339
|
+
from axc_agent_engine.plugins.config_schema import config_field, config_schema
|
|
332
340
|
|
|
333
341
|
class MyPlugin(BasePlugin):
|
|
334
342
|
name = "my_plugin"
|
|
335
343
|
display_name = "My Plugin"
|
|
336
344
|
priority = 30
|
|
337
345
|
phase = "core"
|
|
346
|
+
config_schema = config_schema(
|
|
347
|
+
"my_plugin",
|
|
348
|
+
"My Plugin",
|
|
349
|
+
"Configuration for MyPlugin.",
|
|
350
|
+
[
|
|
351
|
+
config_field(
|
|
352
|
+
"api_url",
|
|
353
|
+
"接口地址",
|
|
354
|
+
"string",
|
|
355
|
+
"插件调用的后端接口地址。",
|
|
356
|
+
label_en="API URL",
|
|
357
|
+
default="http://localhost:5000",
|
|
358
|
+
required=True,
|
|
359
|
+
),
|
|
360
|
+
],
|
|
361
|
+
display_name_en="My Plugin",
|
|
362
|
+
)
|
|
338
363
|
|
|
339
364
|
def initialize(self, config: dict, ctx) -> None:
|
|
340
365
|
super().initialize(config, ctx)
|
|
@@ -355,7 +380,9 @@ class MyPlugin(BasePlugin):
|
|
|
355
380
|
return ToolOutput.text(f"Result for {args['query']}")
|
|
356
381
|
```
|
|
357
382
|
|
|
358
|
-
Plugins must inherit `BasePlugin`,
|
|
383
|
+
Plugins must inherit `BasePlugin`, declare `config_schema`, and return tools as `ToolDefinition` instances. `ToolRegistry` does not accept dicts.
|
|
384
|
+
|
|
385
|
+
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)`.
|
|
359
386
|
|
|
360
387
|
```yaml
|
|
361
388
|
plugins:
|
|
@@ -380,11 +407,14 @@ CLI logging flags are global and must be placed before the subcommand.
|
|
|
380
407
|
|
|
381
408
|
## Design Decisions
|
|
382
409
|
|
|
383
|
-
- **Engine core = Executor + LLMCaller.** Reads Agent YAML, calls LLM providers, runs the loop, emits events/results.
|
|
410
|
+
- **Engine core = Executor + ReActKernel + LLMCaller.** Reads Agent YAML, calls LLM providers, runs the ReAct loop, emits events/results.
|
|
411
|
+
- **POR state transitions live in pydantic-graph.** `PORGraphRuntime` owns the plan/step/observe/replan loop; services execute work and persist checkpoints.
|
|
412
|
+
- **Workflow resume is a runtime boundary.** `MemoryWorkflowRuntime` is the default; `BurrWorkflowRuntime` is selected when the optional workflow dependency is installed.
|
|
384
413
|
- **Plugins are the runtime extension boundary.** Knowledge, memory, graph, MCP, output repair, skills belong in plugins.
|
|
385
414
|
- **Orchestration is sidecar.** Multi-agent sessions, simulation, mode adapters are host-driven.
|
|
386
415
|
- **Evaluation is sidecar.** EvalRunner, stores, matchers, reports are host-driven test framework pieces.
|
|
387
416
|
- **Registration is not loading.** The spec registry is the full plugin table; agents load only YAML-enabled plugins.
|
|
417
|
+
- **Plugin schema is mandatory.** A plugin without `config_schema` cannot be registered.
|
|
388
418
|
- **Tools come from plugins.** The engine core embeds no business tools.
|
|
389
419
|
- **Tools must return `ToolOutput`.** Non-`ToolOutput` returns are rejected.
|
|
390
420
|
- **Tool definitions must be `ToolDefinition`.** No dicts.
|
|
@@ -396,4 +426,7 @@ CLI logging flags are global and must be placed before the subcommand.
|
|
|
396
426
|
|
|
397
427
|
```bash
|
|
398
428
|
python3 -m pytest -q
|
|
429
|
+
python3 -m pytest --cov --cov-report=term-missing:skip-covered -q
|
|
399
430
|
```
|
|
431
|
+
|
|
432
|
+
The release gate requires at least 90% total coverage.
|