axc-agent-engine 2.3.2__tar.gz → 3.0.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-3.0.0/CHANGELOG.md +29 -0
- {axc_agent_engine-2.3.2 → axc_agent_engine-3.0.0}/PKG-INFO +4 -4
- {axc_agent_engine-2.3.2 → axc_agent_engine-3.0.0}/README.md +2 -2
- {axc_agent_engine-2.3.2 → axc_agent_engine-3.0.0}/README.zh-CN.md +2 -2
- {axc_agent_engine-2.3.2 → axc_agent_engine-3.0.0}/axc_agent_engine/_version.py +1 -1
- {axc_agent_engine-2.3.2 → axc_agent_engine-3.0.0}/axc_agent_engine/agent.py +1 -1
- {axc_agent_engine-2.3.2 → axc_agent_engine-3.0.0}/axc_agent_engine/api/app.py +1 -1
- {axc_agent_engine-2.3.2 → axc_agent_engine-3.0.0}/axc_agent_engine/api/routes/chat.py +3 -5
- {axc_agent_engine-2.3.2 → axc_agent_engine-3.0.0}/axc_agent_engine/core/session_manager.py +19 -6
- {axc_agent_engine-2.3.2 → axc_agent_engine-3.0.0}/axc_agent_engine/engine.py +1 -2
- {axc_agent_engine-2.3.2 → axc_agent_engine-3.0.0}/axc_agent_engine/planning/router.py +7 -10
- {axc_agent_engine-2.3.2 → axc_agent_engine-3.0.0}/axc_agent_engine/plugins/builtin/compress/context/packer.py +23 -10
- {axc_agent_engine-2.3.2 → axc_agent_engine-3.0.0}/axc_agent_engine/plugins/builtin/mcp/support/connection.py +1 -1
- {axc_agent_engine-2.3.2 → axc_agent_engine-3.0.0}/axc_agent_engine/storage/in_memory.py +17 -10
- {axc_agent_engine-2.3.2 → axc_agent_engine-3.0.0}/axc_agent_engine/storage/protocols.py +6 -5
- {axc_agent_engine-2.3.2 → axc_agent_engine-3.0.0}/docs/ARCHITECTURE.md +7 -2
- {axc_agent_engine-2.3.2 → axc_agent_engine-3.0.0}/docs/SECURITY_MODEL.md +5 -0
- {axc_agent_engine-2.3.2 → axc_agent_engine-3.0.0}/pyproject.toml +1 -1
- axc_agent_engine-3.0.0/tests/api/test_api_engine_integration.py +144 -0
- {axc_agent_engine-2.3.2 → axc_agent_engine-3.0.0}/tests/core/test_context_layers.py +28 -6
- {axc_agent_engine-2.3.2 → axc_agent_engine-3.0.0}/tests/core/test_core.py +35 -20
- {axc_agent_engine-2.3.2 → axc_agent_engine-3.0.0}/tests/core/test_engine_body_edges.py +5 -5
- {axc_agent_engine-2.3.2 → axc_agent_engine-3.0.0}/tests/core/test_executor_checkpoint.py +7 -0
- {axc_agent_engine-2.3.2 → axc_agent_engine-3.0.0}/tests/engine/test_engine.py +122 -0
- {axc_agent_engine-2.3.2 → axc_agent_engine-3.0.0}/tests/engine/test_engine_dispatcher_lifecycle.py +41 -1
- {axc_agent_engine-2.3.2 → axc_agent_engine-3.0.0}/tests/engine/test_integration_flow.py +21 -5
- axc_agent_engine-3.0.0/tests/planning/test_routing_integration.py +159 -0
- {axc_agent_engine-2.3.2 → axc_agent_engine-3.0.0}/tests/plugins/test_mcp_transports.py +6 -5
- {axc_agent_engine-2.3.2 → axc_agent_engine-3.0.0}/tests/storage/test_storage.py +30 -10
- {axc_agent_engine-2.3.2 → axc_agent_engine-3.0.0}/.gitignore +0 -0
- {axc_agent_engine-2.3.2 → axc_agent_engine-3.0.0}/CODE_OF_CONDUCT.md +0 -0
- {axc_agent_engine-2.3.2 → axc_agent_engine-3.0.0}/CONTRIBUTING.md +0 -0
- {axc_agent_engine-2.3.2 → axc_agent_engine-3.0.0}/ENGINE_DEVELOPMENT_RULES.md +0 -0
- {axc_agent_engine-2.3.2 → axc_agent_engine-3.0.0}/LICENSE +0 -0
- {axc_agent_engine-2.3.2 → axc_agent_engine-3.0.0}/Makefile +0 -0
- {axc_agent_engine-2.3.2 → axc_agent_engine-3.0.0}/NOTICE +0 -0
- {axc_agent_engine-2.3.2 → axc_agent_engine-3.0.0}/SECURITY.md +0 -0
- {axc_agent_engine-2.3.2 → axc_agent_engine-3.0.0}/axc_agent_engine/__init__.py +0 -0
- {axc_agent_engine-2.3.2 → axc_agent_engine-3.0.0}/axc_agent_engine/api/__init__.py +0 -0
- {axc_agent_engine-2.3.2 → axc_agent_engine-3.0.0}/axc_agent_engine/api/deps.py +0 -0
- {axc_agent_engine-2.3.2 → axc_agent_engine-3.0.0}/axc_agent_engine/api/routes/__init__.py +0 -0
- {axc_agent_engine-2.3.2 → axc_agent_engine-3.0.0}/axc_agent_engine/api/routes/health.py +0 -0
- {axc_agent_engine-2.3.2 → axc_agent_engine-3.0.0}/axc_agent_engine/cli.py +0 -0
- {axc_agent_engine-2.3.2 → axc_agent_engine-3.0.0}/axc_agent_engine/core/__init__.py +0 -0
- {axc_agent_engine-2.3.2 → axc_agent_engine-3.0.0}/axc_agent_engine/core/constants.py +0 -0
- {axc_agent_engine-2.3.2 → axc_agent_engine-3.0.0}/axc_agent_engine/core/context.py +0 -0
- {axc_agent_engine-2.3.2 → axc_agent_engine-3.0.0}/axc_agent_engine/core/dispatcher.py +0 -0
- {axc_agent_engine-2.3.2 → axc_agent_engine-3.0.0}/axc_agent_engine/core/errors.py +0 -0
- {axc_agent_engine-2.3.2 → axc_agent_engine-3.0.0}/axc_agent_engine/core/events.py +0 -0
- {axc_agent_engine-2.3.2 → axc_agent_engine-3.0.0}/axc_agent_engine/core/execution_run.py +0 -0
- {axc_agent_engine-2.3.2 → axc_agent_engine-3.0.0}/axc_agent_engine/core/executor.py +0 -0
- {axc_agent_engine-2.3.2 → axc_agent_engine-3.0.0}/axc_agent_engine/core/input_messages.py +0 -0
- {axc_agent_engine-2.3.2 → axc_agent_engine-3.0.0}/axc_agent_engine/core/llm_caller.py +0 -0
- {axc_agent_engine-2.3.2 → axc_agent_engine-3.0.0}/axc_agent_engine/core/message_store.py +0 -0
- {axc_agent_engine-2.3.2 → axc_agent_engine-3.0.0}/axc_agent_engine/core/plugin_manager.py +0 -0
- {axc_agent_engine-2.3.2 → axc_agent_engine-3.0.0}/axc_agent_engine/core/react_kernel.py +0 -0
- {axc_agent_engine-2.3.2 → axc_agent_engine-3.0.0}/axc_agent_engine/core/react_loop.py +0 -0
- {axc_agent_engine-2.3.2 → axc_agent_engine-3.0.0}/axc_agent_engine/core/run_context.py +0 -0
- {axc_agent_engine-2.3.2 → axc_agent_engine-3.0.0}/axc_agent_engine/core/run_request.py +0 -0
- {axc_agent_engine-2.3.2 → axc_agent_engine-3.0.0}/axc_agent_engine/core/schema.py +0 -0
- {axc_agent_engine-2.3.2 → axc_agent_engine-3.0.0}/axc_agent_engine/core/session.py +0 -0
- {axc_agent_engine-2.3.2 → axc_agent_engine-3.0.0}/axc_agent_engine/core/stream_aggregator.py +0 -0
- {axc_agent_engine-2.3.2 → axc_agent_engine-3.0.0}/axc_agent_engine/core/stream_sink.py +0 -0
- {axc_agent_engine-2.3.2 → axc_agent_engine-3.0.0}/axc_agent_engine/llm/__init__.py +0 -0
- {axc_agent_engine-2.3.2 → axc_agent_engine-3.0.0}/axc_agent_engine/llm/client.py +0 -0
- {axc_agent_engine-2.3.2 → axc_agent_engine-3.0.0}/axc_agent_engine/llm/config.py +0 -0
- {axc_agent_engine-2.3.2 → axc_agent_engine-3.0.0}/axc_agent_engine/llm/provider.py +0 -0
- {axc_agent_engine-2.3.2 → axc_agent_engine-3.0.0}/axc_agent_engine/llm/rate_limited.py +0 -0
- {axc_agent_engine-2.3.2 → axc_agent_engine-3.0.0}/axc_agent_engine/observability/__init__.py +0 -0
- {axc_agent_engine-2.3.2 → axc_agent_engine-3.0.0}/axc_agent_engine/observability/audit.py +0 -0
- {axc_agent_engine-2.3.2 → axc_agent_engine-3.0.0}/axc_agent_engine/observability/logging.py +0 -0
- {axc_agent_engine-2.3.2 → axc_agent_engine-3.0.0}/axc_agent_engine/planning/__init__.py +0 -0
- {axc_agent_engine-2.3.2 → axc_agent_engine-3.0.0}/axc_agent_engine/planning/checkpointing.py +0 -0
- {axc_agent_engine-2.3.2 → axc_agent_engine-3.0.0}/axc_agent_engine/planning/graph_nodes.py +0 -0
- {axc_agent_engine-2.3.2 → axc_agent_engine-3.0.0}/axc_agent_engine/planning/graph_runtime.py +0 -0
- {axc_agent_engine-2.3.2 → axc_agent_engine-3.0.0}/axc_agent_engine/planning/graph_state.py +0 -0
- {axc_agent_engine-2.3.2 → axc_agent_engine-3.0.0}/axc_agent_engine/planning/observer.py +0 -0
- {axc_agent_engine-2.3.2 → axc_agent_engine-3.0.0}/axc_agent_engine/planning/planner.py +0 -0
- {axc_agent_engine-2.3.2 → axc_agent_engine-3.0.0}/axc_agent_engine/planning/planning_service.py +0 -0
- {axc_agent_engine-2.3.2 → axc_agent_engine-3.0.0}/axc_agent_engine/planning/por_runner.py +0 -0
- {axc_agent_engine-2.3.2 → axc_agent_engine-3.0.0}/axc_agent_engine/planning/prompts.py +0 -0
- {axc_agent_engine-2.3.2 → axc_agent_engine-3.0.0}/axc_agent_engine/planning/replanner.py +0 -0
- {axc_agent_engine-2.3.2 → axc_agent_engine-3.0.0}/axc_agent_engine/planning/runtime.py +0 -0
- {axc_agent_engine-2.3.2 → axc_agent_engine-3.0.0}/axc_agent_engine/planning/scheduler.py +0 -0
- {axc_agent_engine-2.3.2 → axc_agent_engine-3.0.0}/axc_agent_engine/planning/step_executor.py +0 -0
- {axc_agent_engine-2.3.2 → axc_agent_engine-3.0.0}/axc_agent_engine/plugins/__init__.py +0 -0
- {axc_agent_engine-2.3.2 → axc_agent_engine-3.0.0}/axc_agent_engine/plugins/base.py +0 -0
- {axc_agent_engine-2.3.2 → axc_agent_engine-3.0.0}/axc_agent_engine/plugins/builtin/__init__.py +0 -0
- {axc_agent_engine-2.3.2 → axc_agent_engine-3.0.0}/axc_agent_engine/plugins/builtin/builtin_tools/__init__.py +0 -0
- {axc_agent_engine-2.3.2 → axc_agent_engine-3.0.0}/axc_agent_engine/plugins/builtin/builtin_tools/artifact_store.py +0 -0
- {axc_agent_engine-2.3.2 → axc_agent_engine-3.0.0}/axc_agent_engine/plugins/builtin/builtin_tools/artifact_tools.py +0 -0
- {axc_agent_engine-2.3.2 → axc_agent_engine-3.0.0}/axc_agent_engine/plugins/builtin/builtin_tools/command_tools.py +0 -0
- {axc_agent_engine-2.3.2 → axc_agent_engine-3.0.0}/axc_agent_engine/plugins/builtin/builtin_tools/file_tools.py +0 -0
- {axc_agent_engine-2.3.2 → axc_agent_engine-3.0.0}/axc_agent_engine/plugins/builtin/builtin_tools/http_tools.py +0 -0
- {axc_agent_engine-2.3.2 → axc_agent_engine-3.0.0}/axc_agent_engine/plugins/builtin/builtin_tools/path_policy.py +0 -0
- {axc_agent_engine-2.3.2 → axc_agent_engine-3.0.0}/axc_agent_engine/plugins/builtin/builtin_tools/plugin.py +0 -0
- {axc_agent_engine-2.3.2 → axc_agent_engine-3.0.0}/axc_agent_engine/plugins/builtin/builtin_tools/presenter.py +0 -0
- {axc_agent_engine-2.3.2 → axc_agent_engine-3.0.0}/axc_agent_engine/plugins/builtin/builtin_tools/registry.py +0 -0
- {axc_agent_engine-2.3.2 → axc_agent_engine-3.0.0}/axc_agent_engine/plugins/builtin/builtin_tools/support.py +0 -0
- {axc_agent_engine-2.3.2 → axc_agent_engine-3.0.0}/axc_agent_engine/plugins/builtin/builtin_tools/tool_definitions.py +0 -0
- {axc_agent_engine-2.3.2 → axc_agent_engine-3.0.0}/axc_agent_engine/plugins/builtin/collaboration/__init__.py +0 -0
- {axc_agent_engine-2.3.2 → axc_agent_engine-3.0.0}/axc_agent_engine/plugins/builtin/collaboration/plugin.py +0 -0
- {axc_agent_engine-2.3.2 → axc_agent_engine-3.0.0}/axc_agent_engine/plugins/builtin/common.py +0 -0
- {axc_agent_engine-2.3.2 → axc_agent_engine-3.0.0}/axc_agent_engine/plugins/builtin/compress/__init__.py +0 -0
- {axc_agent_engine-2.3.2 → axc_agent_engine-3.0.0}/axc_agent_engine/plugins/builtin/compress/context/__init__.py +0 -0
- {axc_agent_engine-2.3.2 → axc_agent_engine-3.0.0}/axc_agent_engine/plugins/builtin/compress/context/boundary.py +0 -0
- {axc_agent_engine-2.3.2 → axc_agent_engine-3.0.0}/axc_agent_engine/plugins/builtin/compress/context/file_cache.py +0 -0
- {axc_agent_engine-2.3.2 → axc_agent_engine-3.0.0}/axc_agent_engine/plugins/builtin/compress/context/models.py +0 -0
- {axc_agent_engine-2.3.2 → axc_agent_engine-3.0.0}/axc_agent_engine/plugins/builtin/compress/context/normalizer.py +0 -0
- {axc_agent_engine-2.3.2 → axc_agent_engine-3.0.0}/axc_agent_engine/plugins/builtin/compress/context/recall.py +0 -0
- {axc_agent_engine-2.3.2 → axc_agent_engine-3.0.0}/axc_agent_engine/plugins/builtin/compress/context/recent_window.py +0 -0
- {axc_agent_engine-2.3.2 → axc_agent_engine-3.0.0}/axc_agent_engine/plugins/builtin/compress/context/scoring.py +0 -0
- {axc_agent_engine-2.3.2 → axc_agent_engine-3.0.0}/axc_agent_engine/plugins/builtin/compress/context/summarizer.py +0 -0
- {axc_agent_engine-2.3.2 → axc_agent_engine-3.0.0}/axc_agent_engine/plugins/builtin/compress/context/tool_result.py +0 -0
- {axc_agent_engine-2.3.2 → axc_agent_engine-3.0.0}/axc_agent_engine/plugins/builtin/compress/context/tool_summary.py +0 -0
- {axc_agent_engine-2.3.2 → axc_agent_engine-3.0.0}/axc_agent_engine/plugins/builtin/compress/plugin.py +0 -0
- {axc_agent_engine-2.3.2 → axc_agent_engine-3.0.0}/axc_agent_engine/plugins/builtin/compress/prompts.py +0 -0
- {axc_agent_engine-2.3.2 → axc_agent_engine-3.0.0}/axc_agent_engine/plugins/builtin/config_schemas.py +0 -0
- {axc_agent_engine-2.3.2 → axc_agent_engine-3.0.0}/axc_agent_engine/plugins/builtin/cost_statistics/__init__.py +0 -0
- {axc_agent_engine-2.3.2 → axc_agent_engine-3.0.0}/axc_agent_engine/plugins/builtin/cost_statistics/plugin.py +0 -0
- {axc_agent_engine-2.3.2 → axc_agent_engine-3.0.0}/axc_agent_engine/plugins/builtin/graph/__init__.py +0 -0
- {axc_agent_engine-2.3.2 → axc_agent_engine-3.0.0}/axc_agent_engine/plugins/builtin/graph/audit.py +0 -0
- {axc_agent_engine-2.3.2 → axc_agent_engine-3.0.0}/axc_agent_engine/plugins/builtin/graph/config.py +0 -0
- {axc_agent_engine-2.3.2 → axc_agent_engine-3.0.0}/axc_agent_engine/plugins/builtin/graph/plugin.py +0 -0
- {axc_agent_engine-2.3.2 → axc_agent_engine-3.0.0}/axc_agent_engine/plugins/builtin/graph/policy.py +0 -0
- {axc_agent_engine-2.3.2 → axc_agent_engine-3.0.0}/axc_agent_engine/plugins/builtin/graph/presenter.py +0 -0
- {axc_agent_engine-2.3.2 → axc_agent_engine-3.0.0}/axc_agent_engine/plugins/builtin/graph/service.py +0 -0
- {axc_agent_engine-2.3.2 → axc_agent_engine-3.0.0}/axc_agent_engine/plugins/builtin/graph/source_loader.py +0 -0
- {axc_agent_engine-2.3.2 → axc_agent_engine-3.0.0}/axc_agent_engine/plugins/builtin/graph/support.py +0 -0
- {axc_agent_engine-2.3.2 → axc_agent_engine-3.0.0}/axc_agent_engine/plugins/builtin/graph/tool_factory.py +0 -0
- {axc_agent_engine-2.3.2 → axc_agent_engine-3.0.0}/axc_agent_engine/plugins/builtin/graph/tool_handlers.py +0 -0
- {axc_agent_engine-2.3.2 → axc_agent_engine-3.0.0}/axc_agent_engine/plugins/builtin/graph/utils.py +0 -0
- {axc_agent_engine-2.3.2 → axc_agent_engine-3.0.0}/axc_agent_engine/plugins/builtin/hooks/__init__.py +0 -0
- {axc_agent_engine-2.3.2 → axc_agent_engine-3.0.0}/axc_agent_engine/plugins/builtin/hooks/plugin.py +0 -0
- {axc_agent_engine-2.3.2 → axc_agent_engine-3.0.0}/axc_agent_engine/plugins/builtin/human_in_the_loop/__init__.py +0 -0
- {axc_agent_engine-2.3.2 → axc_agent_engine-3.0.0}/axc_agent_engine/plugins/builtin/human_in_the_loop/plugin.py +0 -0
- {axc_agent_engine-2.3.2 → axc_agent_engine-3.0.0}/axc_agent_engine/plugins/builtin/knowledge/__init__.py +0 -0
- {axc_agent_engine-2.3.2 → axc_agent_engine-3.0.0}/axc_agent_engine/plugins/builtin/knowledge/plugin.py +0 -0
- {axc_agent_engine-2.3.2 → axc_agent_engine-3.0.0}/axc_agent_engine/plugins/builtin/knowledge/support/__init__.py +0 -0
- {axc_agent_engine-2.3.2 → axc_agent_engine-3.0.0}/axc_agent_engine/plugins/builtin/knowledge/support/chunker.py +0 -0
- {axc_agent_engine-2.3.2 → axc_agent_engine-3.0.0}/axc_agent_engine/plugins/builtin/knowledge/support/ingestion.py +0 -0
- {axc_agent_engine-2.3.2 → axc_agent_engine-3.0.0}/axc_agent_engine/plugins/builtin/knowledge/support/retrieval.py +0 -0
- {axc_agent_engine-2.3.2 → axc_agent_engine-3.0.0}/axc_agent_engine/plugins/builtin/mcp/__init__.py +0 -0
- {axc_agent_engine-2.3.2 → axc_agent_engine-3.0.0}/axc_agent_engine/plugins/builtin/mcp/plugin.py +0 -0
- {axc_agent_engine-2.3.2 → axc_agent_engine-3.0.0}/axc_agent_engine/plugins/builtin/mcp/support/__init__.py +0 -0
- {axc_agent_engine-2.3.2 → axc_agent_engine-3.0.0}/axc_agent_engine/plugins/builtin/mcp/support/client.py +0 -0
- {axc_agent_engine-2.3.2 → axc_agent_engine-3.0.0}/axc_agent_engine/plugins/builtin/mcp/support/models.py +0 -0
- {axc_agent_engine-2.3.2 → axc_agent_engine-3.0.0}/axc_agent_engine/plugins/builtin/mcp/support/normalization.py +0 -0
- {axc_agent_engine-2.3.2 → axc_agent_engine-3.0.0}/axc_agent_engine/plugins/builtin/mcp/support/transports/__init__.py +0 -0
- {axc_agent_engine-2.3.2 → axc_agent_engine-3.0.0}/axc_agent_engine/plugins/builtin/mcp/support/transports/base.py +0 -0
- {axc_agent_engine-2.3.2 → axc_agent_engine-3.0.0}/axc_agent_engine/plugins/builtin/mcp/support/transports/factory.py +0 -0
- {axc_agent_engine-2.3.2 → axc_agent_engine-3.0.0}/axc_agent_engine/plugins/builtin/mcp/support/transports/http.py +0 -0
- {axc_agent_engine-2.3.2 → axc_agent_engine-3.0.0}/axc_agent_engine/plugins/builtin/mcp/support/transports/sdk.py +0 -0
- {axc_agent_engine-2.3.2 → axc_agent_engine-3.0.0}/axc_agent_engine/plugins/builtin/mcp/support/transports/stdio.py +0 -0
- {axc_agent_engine-2.3.2 → axc_agent_engine-3.0.0}/axc_agent_engine/plugins/builtin/memory/__init__.py +0 -0
- {axc_agent_engine-2.3.2 → axc_agent_engine-3.0.0}/axc_agent_engine/plugins/builtin/memory/plugin.py +0 -0
- {axc_agent_engine-2.3.2 → axc_agent_engine-3.0.0}/axc_agent_engine/plugins/builtin/memory/prompts.py +0 -0
- {axc_agent_engine-2.3.2 → axc_agent_engine-3.0.0}/axc_agent_engine/plugins/builtin/memory/support/__init__.py +0 -0
- {axc_agent_engine-2.3.2 → axc_agent_engine-3.0.0}/axc_agent_engine/plugins/builtin/memory/support/graph.py +0 -0
- {axc_agent_engine-2.3.2 → axc_agent_engine-3.0.0}/axc_agent_engine/plugins/builtin/memory/support/retrieval.py +0 -0
- {axc_agent_engine-2.3.2 → axc_agent_engine-3.0.0}/axc_agent_engine/plugins/builtin/memory/support/service.py +0 -0
- {axc_agent_engine-2.3.2 → axc_agent_engine-3.0.0}/axc_agent_engine/plugins/builtin/output_format/__init__.py +0 -0
- {axc_agent_engine-2.3.2 → axc_agent_engine-3.0.0}/axc_agent_engine/plugins/builtin/output_format/plugin.py +0 -0
- {axc_agent_engine-2.3.2 → axc_agent_engine-3.0.0}/axc_agent_engine/plugins/builtin/output_format/support/__init__.py +0 -0
- {axc_agent_engine-2.3.2 → axc_agent_engine-3.0.0}/axc_agent_engine/plugins/builtin/output_format/support/service.py +0 -0
- {axc_agent_engine-2.3.2 → axc_agent_engine-3.0.0}/axc_agent_engine/plugins/builtin/post_process/__init__.py +0 -0
- {axc_agent_engine-2.3.2 → axc_agent_engine-3.0.0}/axc_agent_engine/plugins/builtin/post_process/plugin.py +0 -0
- {axc_agent_engine-2.3.2 → axc_agent_engine-3.0.0}/axc_agent_engine/plugins/builtin/reflexion/__init__.py +0 -0
- {axc_agent_engine-2.3.2 → axc_agent_engine-3.0.0}/axc_agent_engine/plugins/builtin/reflexion/plugin.py +0 -0
- {axc_agent_engine-2.3.2 → axc_agent_engine-3.0.0}/axc_agent_engine/plugins/builtin/reflexion/prompts.py +0 -0
- {axc_agent_engine-2.3.2 → axc_agent_engine-3.0.0}/axc_agent_engine/plugins/builtin/registry.py +0 -0
- {axc_agent_engine-2.3.2 → axc_agent_engine-3.0.0}/axc_agent_engine/plugins/builtin/repetition_guard/__init__.py +0 -0
- {axc_agent_engine-2.3.2 → axc_agent_engine-3.0.0}/axc_agent_engine/plugins/builtin/repetition_guard/plugin.py +0 -0
- {axc_agent_engine-2.3.2 → axc_agent_engine-3.0.0}/axc_agent_engine/plugins/builtin/risk_guard/__init__.py +0 -0
- {axc_agent_engine-2.3.2 → axc_agent_engine-3.0.0}/axc_agent_engine/plugins/builtin/risk_guard/plugin.py +0 -0
- {axc_agent_engine-2.3.2 → axc_agent_engine-3.0.0}/axc_agent_engine/plugins/builtin/safety/__init__.py +0 -0
- {axc_agent_engine-2.3.2 → axc_agent_engine-3.0.0}/axc_agent_engine/plugins/builtin/safety/plugin.py +0 -0
- {axc_agent_engine-2.3.2 → axc_agent_engine-3.0.0}/axc_agent_engine/plugins/builtin/skill/__init__.py +0 -0
- {axc_agent_engine-2.3.2 → axc_agent_engine-3.0.0}/axc_agent_engine/plugins/builtin/skill/plugin.py +0 -0
- {axc_agent_engine-2.3.2 → axc_agent_engine-3.0.0}/axc_agent_engine/plugins/builtin/swarm/__init__.py +0 -0
- {axc_agent_engine-2.3.2 → axc_agent_engine-3.0.0}/axc_agent_engine/plugins/builtin/swarm/plugin.py +0 -0
- {axc_agent_engine-2.3.2 → axc_agent_engine-3.0.0}/axc_agent_engine/plugins/builtin/tracing/__init__.py +0 -0
- {axc_agent_engine-2.3.2 → axc_agent_engine-3.0.0}/axc_agent_engine/plugins/builtin/tracing/plugin.py +0 -0
- {axc_agent_engine-2.3.2 → axc_agent_engine-3.0.0}/axc_agent_engine/plugins/config_schema.py +0 -0
- {axc_agent_engine-2.3.2 → axc_agent_engine-3.0.0}/axc_agent_engine/plugins/context.py +0 -0
- {axc_agent_engine-2.3.2 → axc_agent_engine-3.0.0}/axc_agent_engine/plugins/loader.py +0 -0
- {axc_agent_engine-2.3.2 → axc_agent_engine-3.0.0}/axc_agent_engine/plugins/registry.py +0 -0
- {axc_agent_engine-2.3.2 → axc_agent_engine-3.0.0}/axc_agent_engine/py.typed +0 -0
- {axc_agent_engine-2.3.2 → axc_agent_engine-3.0.0}/axc_agent_engine/runtime/__init__.py +0 -0
- {axc_agent_engine-2.3.2 → axc_agent_engine-3.0.0}/axc_agent_engine/runtime/checkpoint.py +0 -0
- {axc_agent_engine-2.3.2 → axc_agent_engine-3.0.0}/axc_agent_engine/runtime/concurrency.py +0 -0
- {axc_agent_engine-2.3.2 → axc_agent_engine-3.0.0}/axc_agent_engine/runtime/input.py +0 -0
- {axc_agent_engine-2.3.2 → axc_agent_engine-3.0.0}/axc_agent_engine/runtime/policy.py +0 -0
- {axc_agent_engine-2.3.2 → axc_agent_engine-3.0.0}/axc_agent_engine/runtime/resources.py +0 -0
- {axc_agent_engine-2.3.2 → axc_agent_engine-3.0.0}/axc_agent_engine/runtime/risk.py +0 -0
- {axc_agent_engine-2.3.2 → axc_agent_engine-3.0.0}/axc_agent_engine/runtime/run_control.py +0 -0
- {axc_agent_engine-2.3.2 → axc_agent_engine-3.0.0}/axc_agent_engine/runtime/sandbox_code.py +0 -0
- {axc_agent_engine-2.3.2 → axc_agent_engine-3.0.0}/axc_agent_engine/runtime/sandbox_local.py +0 -0
- {axc_agent_engine-2.3.2 → axc_agent_engine-3.0.0}/axc_agent_engine/runtime/sandbox_models.py +0 -0
- {axc_agent_engine-2.3.2 → axc_agent_engine-3.0.0}/axc_agent_engine/runtime/sandbox_policy.py +0 -0
- {axc_agent_engine-2.3.2 → axc_agent_engine-3.0.0}/axc_agent_engine/runtime/sandbox_provider.py +0 -0
- {axc_agent_engine-2.3.2 → axc_agent_engine-3.0.0}/axc_agent_engine/runtime/sandbox_utils.py +0 -0
- {axc_agent_engine-2.3.2 → axc_agent_engine-3.0.0}/axc_agent_engine/runtime/sandbox_workspace.py +0 -0
- {axc_agent_engine-2.3.2 → axc_agent_engine-3.0.0}/axc_agent_engine/runtime/tasks.py +0 -0
- {axc_agent_engine-2.3.2 → axc_agent_engine-3.0.0}/axc_agent_engine/sidecar/README.md +0 -0
- {axc_agent_engine-2.3.2 → axc_agent_engine-3.0.0}/axc_agent_engine/sidecar/__init__.py +0 -0
- {axc_agent_engine-2.3.2 → axc_agent_engine-3.0.0}/axc_agent_engine/sidecar/agent_selector/__init__.py +0 -0
- {axc_agent_engine-2.3.2 → axc_agent_engine-3.0.0}/axc_agent_engine/sidecar/agent_selector/core.py +0 -0
- {axc_agent_engine-2.3.2 → axc_agent_engine-3.0.0}/axc_agent_engine/sidecar/cost_optimizer/__init__.py +0 -0
- {axc_agent_engine-2.3.2 → axc_agent_engine-3.0.0}/axc_agent_engine/sidecar/cost_optimizer/core.py +0 -0
- {axc_agent_engine-2.3.2 → axc_agent_engine-3.0.0}/axc_agent_engine/sidecar/distiller/__init__.py +0 -0
- {axc_agent_engine-2.3.2 → axc_agent_engine-3.0.0}/axc_agent_engine/sidecar/distiller/core.py +0 -0
- {axc_agent_engine-2.3.2 → axc_agent_engine-3.0.0}/axc_agent_engine/sidecar/eval/__init__.py +0 -0
- {axc_agent_engine-2.3.2 → axc_agent_engine-3.0.0}/axc_agent_engine/sidecar/eval/judge.py +0 -0
- {axc_agent_engine-2.3.2 → axc_agent_engine-3.0.0}/axc_agent_engine/sidecar/eval/matcher.py +0 -0
- {axc_agent_engine-2.3.2 → axc_agent_engine-3.0.0}/axc_agent_engine/sidecar/eval/report.py +0 -0
- {axc_agent_engine-2.3.2 → axc_agent_engine-3.0.0}/axc_agent_engine/sidecar/eval/runner.py +0 -0
- {axc_agent_engine-2.3.2 → axc_agent_engine-3.0.0}/axc_agent_engine/sidecar/eval/store.py +0 -0
- {axc_agent_engine-2.3.2 → axc_agent_engine-3.0.0}/axc_agent_engine/sidecar/failure_miner/__init__.py +0 -0
- {axc_agent_engine-2.3.2 → axc_agent_engine-3.0.0}/axc_agent_engine/sidecar/failure_miner/core.py +0 -0
- {axc_agent_engine-2.3.2 → axc_agent_engine-3.0.0}/axc_agent_engine/sidecar/multi_agent/__init__.py +0 -0
- {axc_agent_engine-2.3.2 → axc_agent_engine-3.0.0}/axc_agent_engine/sidecar/multi_agent/events.py +0 -0
- {axc_agent_engine-2.3.2 → axc_agent_engine-3.0.0}/axc_agent_engine/sidecar/multi_agent/modes.py +0 -0
- {axc_agent_engine-2.3.2 → axc_agent_engine-3.0.0}/axc_agent_engine/sidecar/multi_agent/persona.py +0 -0
- {axc_agent_engine-2.3.2 → axc_agent_engine-3.0.0}/axc_agent_engine/sidecar/multi_agent/scheduler/__init__.py +0 -0
- {axc_agent_engine-2.3.2 → axc_agent_engine-3.0.0}/axc_agent_engine/sidecar/multi_agent/scheduler/all_parallel.py +0 -0
- {axc_agent_engine-2.3.2 → axc_agent_engine-3.0.0}/axc_agent_engine/sidecar/multi_agent/scheduler/debate.py +0 -0
- {axc_agent_engine-2.3.2 → axc_agent_engine-3.0.0}/axc_agent_engine/sidecar/multi_agent/scheduler/protocols.py +0 -0
- {axc_agent_engine-2.3.2 → axc_agent_engine-3.0.0}/axc_agent_engine/sidecar/multi_agent/scheduler/redblue.py +0 -0
- {axc_agent_engine-2.3.2 → axc_agent_engine-3.0.0}/axc_agent_engine/sidecar/multi_agent/scheduler/round_robin.py +0 -0
- {axc_agent_engine-2.3.2 → axc_agent_engine-3.0.0}/axc_agent_engine/sidecar/multi_agent/scheduler/supervisor.py +0 -0
- {axc_agent_engine-2.3.2 → axc_agent_engine-3.0.0}/axc_agent_engine/sidecar/multi_agent/session.py +0 -0
- {axc_agent_engine-2.3.2 → axc_agent_engine-3.0.0}/axc_agent_engine/sidecar/multi_agent/shared_context.py +0 -0
- {axc_agent_engine-2.3.2 → axc_agent_engine-3.0.0}/axc_agent_engine/sidecar/multi_agent/simulation_session.py +0 -0
- {axc_agent_engine-2.3.2 → axc_agent_engine-3.0.0}/axc_agent_engine/sidecar/multi_agent/stop_condition/__init__.py +0 -0
- {axc_agent_engine-2.3.2 → axc_agent_engine-3.0.0}/axc_agent_engine/sidecar/multi_agent/stop_condition/causal_chain.py +0 -0
- {axc_agent_engine-2.3.2 → axc_agent_engine-3.0.0}/axc_agent_engine/sidecar/multi_agent/stop_condition/consensus.py +0 -0
- {axc_agent_engine-2.3.2 → axc_agent_engine-3.0.0}/axc_agent_engine/sidecar/multi_agent/stop_condition/goal_reached.py +0 -0
- {axc_agent_engine-2.3.2 → axc_agent_engine-3.0.0}/axc_agent_engine/sidecar/multi_agent/stop_condition/llm_based.py +0 -0
- {axc_agent_engine-2.3.2 → axc_agent_engine-3.0.0}/axc_agent_engine/sidecar/multi_agent/stop_condition/max_rounds.py +0 -0
- {axc_agent_engine-2.3.2 → axc_agent_engine-3.0.0}/axc_agent_engine/sidecar/multi_agent/stop_condition/protocols.py +0 -0
- {axc_agent_engine-2.3.2 → axc_agent_engine-3.0.0}/axc_agent_engine/sidecar/multi_agent/types.py +0 -0
- {axc_agent_engine-2.3.2 → axc_agent_engine-3.0.0}/axc_agent_engine/sidecar/orchestration/__init__.py +0 -0
- {axc_agent_engine-2.3.2 → axc_agent_engine-3.0.0}/axc_agent_engine/sidecar/orchestration/service.py +0 -0
- {axc_agent_engine-2.3.2 → axc_agent_engine-3.0.0}/axc_agent_engine/sidecar/simulation/__init__.py +0 -0
- {axc_agent_engine-2.3.2 → axc_agent_engine-3.0.0}/axc_agent_engine/sidecar/simulation/action_parser.py +0 -0
- {axc_agent_engine-2.3.2 → axc_agent_engine-3.0.0}/axc_agent_engine/sidecar/simulation/adapters.py +0 -0
- {axc_agent_engine-2.3.2 → axc_agent_engine-3.0.0}/axc_agent_engine/sidecar/simulation/defaults.py +0 -0
- {axc_agent_engine-2.3.2 → axc_agent_engine-3.0.0}/axc_agent_engine/sidecar/simulation/interfaces.py +0 -0
- {axc_agent_engine-2.3.2 → axc_agent_engine-3.0.0}/axc_agent_engine/sidecar/simulation/models.py +0 -0
- {axc_agent_engine-2.3.2 → axc_agent_engine-3.0.0}/axc_agent_engine/sidecar/simulation/modes.py +0 -0
- {axc_agent_engine-2.3.2 → axc_agent_engine-3.0.0}/axc_agent_engine/sidecar/simulation/report.py +0 -0
- {axc_agent_engine-2.3.2 → axc_agent_engine-3.0.0}/axc_agent_engine/sidecar/simulation/runner.py +0 -0
- {axc_agent_engine-2.3.2 → axc_agent_engine-3.0.0}/axc_agent_engine/storage/__init__.py +0 -0
- {axc_agent_engine-2.3.2 → axc_agent_engine-3.0.0}/axc_agent_engine/storage/artifact_store.py +0 -0
- {axc_agent_engine-2.3.2 → axc_agent_engine-3.0.0}/axc_agent_engine/tools/__init__.py +0 -0
- {axc_agent_engine-2.3.2 → axc_agent_engine-3.0.0}/axc_agent_engine/tools/audit.py +0 -0
- {axc_agent_engine-2.3.2 → axc_agent_engine-3.0.0}/axc_agent_engine/tools/batches.py +0 -0
- {axc_agent_engine-2.3.2 → axc_agent_engine-3.0.0}/axc_agent_engine/tools/context.py +0 -0
- {axc_agent_engine-2.3.2 → axc_agent_engine-3.0.0}/axc_agent_engine/tools/decorator.py +0 -0
- {axc_agent_engine-2.3.2 → axc_agent_engine-3.0.0}/axc_agent_engine/tools/executor.py +0 -0
- {axc_agent_engine-2.3.2 → axc_agent_engine-3.0.0}/axc_agent_engine/tools/name_mapping.py +0 -0
- {axc_agent_engine-2.3.2 → axc_agent_engine-3.0.0}/axc_agent_engine/tools/orchestrator.py +0 -0
- {axc_agent_engine-2.3.2 → axc_agent_engine-3.0.0}/axc_agent_engine/tools/policy.py +0 -0
- {axc_agent_engine-2.3.2 → axc_agent_engine-3.0.0}/axc_agent_engine/tools/registry.py +0 -0
- {axc_agent_engine-2.3.2 → axc_agent_engine-3.0.0}/axc_agent_engine/tools/runtime.py +0 -0
- {axc_agent_engine-2.3.2 → axc_agent_engine-3.0.0}/axc_agent_engine/tools/tool_output.py +0 -0
- {axc_agent_engine-2.3.2 → axc_agent_engine-3.0.0}/axc_agent_engine/tools/utils.py +0 -0
- {axc_agent_engine-2.3.2 → axc_agent_engine-3.0.0}/axc_agent_engine/utils/__init__.py +0 -0
- {axc_agent_engine-2.3.2 → axc_agent_engine-3.0.0}/axc_agent_engine/utils/json_utils.py +0 -0
- {axc_agent_engine-2.3.2 → axc_agent_engine-3.0.0}/axc_agent_engine/utils/math_utils.py +0 -0
- {axc_agent_engine-2.3.2 → axc_agent_engine-3.0.0}/axc_agent_engine/workflow/__init__.py +0 -0
- {axc_agent_engine-2.3.2 → axc_agent_engine-3.0.0}/axc_agent_engine/workflow/burr_runtime.py +0 -0
- {axc_agent_engine-2.3.2 → axc_agent_engine-3.0.0}/axc_agent_engine/workflow/factory.py +0 -0
- {axc_agent_engine-2.3.2 → axc_agent_engine-3.0.0}/axc_agent_engine/workflow/memory_runtime.py +0 -0
- {axc_agent_engine-2.3.2 → axc_agent_engine-3.0.0}/axc_agent_engine/workflow/protocols.py +0 -0
- {axc_agent_engine-2.3.2 → axc_agent_engine-3.0.0}/axc_agent_engine/workflow/state.py +0 -0
- {axc_agent_engine-2.3.2 → axc_agent_engine-3.0.0}/docs/API.md +0 -0
- {axc_agent_engine-2.3.2 → axc_agent_engine-3.0.0}/docs/OPEN_SOURCE_REPORT.md +0 -0
- {axc_agent_engine-2.3.2 → axc_agent_engine-3.0.0}/docs/PLUGIN_DEVELOPMENT.md +0 -0
- {axc_agent_engine-2.3.2 → axc_agent_engine-3.0.0}/docs/RELEASE_CHECKLIST.md +0 -0
- {axc_agent_engine-2.3.2 → axc_agent_engine-3.0.0}/examples/01_basic_chat/README.md +0 -0
- {axc_agent_engine-2.3.2 → axc_agent_engine-3.0.0}/examples/01_basic_chat/agent.yaml +0 -0
- {axc_agent_engine-2.3.2 → axc_agent_engine-3.0.0}/examples/01_basic_chat/run.py +0 -0
- {axc_agent_engine-2.3.2 → axc_agent_engine-3.0.0}/examples/02_tool_agent/agent.yaml +0 -0
- {axc_agent_engine-2.3.2 → axc_agent_engine-3.0.0}/examples/02_tool_agent/run.py +0 -0
- {axc_agent_engine-2.3.2 → axc_agent_engine-3.0.0}/examples/03_rag_agent/agent.yaml +0 -0
- {axc_agent_engine-2.3.2 → axc_agent_engine-3.0.0}/examples/03_rag_agent/docs/faq.md +0 -0
- {axc_agent_engine-2.3.2 → axc_agent_engine-3.0.0}/examples/03_rag_agent/run.py +0 -0
- {axc_agent_engine-2.3.2 → axc_agent_engine-3.0.0}/examples/04_streaming/agent.yaml +0 -0
- {axc_agent_engine-2.3.2 → axc_agent_engine-3.0.0}/examples/04_streaming/run.py +0 -0
- {axc_agent_engine-2.3.2 → axc_agent_engine-3.0.0}/examples/05_custom_plugin/agent.yaml +0 -0
- {axc_agent_engine-2.3.2 → axc_agent_engine-3.0.0}/examples/05_custom_plugin/my_plugin.py +0 -0
- {axc_agent_engine-2.3.2 → axc_agent_engine-3.0.0}/examples/05_custom_plugin/run.py +0 -0
- {axc_agent_engine-2.3.2 → axc_agent_engine-3.0.0}/examples/06_multi_agent/agent_dev.yaml +0 -0
- {axc_agent_engine-2.3.2 → axc_agent_engine-3.0.0}/examples/06_multi_agent/agent_pm.yaml +0 -0
- {axc_agent_engine-2.3.2 → axc_agent_engine-3.0.0}/examples/06_multi_agent/agent_supervisor.yaml +0 -0
- {axc_agent_engine-2.3.2 → axc_agent_engine-3.0.0}/examples/06_multi_agent/run_group_chat.py +0 -0
- {axc_agent_engine-2.3.2 → axc_agent_engine-3.0.0}/examples/06_multi_agent/run_supervisor.py +0 -0
- {axc_agent_engine-2.3.2 → axc_agent_engine-3.0.0}/examples/07_simulation/agent_blue.yaml +0 -0
- {axc_agent_engine-2.3.2 → axc_agent_engine-3.0.0}/examples/07_simulation/agent_con.yaml +0 -0
- {axc_agent_engine-2.3.2 → axc_agent_engine-3.0.0}/examples/07_simulation/agent_pro.yaml +0 -0
- {axc_agent_engine-2.3.2 → axc_agent_engine-3.0.0}/examples/07_simulation/agent_red.yaml +0 -0
- {axc_agent_engine-2.3.2 → axc_agent_engine-3.0.0}/examples/07_simulation/run_debate.py +0 -0
- {axc_agent_engine-2.3.2 → axc_agent_engine-3.0.0}/examples/07_simulation/run_redblue.py +0 -0
- {axc_agent_engine-2.3.2 → axc_agent_engine-3.0.0}/examples/README.md +0 -0
- {axc_agent_engine-2.3.2 → axc_agent_engine-3.0.0}/llms.txt +0 -0
- {axc_agent_engine-2.3.2 → axc_agent_engine-3.0.0}/tests/__init__.py +0 -0
- {axc_agent_engine-2.3.2 → axc_agent_engine-3.0.0}/tests/api/__init__.py +0 -0
- {axc_agent_engine-2.3.2 → axc_agent_engine-3.0.0}/tests/api/test_api_chat.py +0 -0
- {axc_agent_engine-2.3.2 → axc_agent_engine-3.0.0}/tests/boundaries/__init__.py +0 -0
- {axc_agent_engine-2.3.2 → axc_agent_engine-3.0.0}/tests/boundaries/test_compression_boundary.py +0 -0
- {axc_agent_engine-2.3.2 → axc_agent_engine-3.0.0}/tests/boundaries/test_core_dependency_boundaries.py +0 -0
- {axc_agent_engine-2.3.2 → axc_agent_engine-3.0.0}/tests/boundaries/test_engine_boundaries.py +0 -0
- {axc_agent_engine-2.3.2 → axc_agent_engine-3.0.0}/tests/boundaries/test_engine_boundary_matrix.py +0 -0
- {axc_agent_engine-2.3.2 → axc_agent_engine-3.0.0}/tests/boundaries/test_engine_plugin_boundaries.py +0 -0
- {axc_agent_engine-2.3.2 → axc_agent_engine-3.0.0}/tests/boundaries/test_init_exports.py +0 -0
- {axc_agent_engine-2.3.2 → axc_agent_engine-3.0.0}/tests/boundaries/test_plugin_config_schema_boundaries.py +0 -0
- {axc_agent_engine-2.3.2 → axc_agent_engine-3.0.0}/tests/boundaries/test_pyproject_deps.py +0 -0
- {axc_agent_engine-2.3.2 → axc_agent_engine-3.0.0}/tests/boundaries/test_source_text_policy.py +0 -0
- {axc_agent_engine-2.3.2 → axc_agent_engine-3.0.0}/tests/cli/test_cli.py +0 -0
- {axc_agent_engine-2.3.2 → axc_agent_engine-3.0.0}/tests/conftest.py +0 -0
- {axc_agent_engine-2.3.2 → axc_agent_engine-3.0.0}/tests/core/__init__.py +0 -0
- {axc_agent_engine-2.3.2 → axc_agent_engine-3.0.0}/tests/core/test_constants.py +0 -0
- {axc_agent_engine-2.3.2 → axc_agent_engine-3.0.0}/tests/core/test_context.py +0 -0
- {axc_agent_engine-2.3.2 → axc_agent_engine-3.0.0}/tests/core/test_dispatcher_architecture.py +0 -0
- {axc_agent_engine-2.3.2 → axc_agent_engine-3.0.0}/tests/core/test_errors.py +0 -0
- {axc_agent_engine-2.3.2 → axc_agent_engine-3.0.0}/tests/core/test_event_categories.py +0 -0
- {axc_agent_engine-2.3.2 → axc_agent_engine-3.0.0}/tests/core/test_events.py +0 -0
- {axc_agent_engine-2.3.2 → axc_agent_engine-3.0.0}/tests/core/test_execution_config_workspace.py +0 -0
- {axc_agent_engine-2.3.2 → axc_agent_engine-3.0.0}/tests/core/test_execution_services.py +0 -0
- {axc_agent_engine-2.3.2 → axc_agent_engine-3.0.0}/tests/core/test_input_messages.py +0 -0
- {axc_agent_engine-2.3.2 → axc_agent_engine-3.0.0}/tests/core/test_llm_caller_edges.py +0 -0
- {axc_agent_engine-2.3.2 → axc_agent_engine-3.0.0}/tests/core/test_message_store_snapshot.py +0 -0
- {axc_agent_engine-2.3.2 → axc_agent_engine-3.0.0}/tests/core/test_message_store_tooloutput.py +0 -0
- {axc_agent_engine-2.3.2 → axc_agent_engine-3.0.0}/tests/core/test_react_edges.py +0 -0
- {axc_agent_engine-2.3.2 → axc_agent_engine-3.0.0}/tests/core/test_realtime_stream.py +0 -0
- {axc_agent_engine-2.3.2 → axc_agent_engine-3.0.0}/tests/core/test_run_context.py +0 -0
- {axc_agent_engine-2.3.2 → axc_agent_engine-3.0.0}/tests/core/test_schema.py +0 -0
- {axc_agent_engine-2.3.2 → axc_agent_engine-3.0.0}/tests/core/test_stream_aggregator.py +0 -0
- {axc_agent_engine-2.3.2 → axc_agent_engine-3.0.0}/tests/engine/__init__.py +0 -0
- {axc_agent_engine-2.3.2 → axc_agent_engine-3.0.0}/tests/llm/__init__.py +0 -0
- {axc_agent_engine-2.3.2 → axc_agent_engine-3.0.0}/tests/llm/test_llm_caller_retry.py +0 -0
- {axc_agent_engine-2.3.2 → axc_agent_engine-3.0.0}/tests/llm/test_provider.py +0 -0
- {axc_agent_engine-2.3.2 → axc_agent_engine-3.0.0}/tests/observability/__init__.py +0 -0
- {axc_agent_engine-2.3.2 → axc_agent_engine-3.0.0}/tests/observability/test_audit.py +0 -0
- {axc_agent_engine-2.3.2 → axc_agent_engine-3.0.0}/tests/observability/test_logging.py +0 -0
- {axc_agent_engine-2.3.2 → axc_agent_engine-3.0.0}/tests/planning/__init__.py +0 -0
- {axc_agent_engine-2.3.2 → axc_agent_engine-3.0.0}/tests/planning/test_plan_runtime.py +0 -0
- {axc_agent_engine-2.3.2 → axc_agent_engine-3.0.0}/tests/planning/test_planning.py +0 -0
- {axc_agent_engine-2.3.2 → axc_agent_engine-3.0.0}/tests/planning/test_por_checkpointing.py +0 -0
- {axc_agent_engine-2.3.2 → axc_agent_engine-3.0.0}/tests/planning/test_por_graph_runtime.py +0 -0
- {axc_agent_engine-2.3.2 → axc_agent_engine-3.0.0}/tests/planning/test_por_runner_edges.py +0 -0
- {axc_agent_engine-2.3.2 → axc_agent_engine-3.0.0}/tests/plugins/__init__.py +0 -0
- {axc_agent_engine-2.3.2 → axc_agent_engine-3.0.0}/tests/plugins/test_builtin_tools_tooloutput.py +0 -0
- {axc_agent_engine-2.3.2 → axc_agent_engine-3.0.0}/tests/plugins/test_collaboration_plugin.py +0 -0
- {axc_agent_engine-2.3.2 → axc_agent_engine-3.0.0}/tests/plugins/test_compress_tooloutput.py +0 -0
- {axc_agent_engine-2.3.2 → axc_agent_engine-3.0.0}/tests/plugins/test_config_schema.py +0 -0
- {axc_agent_engine-2.3.2 → axc_agent_engine-3.0.0}/tests/plugins/test_graph_plugin.py +0 -0
- {axc_agent_engine-2.3.2 → axc_agent_engine-3.0.0}/tests/plugins/test_graph_store.py +0 -0
- {axc_agent_engine-2.3.2 → axc_agent_engine-3.0.0}/tests/plugins/test_hooks_and_hitl.py +0 -0
- {axc_agent_engine-2.3.2 → axc_agent_engine-3.0.0}/tests/plugins/test_knowledge_core.py +0 -0
- {axc_agent_engine-2.3.2 → axc_agent_engine-3.0.0}/tests/plugins/test_knowledge_plugin.py +0 -0
- {axc_agent_engine-2.3.2 → axc_agent_engine-3.0.0}/tests/plugins/test_knowledge_vector.py +0 -0
- {axc_agent_engine-2.3.2 → axc_agent_engine-3.0.0}/tests/plugins/test_lightweight_guards.py +0 -0
- {axc_agent_engine-2.3.2 → axc_agent_engine-3.0.0}/tests/plugins/test_mcp_plugin.py +0 -0
- {axc_agent_engine-2.3.2 → axc_agent_engine-3.0.0}/tests/plugins/test_memory_core.py +0 -0
- {axc_agent_engine-2.3.2 → axc_agent_engine-3.0.0}/tests/plugins/test_memory_plugin.py +0 -0
- {axc_agent_engine-2.3.2 → axc_agent_engine-3.0.0}/tests/plugins/test_memory_support.py +0 -0
- {axc_agent_engine-2.3.2 → axc_agent_engine-3.0.0}/tests/plugins/test_output_format_service.py +0 -0
- {axc_agent_engine-2.3.2 → axc_agent_engine-3.0.0}/tests/plugins/test_plugin_context_workspace.py +0 -0
- {axc_agent_engine-2.3.2 → axc_agent_engine-3.0.0}/tests/plugins/test_plugin_dependencies.py +0 -0
- {axc_agent_engine-2.3.2 → axc_agent_engine-3.0.0}/tests/plugins/test_plugin_isolation.py +0 -0
- {axc_agent_engine-2.3.2 → axc_agent_engine-3.0.0}/tests/plugins/test_plugin_post_tool_call.py +0 -0
- {axc_agent_engine-2.3.2 → axc_agent_engine-3.0.0}/tests/plugins/test_plugin_registry.py +0 -0
- {axc_agent_engine-2.3.2 → axc_agent_engine-3.0.0}/tests/plugins/test_plugins.py +0 -0
- {axc_agent_engine-2.3.2 → axc_agent_engine-3.0.0}/tests/plugins/test_skill_plugin.py +0 -0
- {axc_agent_engine-2.3.2 → axc_agent_engine-3.0.0}/tests/plugins/test_swarm_plugin.py +0 -0
- {axc_agent_engine-2.3.2 → axc_agent_engine-3.0.0}/tests/plugins/test_tracing_plugin.py +0 -0
- {axc_agent_engine-2.3.2 → axc_agent_engine-3.0.0}/tests/plugins/test_vector_store_capacity.py +0 -0
- {axc_agent_engine-2.3.2 → axc_agent_engine-3.0.0}/tests/runtime/__init__.py +0 -0
- {axc_agent_engine-2.3.2 → axc_agent_engine-3.0.0}/tests/runtime/test_capability_gate.py +0 -0
- {axc_agent_engine-2.3.2 → axc_agent_engine-3.0.0}/tests/runtime/test_checkpoint.py +0 -0
- {axc_agent_engine-2.3.2 → axc_agent_engine-3.0.0}/tests/runtime/test_concurrency.py +0 -0
- {axc_agent_engine-2.3.2 → axc_agent_engine-3.0.0}/tests/runtime/test_policy.py +0 -0
- {axc_agent_engine-2.3.2 → axc_agent_engine-3.0.0}/tests/runtime/test_run_control.py +0 -0
- {axc_agent_engine-2.3.2 → axc_agent_engine-3.0.0}/tests/runtime/test_sandbox.py +0 -0
- {axc_agent_engine-2.3.2 → axc_agent_engine-3.0.0}/tests/runtime/test_security_risk.py +0 -0
- {axc_agent_engine-2.3.2 → axc_agent_engine-3.0.0}/tests/runtime/test_tasks.py +0 -0
- {axc_agent_engine-2.3.2 → axc_agent_engine-3.0.0}/tests/sidecar/__init__.py +0 -0
- {axc_agent_engine-2.3.2 → axc_agent_engine-3.0.0}/tests/sidecar/test_eval_framework.py +0 -0
- {axc_agent_engine-2.3.2 → axc_agent_engine-3.0.0}/tests/sidecar/test_multi_agent_modes.py +0 -0
- {axc_agent_engine-2.3.2 → axc_agent_engine-3.0.0}/tests/sidecar/test_multi_agent_session.py +0 -0
- {axc_agent_engine-2.3.2 → axc_agent_engine-3.0.0}/tests/sidecar/test_orchestration_service.py +0 -0
- {axc_agent_engine-2.3.2 → axc_agent_engine-3.0.0}/tests/sidecar/test_sidecar_agent_ops.py +0 -0
- {axc_agent_engine-2.3.2 → axc_agent_engine-3.0.0}/tests/sidecar/test_simulation_adapters.py +0 -0
- {axc_agent_engine-2.3.2 → axc_agent_engine-3.0.0}/tests/sidecar/test_simulation_kernel.py +0 -0
- {axc_agent_engine-2.3.2 → axc_agent_engine-3.0.0}/tests/storage/__init__.py +0 -0
- {axc_agent_engine-2.3.2 → axc_agent_engine-3.0.0}/tests/storage/test_artifact_store.py +0 -0
- {axc_agent_engine-2.3.2 → axc_agent_engine-3.0.0}/tests/tools/__init__.py +0 -0
- {axc_agent_engine-2.3.2 → axc_agent_engine-3.0.0}/tests/tools/test_decorator_tooloutput.py +0 -0
- {axc_agent_engine-2.3.2 → axc_agent_engine-3.0.0}/tests/tools/test_orchestrator_tool_context.py +0 -0
- {axc_agent_engine-2.3.2 → axc_agent_engine-3.0.0}/tests/tools/test_tool_context.py +0 -0
- {axc_agent_engine-2.3.2 → axc_agent_engine-3.0.0}/tests/tools/test_tool_orchestrator_timeout.py +0 -0
- {axc_agent_engine-2.3.2 → axc_agent_engine-3.0.0}/tests/tools/test_tool_output.py +0 -0
- {axc_agent_engine-2.3.2 → axc_agent_engine-3.0.0}/tests/tools/test_tool_output_integration.py +0 -0
- {axc_agent_engine-2.3.2 → axc_agent_engine-3.0.0}/tests/tools/test_tool_validation.py +0 -0
- {axc_agent_engine-2.3.2 → axc_agent_engine-3.0.0}/tests/tools/test_tooloutput_protocol.py +0 -0
- {axc_agent_engine-2.3.2 → axc_agent_engine-3.0.0}/tests/tools/test_tools.py +0 -0
- {axc_agent_engine-2.3.2 → axc_agent_engine-3.0.0}/tests/utils/__init__.py +0 -0
- {axc_agent_engine-2.3.2 → axc_agent_engine-3.0.0}/tests/utils/test_json_utils.py +0 -0
- {axc_agent_engine-2.3.2 → axc_agent_engine-3.0.0}/tests/utils/test_math_utils.py +0 -0
- {axc_agent_engine-2.3.2 → axc_agent_engine-3.0.0}/tests/workflow/__init__.py +0 -0
- {axc_agent_engine-2.3.2 → axc_agent_engine-3.0.0}/tests/workflow/test_workflow_runtime.py +0 -0
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
# Changelog
|
|
2
|
+
|
|
3
|
+
All notable changes to AxcAgentEngine are documented in this file.
|
|
4
|
+
|
|
5
|
+
## [3.0.0] - 2026-10-26
|
|
6
|
+
|
|
7
|
+
### Fixed
|
|
8
|
+
|
|
9
|
+
- Isolated session history by an internal per-agent scope so identical session
|
|
10
|
+
IDs cannot leak messages between agents.
|
|
11
|
+
- Kept an agent's persistence scope stable when its public `name` is changed at
|
|
12
|
+
runtime.
|
|
13
|
+
- Scoped session reset and removal operations to the owning agent.
|
|
14
|
+
|
|
15
|
+
### Changed
|
|
16
|
+
|
|
17
|
+
- `SessionManager` now requires an identity seed when constructed.
|
|
18
|
+
- `MessagePersistence.save`, `load`, and `delete` now receive `scope_id` before
|
|
19
|
+
`session_id`.
|
|
20
|
+
- `MessagePersistence` now includes `clear(scope_id)`.
|
|
21
|
+
- `Engine` now creates one session manager per agent instead of sharing a
|
|
22
|
+
manager across all agents.
|
|
23
|
+
|
|
24
|
+
### Compatibility
|
|
25
|
+
|
|
26
|
+
- This release intentionally changes the `MessagePersistence` protocol and
|
|
27
|
+
does not read data written with the unscoped 2.x persistence contract.
|
|
28
|
+
|
|
29
|
+
[3.0.0]: https://github.com/axclogo/AxcAgentEngine/releases/tag/v3.0.0
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
Metadata-Version: 2.
|
|
1
|
+
Metadata-Version: 2.5
|
|
2
2
|
Name: axc-agent-engine
|
|
3
|
-
Version:
|
|
3
|
+
Version: 3.0.0
|
|
4
4
|
Summary: Agent execution engine with Plan-Observe-Replan (POR) and plugin architecture
|
|
5
5
|
Project-URL: Homepage, https://github.com/axclogo/AxcAgentEngine
|
|
6
6
|
Project-URL: Documentation, https://github.com/axclogo/AxcAgentEngine#readme
|
|
@@ -84,8 +84,8 @@ AxcAgentEngine adds **POR (Plan-Observe-Replan)** on top of ReAct: the agent pro
|
|
|
84
84
|
```bash
|
|
85
85
|
pip install axc-agent-engine
|
|
86
86
|
|
|
87
|
-
# Pin the current
|
|
88
|
-
pip install axc-agent-engine==
|
|
87
|
+
# Pin the current 3.0 release
|
|
88
|
+
pip install axc-agent-engine==3.0.0
|
|
89
89
|
|
|
90
90
|
# Optional extras
|
|
91
91
|
pip install "axc-agent-engine[api]"
|
|
@@ -34,8 +34,8 @@ AxcAgentEngine adds **POR (Plan-Observe-Replan)** on top of ReAct: the agent pro
|
|
|
34
34
|
```bash
|
|
35
35
|
pip install axc-agent-engine
|
|
36
36
|
|
|
37
|
-
# Pin the current
|
|
38
|
-
pip install axc-agent-engine==
|
|
37
|
+
# Pin the current 3.0 release
|
|
38
|
+
pip install axc-agent-engine==3.0.0
|
|
39
39
|
|
|
40
40
|
# Optional extras
|
|
41
41
|
pip install "axc-agent-engine[api]"
|
|
@@ -34,8 +34,8 @@ AxcAgentEngine 在 ReAct 之外加了 **POR(Plan-Observe-Replan)**:先生
|
|
|
34
34
|
```bash
|
|
35
35
|
pip install axc-agent-engine
|
|
36
36
|
|
|
37
|
-
# 固定安装当前
|
|
38
|
-
pip install axc-agent-engine==
|
|
37
|
+
# 固定安装当前 3.0 版本
|
|
38
|
+
pip install axc-agent-engine==3.0.0
|
|
39
39
|
|
|
40
40
|
# 可选能力
|
|
41
41
|
pip install "axc-agent-engine[api]"
|
|
@@ -160,7 +160,7 @@ class Agent:
|
|
|
160
160
|
self._default_model = default_model
|
|
161
161
|
self._fallback_model = fallback_model
|
|
162
162
|
self._utility_model = utility_model
|
|
163
|
-
self._session_manager = session_manager or SessionManager()
|
|
163
|
+
self._session_manager = session_manager or SessionManager(name)
|
|
164
164
|
self._registry = registry or ToolRegistry()
|
|
165
165
|
self._services = services or ExecutionServices(artifact_store=artifact_store)
|
|
166
166
|
self._input_provider = input_provider or PassthroughInputProvider()
|
|
@@ -26,7 +26,7 @@ def create_app(engine: Engine, models: object, agents_dir: str = "") -> FastAPI:
|
|
|
26
26
|
CancelledError, SchemaError, ToolError,
|
|
27
27
|
)
|
|
28
28
|
|
|
29
|
-
app = FastAPI(title="AxcAgentEngine", version="
|
|
29
|
+
app = FastAPI(title="AxcAgentEngine", version="3.0.0")
|
|
30
30
|
state = EngineState(engine=engine, agents_dir=agents_dir, models=models)
|
|
31
31
|
app.state.engine_state = state
|
|
32
32
|
|
|
@@ -315,7 +315,6 @@ async def _stream_response(agent: Any, messages: list[dict], request: ChatReques
|
|
|
315
315
|
resp_id = f"chatcmpl-{uuid.uuid4().hex[:12]}"
|
|
316
316
|
model_name = _CHAT_OPTIONS.agent_name(request)
|
|
317
317
|
last_usage: dict[str, int] = {}
|
|
318
|
-
has_tool_calls = False
|
|
319
318
|
include_usage = _CHAT_OPTIONS.stream_include_usage(request)
|
|
320
319
|
#English: Bilingual note. 中文:首个 chunk 发送 role
|
|
321
320
|
yield _CHAT_PRESENTER.sse(_CHAT_PRESENTER.chunk(resp_id, model_name, [{"index": 0, "delta": {"role": "assistant"}, "finish_reason": None}]))
|
|
@@ -331,7 +330,6 @@ async def _stream_response(agent: Any, messages: list[dict], request: ChatReques
|
|
|
331
330
|
[{"index": 0, "delta": {"content": event.content}, "finish_reason": None}],
|
|
332
331
|
))
|
|
333
332
|
elif event.type == EventType.TOOL_CALL:
|
|
334
|
-
has_tool_calls = True
|
|
335
333
|
yield _CHAT_PRESENTER.sse(_CHAT_PRESENTER.chunk(resp_id, model_name, [{
|
|
336
334
|
"index": 0,
|
|
337
335
|
"delta": {"tool_calls": [_CHAT_PRESENTER.tool_call_delta(
|
|
@@ -343,7 +341,6 @@ async def _stream_response(agent: Any, messages: list[dict], request: ChatReques
|
|
|
343
341
|
"finish_reason": None,
|
|
344
342
|
}]))
|
|
345
343
|
elif event.type == EventType.TOOL_ARGS_PREVIEW:
|
|
346
|
-
has_tool_calls = True
|
|
347
344
|
yield _CHAT_PRESENTER.sse(_CHAT_PRESENTER.chunk(resp_id, model_name, [{
|
|
348
345
|
"index": 0,
|
|
349
346
|
"delta": {"tool_calls": [_CHAT_PRESENTER.tool_call_delta(
|
|
@@ -355,8 +352,9 @@ async def _stream_response(agent: Any, messages: list[dict], request: ChatReques
|
|
|
355
352
|
"finish_reason": None,
|
|
356
353
|
}]))
|
|
357
354
|
elif event.type == EventType.DONE:
|
|
358
|
-
|
|
359
|
-
|
|
355
|
+
# English: Agent executes tools internally; 中文:Agent 在内部执行工具。
|
|
356
|
+
# English: DONE is a completed answer, not a client tool request; 中文:DONE 表示完整回答,而非客户端工具请求。
|
|
357
|
+
yield _CHAT_PRESENTER.sse(_CHAT_PRESENTER.chunk(resp_id, model_name, [{"index": 0, "delta": {}, "finish_reason": "stop"}]))
|
|
360
358
|
if include_usage:
|
|
361
359
|
yield _CHAT_PRESENTER.sse(_CHAT_PRESENTER.chunk(resp_id, model_name, [], usage=last_usage or None))
|
|
362
360
|
elif event.type == EventType.ERROR:
|
|
@@ -5,6 +5,7 @@ import asyncio
|
|
|
5
5
|
import time
|
|
6
6
|
from collections import OrderedDict
|
|
7
7
|
from typing import Any, TYPE_CHECKING
|
|
8
|
+
from uuid import NAMESPACE_URL, uuid5
|
|
8
9
|
|
|
9
10
|
from axc_agent_engine.core.session import Session
|
|
10
11
|
|
|
@@ -12,11 +13,22 @@ if TYPE_CHECKING:
|
|
|
12
13
|
from axc_agent_engine.storage.protocols import MessagePersistence
|
|
13
14
|
|
|
14
15
|
|
|
16
|
+
_SESSION_SCOPE_NAMESPACE = uuid5(NAMESPACE_URL, "https://github.com/axclogo/AxcAgentEngine/session-scope")
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
def _session_scope_id(identity_seed: str) -> str:
|
|
20
|
+
return uuid5(_SESSION_SCOPE_NAMESPACE, identity_seed).hex
|
|
21
|
+
|
|
22
|
+
|
|
15
23
|
class SessionManager:
|
|
16
|
-
"""
|
|
24
|
+
"""Creates, retrieves, evicts, and persists sessions within an internal scope.
|
|
17
25
|
|
|
18
|
-
|
|
26
|
+
中文:在内部作用域中创建、获取、淘汰和持久化会话。
|
|
27
|
+
"""
|
|
28
|
+
|
|
29
|
+
def __init__(self, identity_seed: str, max_sessions: int = 1000, ttl: int = 3600,
|
|
19
30
|
persistence: "MessagePersistence | None" = None) -> None:
|
|
31
|
+
self._scope_id = _session_scope_id(identity_seed)
|
|
20
32
|
self._sessions: OrderedDict[str, _SessionEntry] = OrderedDict()
|
|
21
33
|
self._max_sessions = max_sessions
|
|
22
34
|
self._ttl = ttl
|
|
@@ -36,7 +48,7 @@ class SessionManager:
|
|
|
36
48
|
return entry.session
|
|
37
49
|
session = Session(session_id=session_id)
|
|
38
50
|
if self._persistence:
|
|
39
|
-
messages = await self._persistence.load(session_id)
|
|
51
|
+
messages = await self._persistence.load(self._scope_id, session_id)
|
|
40
52
|
if messages:
|
|
41
53
|
session.messages = messages
|
|
42
54
|
self._sessions[session_id] = _SessionEntry(session=session, last_access=time.time())
|
|
@@ -83,7 +95,7 @@ class SessionManager:
|
|
|
83
95
|
async with self._lock:
|
|
84
96
|
entry = self._sessions.get(session_id)
|
|
85
97
|
if entry:
|
|
86
|
-
await self._persistence.save(session_id, entry.session.messages)
|
|
98
|
+
await self._persistence.save(self._scope_id, session_id, entry.session.messages)
|
|
87
99
|
|
|
88
100
|
async def remove(self, session_id: str) -> None:
|
|
89
101
|
"""English: Bilingual documentation follows.
|
|
@@ -92,7 +104,7 @@ class SessionManager:
|
|
|
92
104
|
async with self._lock:
|
|
93
105
|
self._sessions.pop(session_id, None)
|
|
94
106
|
if self._persistence:
|
|
95
|
-
await self._persistence.delete(session_id)
|
|
107
|
+
await self._persistence.delete(self._scope_id, session_id)
|
|
96
108
|
|
|
97
109
|
async def clear(self) -> None:
|
|
98
110
|
"""English: Bilingual documentation follows.
|
|
@@ -100,6 +112,8 @@ class SessionManager:
|
|
|
100
112
|
清空所有 Session"""
|
|
101
113
|
async with self._lock:
|
|
102
114
|
self._sessions.clear()
|
|
115
|
+
if self._persistence:
|
|
116
|
+
await self._persistence.clear(self._scope_id)
|
|
103
117
|
|
|
104
118
|
@property
|
|
105
119
|
def count(self) -> int:
|
|
@@ -116,7 +130,6 @@ class SessionManager:
|
|
|
116
130
|
for k in expired:
|
|
117
131
|
del self._sessions[k]
|
|
118
132
|
|
|
119
|
-
|
|
120
133
|
class _SessionEntry:
|
|
121
134
|
__slots__ = ("session", "last_access")
|
|
122
135
|
def __init__(self, session: Session, last_access: float) -> None:
|
|
@@ -154,7 +154,6 @@ class Engine:
|
|
|
154
154
|
run_control=self._run_control,
|
|
155
155
|
)
|
|
156
156
|
self._agents: dict[str, Agent] = {}
|
|
157
|
-
self._session_manager = SessionManager(persistence=message_persistence)
|
|
158
157
|
|
|
159
158
|
@property
|
|
160
159
|
def resources(self) -> ResourceRegistry:
|
|
@@ -231,7 +230,7 @@ class Engine:
|
|
|
231
230
|
default_model=agent_default,
|
|
232
231
|
fallback_model=agent_fallback,
|
|
233
232
|
utility_model=agent_utility,
|
|
234
|
-
session_manager=self.
|
|
233
|
+
session_manager=SessionManager(config.name, persistence=self._message_persistence),
|
|
235
234
|
registry=registry,
|
|
236
235
|
services=self._execution_services,
|
|
237
236
|
input_provider=self._input_provider,
|
|
@@ -35,15 +35,12 @@ class TransactionRouter:
|
|
|
35
35
|
|
|
36
36
|
def route(self, message: dict[str, Any]) -> RoutingDecision:
|
|
37
37
|
"""English: Bilingual documentation follows.
|
|
38
|
-
中文:以下为双语文档说明。
|
|
39
|
-
把标准化 assistant message 分类成运行时 action。"""
|
|
38
|
+
中文:以下为双语文档说明。
|
|
39
|
+
把标准化 assistant message 分类成运行时 action。"""
|
|
40
40
|
tool_calls = message.get("tool_calls", []) or []
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
if self._mode == "react_only":
|
|
41
|
+
# English: Explicit tool requests always belong to ReAct; 中文:显式工具请求始终归属 ReAct。
|
|
42
|
+
# English: Plan-like companion text must not trigger POR; 中文:伴随的类计划文本不得触发 POR。
|
|
43
|
+
if tool_calls:
|
|
45
44
|
return RoutingDecision(action="tool_calls")
|
|
46
|
-
plan = PlanningService.detect_plan(message)
|
|
47
|
-
if plan
|
|
48
|
-
return RoutingDecision(action="por_plan", plan=plan)
|
|
49
|
-
return RoutingDecision(action="tool_calls")
|
|
45
|
+
plan = None if self._mode == "react_only" else PlanningService.detect_plan(message)
|
|
46
|
+
return RoutingDecision(action="por_plan", plan=plan) if plan else RoutingDecision(action="final_answer")
|
|
@@ -16,12 +16,31 @@ def pack_context(
|
|
|
16
16
|
"""Pack messages into the configured input window.
|
|
17
17
|
中文:此文档说明相关引擎组件的行为。"""
|
|
18
18
|
try:
|
|
19
|
-
int(max_input_tokens)
|
|
20
|
-
int(reserve_output_tokens)
|
|
19
|
+
max_input = int(max_input_tokens)
|
|
20
|
+
reserve_output = int(reserve_output_tokens)
|
|
21
21
|
except (TypeError, ValueError) as exc:
|
|
22
22
|
raise TypeError("context window token budgets must be integers") from exc
|
|
23
|
-
|
|
24
|
-
|
|
23
|
+
if max_input < 0 or reserve_output < 0:
|
|
24
|
+
raise ValueError("context window token budgets must be non-negative")
|
|
25
|
+
|
|
26
|
+
budget = max(0, max_input - reserve_output)
|
|
27
|
+
groups = _message_groups(messages)
|
|
28
|
+
required_groups = _required_groups(messages, groups)
|
|
29
|
+
selected_groups = set(required_groups)
|
|
30
|
+
used = sum(_group_tokens(messages, groups[index]) for index in required_groups)
|
|
31
|
+
|
|
32
|
+
# English: Prefer the newest optional context; 中文:优先保留最新的可选上下文。
|
|
33
|
+
# English: Required groups may exceed budget to preserve semantics; 中文:必需分组可超预算保留,以维持请求语义。
|
|
34
|
+
for group_index in range(len(groups) - 1, -1, -1):
|
|
35
|
+
if group_index in selected_groups:
|
|
36
|
+
continue
|
|
37
|
+
group_tokens = _group_tokens(messages, groups[group_index])
|
|
38
|
+
if used + group_tokens <= budget:
|
|
39
|
+
selected_groups.add(group_index)
|
|
40
|
+
used += group_tokens
|
|
41
|
+
|
|
42
|
+
selected_indices = sorted({index for group_index in selected_groups for index in groups[group_index]})
|
|
43
|
+
packed = [public_message(messages[index]) for index in selected_indices]
|
|
25
44
|
return PackedContext(messages=packed, estimated_tokens=used)
|
|
26
45
|
|
|
27
46
|
|
|
@@ -82,9 +101,3 @@ def _message_tokens(message: dict[str, Any]) -> int:
|
|
|
82
101
|
|
|
83
102
|
def _group_tokens(messages: list[dict[str, Any]], group: list[int]) -> int:
|
|
84
103
|
return sum(_message_tokens(messages[index]) for index in group)
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
def _placeholder_index(messages: list[dict[str, Any]]) -> int:
|
|
88
|
-
if messages and messages[0].get("role") == "system":
|
|
89
|
-
return 1
|
|
90
|
-
return 0
|
|
@@ -38,7 +38,7 @@ class MCPConnection:
|
|
|
38
38
|
await asyncio.wait_for(self._transport.request("initialize", {
|
|
39
39
|
"protocolVersion": self.config.get("protocol_version", DEFAULT_PROTOCOL_VERSION),
|
|
40
40
|
"capabilities": {},
|
|
41
|
-
"clientInfo": {"name": "axc_agent_engine", "version": "
|
|
41
|
+
"clientInfo": {"name": "axc_agent_engine", "version": "3.0.0"},
|
|
42
42
|
}), timeout=self._connect_timeout)
|
|
43
43
|
try:
|
|
44
44
|
await asyncio.wait_for(self._transport.request("notifications/initialized", {}), timeout=self._connect_timeout)
|
|
@@ -61,28 +61,35 @@ class InMemoryKVStore:
|
|
|
61
61
|
|
|
62
62
|
|
|
63
63
|
class InMemoryMessagePersistence:
|
|
64
|
-
"""
|
|
65
|
-
|
|
64
|
+
"""Scope-isolated in-memory message persistence with capacity limit.
|
|
65
|
+
中文:按内部作用域隔离且带容量限制的内存会话持久化。"""
|
|
66
66
|
|
|
67
67
|
def __init__(self, max_sessions: int = 1000) -> None:
|
|
68
|
-
self._store: OrderedDict[str, list[dict]] = OrderedDict()
|
|
68
|
+
self._store: OrderedDict[tuple[str, str], list[dict]] = OrderedDict()
|
|
69
69
|
self._max_sessions = max_sessions
|
|
70
70
|
self._lock = asyncio.Lock()
|
|
71
71
|
|
|
72
|
-
async def save(self, session_id: str, messages: list[dict]) -> None:
|
|
72
|
+
async def save(self, scope_id: str, session_id: str, messages: list[dict]) -> None:
|
|
73
73
|
async with self._lock:
|
|
74
|
-
|
|
75
|
-
self._store
|
|
74
|
+
key = (scope_id, session_id)
|
|
75
|
+
self._store[key] = list(messages)
|
|
76
|
+
self._store.move_to_end(key)
|
|
76
77
|
while len(self._store) > self._max_sessions:
|
|
77
78
|
self._store.popitem(last=False)
|
|
78
79
|
|
|
79
|
-
async def load(self, session_id: str) -> list[dict]:
|
|
80
|
+
async def load(self, scope_id: str, session_id: str) -> list[dict]:
|
|
81
|
+
async with self._lock:
|
|
82
|
+
return list(self._store.get((scope_id, session_id), []))
|
|
83
|
+
|
|
84
|
+
async def delete(self, scope_id: str, session_id: str) -> None:
|
|
80
85
|
async with self._lock:
|
|
81
|
-
|
|
86
|
+
self._store.pop((scope_id, session_id), None)
|
|
82
87
|
|
|
83
|
-
async def
|
|
88
|
+
async def clear(self, scope_id: str) -> None:
|
|
84
89
|
async with self._lock:
|
|
85
|
-
self._store
|
|
90
|
+
keys = [key for key in self._store if key[0] == scope_id]
|
|
91
|
+
for key in keys:
|
|
92
|
+
del self._store[key]
|
|
86
93
|
|
|
87
94
|
|
|
88
95
|
class InMemorySpanStore:
|
|
@@ -29,13 +29,14 @@ class KVStore(Protocol):
|
|
|
29
29
|
class MessagePersistence(Protocol):
|
|
30
30
|
"""English: Bilingual documentation follows.
|
|
31
31
|
中文:以下为双语文档说明。
|
|
32
|
-
|
|
32
|
+
按内部作用域隔离的会话消息持久化。
|
|
33
33
|
|
|
34
|
-
English: Session message persistence
|
|
34
|
+
English: Session message persistence isolated by an internal scope ID.
|
|
35
35
|
"""
|
|
36
|
-
async def save(self, session_id: str, messages: list[dict]) -> None: ...
|
|
37
|
-
async def load(self, session_id: str) -> list[dict]: ...
|
|
38
|
-
async def delete(self, session_id: str) -> None: ...
|
|
36
|
+
async def save(self, scope_id: str, session_id: str, messages: list[dict]) -> None: ...
|
|
37
|
+
async def load(self, scope_id: str, session_id: str) -> list[dict]: ...
|
|
38
|
+
async def delete(self, scope_id: str, session_id: str) -> None: ...
|
|
39
|
+
async def clear(self, scope_id: str) -> None: ...
|
|
39
40
|
|
|
40
41
|
|
|
41
42
|
@runtime_checkable
|
|
@@ -19,7 +19,7 @@ AgentTemplate.instantiate(models=AgentModels(...), mounts=..., metadata=..., ove
|
|
|
19
19
|
→ create PluginContext (agent-level LLM, stores, dispatcher)
|
|
20
20
|
→ load_plugins() from Engine PluginRegistry → topological sort → initialize()
|
|
21
21
|
→ create ToolRegistry → freeze()
|
|
22
|
-
→ create Agent
|
|
22
|
+
→ create Agent with an internally scoped SessionManager
|
|
23
23
|
→ dispatcher.run_agent_consumer(agent) ← auto-start consumer
|
|
24
24
|
→ return Agent
|
|
25
25
|
|
|
@@ -162,7 +162,7 @@ back to LocalSubprocessExecutor for local development.
|
|
|
162
162
|
|
|
163
163
|
Zero external dependencies. Protocol interfaces with in-memory defaults:
|
|
164
164
|
- KVStore: key-value with TTL
|
|
165
|
-
- MessagePersistence:
|
|
165
|
+
- MessagePersistence: message storage keyed by opaque scope ID and session ID
|
|
166
166
|
- SpanStore: tracing span persistence
|
|
167
167
|
- VectorStore: embedding search (linear scan, ~1000 entries)
|
|
168
168
|
- MessageBus: pub/sub with max_idle auto-exit
|
|
@@ -170,5 +170,10 @@ Zero external dependencies. Protocol interfaces with in-memory defaults:
|
|
|
170
170
|
- AuditSink: structured tool audit events
|
|
171
171
|
- CheckpointStore: durable execution checkpoints
|
|
172
172
|
|
|
173
|
+
`MessagePersistence` receives an opaque, deterministic `scope_id` from the
|
|
174
|
+
engine for `save`, `load`, `delete`, and `clear`. Persistence implementations
|
|
175
|
+
store the scope as part of the key and do not derive it from the Agent's public
|
|
176
|
+
name at call time.
|
|
177
|
+
|
|
173
178
|
Engine injects stores, message bus, audit sink, checkpoint store, custom policy,
|
|
174
179
|
and command executor services into every Agent-created ExecutionContext.
|
|
@@ -43,3 +43,8 @@ configuration. Do not allow untrusted users to configure MCP commands or URLs.
|
|
|
43
43
|
Memory and knowledge plugins can persist or retrieve sensitive data. Use
|
|
44
44
|
tenant/user/session scoping and production-grade stores when deploying beyond a
|
|
45
45
|
single-user local process.
|
|
46
|
+
|
|
47
|
+
Conversation persistence is isolated by an immutable internal scope ID and the
|
|
48
|
+
session ID. Changing an Agent's public name after instantiation does not change
|
|
49
|
+
its persistence scope. Hosts remain responsible for tenant and user isolation
|
|
50
|
+
when sharing one persistence backend.
|
|
@@ -0,0 +1,144 @@
|
|
|
1
|
+
"""Black-box API tests backed by a real Engine and Agent runtime."""
|
|
2
|
+
import asyncio
|
|
3
|
+
import json
|
|
4
|
+
|
|
5
|
+
from fastapi.testclient import TestClient
|
|
6
|
+
|
|
7
|
+
from axc_agent_engine.api.app import create_app
|
|
8
|
+
from axc_agent_engine.core.schema import LLMStreamChunk, LLMUsage, ToolDefinition
|
|
9
|
+
from axc_agent_engine.engine import AgentModels, Engine
|
|
10
|
+
from axc_agent_engine.plugins.base import BasePlugin
|
|
11
|
+
from axc_agent_engine.plugins.config_schema import config_schema
|
|
12
|
+
from axc_agent_engine.plugins.registry import PluginRegistry
|
|
13
|
+
from axc_agent_engine.tools.tool_output import ToolOutput
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
class APIEchoPlugin(BasePlugin):
|
|
17
|
+
name = "api_echo"
|
|
18
|
+
config_schema = config_schema("api_echo", "API Echo", "API integration test tool.", [])
|
|
19
|
+
invocations: list[dict] = []
|
|
20
|
+
|
|
21
|
+
def get_tools(self):
|
|
22
|
+
async def echo(arguments, context):
|
|
23
|
+
type(self).invocations.append(dict(arguments))
|
|
24
|
+
return ToolOutput.json_output({"echo": arguments["text"]})
|
|
25
|
+
|
|
26
|
+
return [ToolDefinition(
|
|
27
|
+
name="echo",
|
|
28
|
+
description="Echo text",
|
|
29
|
+
parameters={
|
|
30
|
+
"type": "object",
|
|
31
|
+
"properties": {"text": {"type": "string"}},
|
|
32
|
+
"required": ["text"],
|
|
33
|
+
},
|
|
34
|
+
execute=echo,
|
|
35
|
+
)]
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
class APISequenceProvider:
|
|
39
|
+
model = "api-sequence"
|
|
40
|
+
tool_name_mapping = None
|
|
41
|
+
|
|
42
|
+
def __init__(self) -> None:
|
|
43
|
+
self.requests: list[list[dict]] = []
|
|
44
|
+
|
|
45
|
+
async def chat(self, messages, tools=None, **kwargs):
|
|
46
|
+
raise AssertionError("API Agent should use the streaming provider path")
|
|
47
|
+
|
|
48
|
+
async def stream(self, messages, tools=None, **kwargs):
|
|
49
|
+
self.requests.append([dict(message) for message in messages])
|
|
50
|
+
if not any(message.get("role") == "tool" for message in messages):
|
|
51
|
+
yield LLMStreamChunk(
|
|
52
|
+
tool_call_delta={
|
|
53
|
+
"index": 0,
|
|
54
|
+
"id": "api-tool-call",
|
|
55
|
+
"function": {"name": "echo", "arguments": '{"text":"api"}'},
|
|
56
|
+
},
|
|
57
|
+
usage=LLMUsage(input_tokens=4, output_tokens=1),
|
|
58
|
+
)
|
|
59
|
+
return
|
|
60
|
+
tool_message = next(message for message in reversed(messages) if message.get("role") == "tool")
|
|
61
|
+
assert json.loads(tool_message["content"]) == {"echo": "api"}
|
|
62
|
+
yield LLMStreamChunk(
|
|
63
|
+
content_delta="API tool roundtrip complete",
|
|
64
|
+
usage=LLMUsage(input_tokens=6, output_tokens=2),
|
|
65
|
+
)
|
|
66
|
+
|
|
67
|
+
async def ask(self, prompt, **kwargs):
|
|
68
|
+
return ""
|
|
69
|
+
|
|
70
|
+
async def close(self):
|
|
71
|
+
pass
|
|
72
|
+
|
|
73
|
+
|
|
74
|
+
def _real_api(tmp_path):
|
|
75
|
+
APIEchoPlugin.invocations = []
|
|
76
|
+
(tmp_path / "api_agent.yaml").write_text(
|
|
77
|
+
"""
|
|
78
|
+
name: api_agent
|
|
79
|
+
description: real API integration agent
|
|
80
|
+
system_prompt: Use the echo tool when requested.
|
|
81
|
+
runtime:
|
|
82
|
+
max_rounds: 4
|
|
83
|
+
plugins:
|
|
84
|
+
api_echo:
|
|
85
|
+
enabled: true
|
|
86
|
+
""",
|
|
87
|
+
encoding="utf-8",
|
|
88
|
+
)
|
|
89
|
+
registry = PluginRegistry()
|
|
90
|
+
registry.register(APIEchoPlugin)
|
|
91
|
+
engine = Engine(plugin_registry=registry)
|
|
92
|
+
provider = APISequenceProvider()
|
|
93
|
+
app = create_app(engine, models=AgentModels(default=provider), agents_dir=str(tmp_path))
|
|
94
|
+
return engine, provider, TestClient(app)
|
|
95
|
+
|
|
96
|
+
|
|
97
|
+
def test_sync_api_runs_real_engine_agent_tool_roundtrip(tmp_path):
|
|
98
|
+
engine, provider, client = _real_api(tmp_path)
|
|
99
|
+
try:
|
|
100
|
+
response = client.post("/v1/chat/completions", json={
|
|
101
|
+
"model": "api_agent",
|
|
102
|
+
"messages": [{"role": "user", "content": "echo api"}],
|
|
103
|
+
"session_id": "api-sync-session",
|
|
104
|
+
})
|
|
105
|
+
assert response.status_code == 200
|
|
106
|
+
body = response.json()
|
|
107
|
+
assert body["choices"][0]["message"]["content"] == "API tool roundtrip complete"
|
|
108
|
+
assert body["choices"][0]["finish_reason"] == "stop"
|
|
109
|
+
assert body["usage"] == {"prompt_tokens": 10, "completion_tokens": 3, "total_tokens": 13}
|
|
110
|
+
assert APIEchoPlugin.invocations == [{"text": "api"}]
|
|
111
|
+
assert [message["role"] for message in provider.requests[1]][-2:] == ["assistant", "tool"]
|
|
112
|
+
finally:
|
|
113
|
+
asyncio.run(engine.close())
|
|
114
|
+
|
|
115
|
+
|
|
116
|
+
def test_stream_api_runs_real_engine_and_finishes_after_internal_tool(tmp_path):
|
|
117
|
+
engine, provider, client = _real_api(tmp_path)
|
|
118
|
+
try:
|
|
119
|
+
response = client.post("/v1/chat/completions", json={
|
|
120
|
+
"model": "api_agent",
|
|
121
|
+
"messages": [{"role": "user", "content": "echo api"}],
|
|
122
|
+
"session_id": "api-stream-session",
|
|
123
|
+
"stream": True,
|
|
124
|
+
"stream_options": {"include_usage": True},
|
|
125
|
+
})
|
|
126
|
+
assert response.status_code == 200
|
|
127
|
+
assert response.headers["content-type"].startswith("text/event-stream")
|
|
128
|
+
data_lines = [line[6:] for line in response.text.splitlines() if line.startswith("data: ")]
|
|
129
|
+
assert data_lines[-1] == "[DONE]"
|
|
130
|
+
chunks = [json.loads(line) for line in data_lines[:-1]]
|
|
131
|
+
assert any(chunk.get("choices", [{}])[0].get("delta", {}).get("content") == "API tool roundtrip complete" for chunk in chunks if chunk.get("choices"))
|
|
132
|
+
assert any("tool_calls" in chunk.get("choices", [{}])[0].get("delta", {}) for chunk in chunks if chunk.get("choices"))
|
|
133
|
+
finish_reasons = [
|
|
134
|
+
chunk["choices"][0]["finish_reason"]
|
|
135
|
+
for chunk in chunks
|
|
136
|
+
if chunk.get("choices") and chunk["choices"][0].get("finish_reason") is not None
|
|
137
|
+
]
|
|
138
|
+
assert finish_reasons == ["stop"]
|
|
139
|
+
usage_chunk = next(chunk for chunk in chunks if not chunk.get("choices") and chunk.get("usage"))
|
|
140
|
+
assert usage_chunk["usage"] == {"prompt_tokens": 10, "completion_tokens": 3, "total_tokens": 13}
|
|
141
|
+
assert APIEchoPlugin.invocations == [{"text": "api"}]
|
|
142
|
+
assert len(provider.requests) == 2
|
|
143
|
+
finally:
|
|
144
|
+
asyncio.run(engine.close())
|
|
@@ -102,8 +102,8 @@ class TestPacker:
|
|
|
102
102
|
{"role": "user", "content": "current"},
|
|
103
103
|
])
|
|
104
104
|
result = pack_context(messages, max_input_tokens=20, reserve_output_tokens=5)
|
|
105
|
-
assert result.messages[
|
|
106
|
-
assert result.
|
|
105
|
+
assert result.messages == [{"role": "user", "content": "current"}]
|
|
106
|
+
assert result.estimated_tokens <= 15
|
|
107
107
|
|
|
108
108
|
def test_keeps_tool_call_group_atomic(self):
|
|
109
109
|
messages = normalize_messages([
|
|
@@ -112,10 +112,10 @@ class TestPacker:
|
|
|
112
112
|
{"role": "tool", "tool_call_id": "tc-1", "content": "tool result"},
|
|
113
113
|
{"role": "user", "content": "current"},
|
|
114
114
|
])
|
|
115
|
-
result = pack_context(messages, max_input_tokens=
|
|
115
|
+
result = pack_context(messages, max_input_tokens=100, reserve_output_tokens=5)
|
|
116
116
|
call_ids = {call["id"] for message in result.messages for call in message.get("tool_calls", [])}
|
|
117
117
|
tool_ids = {message.get("tool_call_id") for message in result.messages if message.get("role") == "tool"}
|
|
118
|
-
assert call_ids
|
|
118
|
+
assert call_ids == tool_ids == {"tc-1"}
|
|
119
119
|
|
|
120
120
|
def test_drops_oversized_tool_call_group_atomic(self):
|
|
121
121
|
messages = normalize_messages([
|
|
@@ -125,8 +125,30 @@ class TestPacker:
|
|
|
125
125
|
{"role": "user", "content": "current"},
|
|
126
126
|
])
|
|
127
127
|
result = pack_context(messages, max_input_tokens=30, reserve_output_tokens=5)
|
|
128
|
-
assert any(message.get("tool_calls") for message in result.messages)
|
|
129
|
-
assert any(message.get("role") == "tool" for message in result.messages)
|
|
128
|
+
assert not any(message.get("tool_calls") for message in result.messages)
|
|
129
|
+
assert not any(message.get("role") == "tool" for message in result.messages)
|
|
130
|
+
assert result.messages[-1]["content"] == "current"
|
|
131
|
+
assert result.estimated_tokens <= 25
|
|
132
|
+
|
|
133
|
+
def test_keeps_system_last_user_and_durable_context(self):
|
|
134
|
+
messages = normalize_messages([
|
|
135
|
+
{"role": "system", "content": "system"},
|
|
136
|
+
{"role": "user", "content": "old" * 100},
|
|
137
|
+
{"role": "assistant", "content": "durable", "metadata": {"durable": True}},
|
|
138
|
+
{"role": "user", "content": "current"},
|
|
139
|
+
])
|
|
140
|
+
result = pack_context(messages, max_input_tokens=30, reserve_output_tokens=5)
|
|
141
|
+
assert [message["content"] for message in result.messages] == ["system", "durable", "current"]
|
|
142
|
+
assert result.estimated_tokens <= 25
|
|
143
|
+
|
|
144
|
+
def test_required_context_can_explicitly_exceed_budget(self):
|
|
145
|
+
messages = normalize_messages([
|
|
146
|
+
{"role": "system", "content": "s" * 100},
|
|
147
|
+
{"role": "user", "content": "u" * 100},
|
|
148
|
+
])
|
|
149
|
+
result = pack_context(messages, max_input_tokens=20, reserve_output_tokens=5)
|
|
150
|
+
assert [message["role"] for message in result.messages] == ["system", "user"]
|
|
151
|
+
assert result.estimated_tokens > 15
|
|
130
152
|
|
|
131
153
|
|
|
132
154
|
class TestRecall:
|