axc-agent-engine 2.3.1__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-3.0.0/Makefile +35 -0
- {axc_agent_engine-2.3.1 → axc_agent_engine-3.0.0}/PKG-INFO +38 -12
- {axc_agent_engine-2.3.1 → axc_agent_engine-3.0.0}/README.md +36 -10
- {axc_agent_engine-2.3.1 → axc_agent_engine-3.0.0}/README.zh-CN.md +36 -10
- {axc_agent_engine-2.3.1 → axc_agent_engine-3.0.0}/axc_agent_engine/__init__.py +5 -8
- axc_agent_engine-3.0.0/axc_agent_engine/_version.py +4 -0
- {axc_agent_engine-2.3.1 → axc_agent_engine-3.0.0}/axc_agent_engine/agent.py +17 -73
- {axc_agent_engine-2.3.1 → axc_agent_engine-3.0.0}/axc_agent_engine/api/app.py +1 -1
- {axc_agent_engine-2.3.1 → axc_agent_engine-3.0.0}/axc_agent_engine/api/routes/chat.py +3 -5
- {axc_agent_engine-2.3.1 → axc_agent_engine-3.0.0}/axc_agent_engine/cli.py +1 -1
- {axc_agent_engine-2.3.1 → axc_agent_engine-3.0.0}/axc_agent_engine/core/context.py +6 -5
- {axc_agent_engine-2.3.1 → axc_agent_engine-3.0.0}/axc_agent_engine/core/dispatcher.py +19 -21
- {axc_agent_engine-2.3.1 → axc_agent_engine-3.0.0}/axc_agent_engine/core/errors.py +5 -1
- {axc_agent_engine-2.3.1 → axc_agent_engine-3.0.0}/axc_agent_engine/core/events.py +18 -12
- {axc_agent_engine-2.3.1 → axc_agent_engine-3.0.0}/axc_agent_engine/core/execution_run.py +10 -27
- {axc_agent_engine-2.3.1 → axc_agent_engine-3.0.0}/axc_agent_engine/core/executor.py +1 -1
- axc_agent_engine-3.0.0/axc_agent_engine/core/input_messages.py +66 -0
- {axc_agent_engine-2.3.1 → axc_agent_engine-3.0.0}/axc_agent_engine/core/llm_caller.py +44 -38
- {axc_agent_engine-2.3.1 → axc_agent_engine-3.0.0}/axc_agent_engine/core/plugin_manager.py +40 -40
- {axc_agent_engine-2.3.1 → axc_agent_engine-3.0.0}/axc_agent_engine/core/react_loop.py +2 -3
- axc_agent_engine-3.0.0/axc_agent_engine/core/run_context.py +67 -0
- {axc_agent_engine-2.3.1 → axc_agent_engine-3.0.0}/axc_agent_engine/core/run_request.py +15 -12
- {axc_agent_engine-2.3.1 → axc_agent_engine-3.0.0}/axc_agent_engine/core/schema.py +14 -3
- {axc_agent_engine-2.3.1 → axc_agent_engine-3.0.0}/axc_agent_engine/core/session.py +3 -2
- {axc_agent_engine-2.3.1 → axc_agent_engine-3.0.0}/axc_agent_engine/core/session_manager.py +19 -6
- {axc_agent_engine-2.3.1 → axc_agent_engine-3.0.0}/axc_agent_engine/engine.py +9 -9
- {axc_agent_engine-2.3.1 → axc_agent_engine-3.0.0}/axc_agent_engine/observability/audit.py +7 -2
- {axc_agent_engine-2.3.1 → axc_agent_engine-3.0.0}/axc_agent_engine/planning/checkpointing.py +0 -5
- {axc_agent_engine-2.3.1 → axc_agent_engine-3.0.0}/axc_agent_engine/planning/router.py +7 -10
- axc_agent_engine-3.0.0/axc_agent_engine/plugins/__init__.py +20 -0
- {axc_agent_engine-2.3.1 → axc_agent_engine-3.0.0}/axc_agent_engine/plugins/base.py +1 -1
- {axc_agent_engine-2.3.1 → axc_agent_engine-3.0.0}/axc_agent_engine/plugins/builtin/__init__.py +1 -21
- axc_agent_engine-2.3.1/axc_agent_engine/plugins/builtin/builtin_tools/result_store.py → axc_agent_engine-3.0.0/axc_agent_engine/plugins/builtin/builtin_tools/artifact_store.py +3 -3
- axc_agent_engine-3.0.0/axc_agent_engine/plugins/builtin/builtin_tools/artifact_tools.py +104 -0
- {axc_agent_engine-2.3.1 → axc_agent_engine-3.0.0}/axc_agent_engine/plugins/builtin/builtin_tools/command_tools.py +1 -9
- axc_agent_engine-3.0.0/axc_agent_engine/plugins/builtin/builtin_tools/file_tools.py +451 -0
- {axc_agent_engine-2.3.1 → axc_agent_engine-3.0.0}/axc_agent_engine/plugins/builtin/builtin_tools/http_tools.py +31 -14
- {axc_agent_engine-2.3.1 → axc_agent_engine-3.0.0}/axc_agent_engine/plugins/builtin/builtin_tools/plugin.py +35 -29
- axc_agent_engine-3.0.0/axc_agent_engine/plugins/builtin/builtin_tools/presenter.py +42 -0
- axc_agent_engine-3.0.0/axc_agent_engine/plugins/builtin/builtin_tools/registry.py +4 -0
- {axc_agent_engine-2.3.1 → axc_agent_engine-3.0.0}/axc_agent_engine/plugins/builtin/builtin_tools/support.py +0 -7
- axc_agent_engine-3.0.0/axc_agent_engine/plugins/builtin/builtin_tools/tool_definitions.py +359 -0
- {axc_agent_engine-2.3.1 → axc_agent_engine-3.0.0}/axc_agent_engine/plugins/builtin/collaboration/plugin.py +25 -2
- {axc_agent_engine-2.3.1 → axc_agent_engine-3.0.0}/axc_agent_engine/plugins/builtin/common.py +12 -15
- {axc_agent_engine-2.3.1 → axc_agent_engine-3.0.0}/axc_agent_engine/plugins/builtin/compress/context/file_cache.py +9 -32
- {axc_agent_engine-2.3.1 → axc_agent_engine-3.0.0}/axc_agent_engine/plugins/builtin/compress/context/models.py +0 -1
- {axc_agent_engine-2.3.1 → axc_agent_engine-3.0.0}/axc_agent_engine/plugins/builtin/compress/context/packer.py +23 -23
- axc_agent_engine-3.0.0/axc_agent_engine/plugins/builtin/compress/context/tool_result.py +36 -0
- {axc_agent_engine-2.3.1 → axc_agent_engine-3.0.0}/axc_agent_engine/plugins/builtin/compress/context/tool_summary.py +4 -13
- {axc_agent_engine-2.3.1 → axc_agent_engine-3.0.0}/axc_agent_engine/plugins/builtin/compress/plugin.py +9 -15
- {axc_agent_engine-2.3.1 → axc_agent_engine-3.0.0}/axc_agent_engine/plugins/builtin/config_schemas.py +6 -17
- {axc_agent_engine-2.3.1 → axc_agent_engine-3.0.0}/axc_agent_engine/plugins/builtin/cost_statistics/plugin.py +1 -1
- {axc_agent_engine-2.3.1 → axc_agent_engine-3.0.0}/axc_agent_engine/plugins/builtin/graph/plugin.py +1 -1
- axc_agent_engine-3.0.0/axc_agent_engine/plugins/builtin/graph/presenter.py +78 -0
- {axc_agent_engine-2.3.1 → axc_agent_engine-3.0.0}/axc_agent_engine/plugins/builtin/graph/tool_handlers.py +2 -2
- {axc_agent_engine-2.3.1 → axc_agent_engine-3.0.0}/axc_agent_engine/plugins/builtin/graph/utils.py +1 -1
- {axc_agent_engine-2.3.1 → axc_agent_engine-3.0.0}/axc_agent_engine/plugins/builtin/hooks/plugin.py +1 -1
- {axc_agent_engine-2.3.1 → axc_agent_engine-3.0.0}/axc_agent_engine/plugins/builtin/human_in_the_loop/plugin.py +2 -2
- {axc_agent_engine-2.3.1 → axc_agent_engine-3.0.0}/axc_agent_engine/plugins/builtin/knowledge/plugin.py +26 -4
- {axc_agent_engine-2.3.1 → axc_agent_engine-3.0.0}/axc_agent_engine/plugins/builtin/knowledge/support/chunker.py +2 -2
- {axc_agent_engine-2.3.1 → axc_agent_engine-3.0.0}/axc_agent_engine/plugins/builtin/knowledge/support/retrieval.py +1 -1
- {axc_agent_engine-2.3.1 → axc_agent_engine-3.0.0}/axc_agent_engine/plugins/builtin/mcp/plugin.py +3 -3
- {axc_agent_engine-2.3.1 → axc_agent_engine-3.0.0}/axc_agent_engine/plugins/builtin/mcp/support/connection.py +3 -2
- axc_agent_engine-3.0.0/axc_agent_engine/plugins/builtin/mcp/support/transports/__init__.py +16 -0
- axc_agent_engine-2.3.1/axc_agent_engine/plugins/builtin/mcp/support/transports/__init__.py → axc_agent_engine-3.0.0/axc_agent_engine/plugins/builtin/mcp/support/transports/factory.py +1 -10
- {axc_agent_engine-2.3.1 → axc_agent_engine-3.0.0}/axc_agent_engine/plugins/builtin/mcp/support/transports/sdk.py +1 -1
- {axc_agent_engine-2.3.1 → axc_agent_engine-3.0.0}/axc_agent_engine/plugins/builtin/memory/plugin.py +26 -3
- {axc_agent_engine-2.3.1 → axc_agent_engine-3.0.0}/axc_agent_engine/plugins/builtin/output_format/plugin.py +3 -5
- {axc_agent_engine-2.3.1 → axc_agent_engine-3.0.0}/axc_agent_engine/plugins/builtin/output_format/support/service.py +7 -10
- {axc_agent_engine-2.3.1 → axc_agent_engine-3.0.0}/axc_agent_engine/plugins/builtin/post_process/plugin.py +1 -1
- {axc_agent_engine-2.3.1 → axc_agent_engine-3.0.0}/axc_agent_engine/plugins/builtin/reflexion/plugin.py +2 -3
- axc_agent_engine-3.0.0/axc_agent_engine/plugins/builtin/registry.py +41 -0
- {axc_agent_engine-2.3.1 → axc_agent_engine-3.0.0}/axc_agent_engine/plugins/builtin/repetition_guard/plugin.py +1 -1
- {axc_agent_engine-2.3.1 → axc_agent_engine-3.0.0}/axc_agent_engine/plugins/builtin/risk_guard/plugin.py +1 -1
- {axc_agent_engine-2.3.1 → axc_agent_engine-3.0.0}/axc_agent_engine/plugins/builtin/safety/plugin.py +0 -2
- {axc_agent_engine-2.3.1 → axc_agent_engine-3.0.0}/axc_agent_engine/plugins/builtin/skill/plugin.py +9 -17
- {axc_agent_engine-2.3.1 → axc_agent_engine-3.0.0}/axc_agent_engine/plugins/builtin/swarm/plugin.py +26 -4
- {axc_agent_engine-2.3.1 → axc_agent_engine-3.0.0}/axc_agent_engine/plugins/builtin/tracing/plugin.py +52 -32
- {axc_agent_engine-2.3.1 → axc_agent_engine-3.0.0}/axc_agent_engine/plugins/config_schema.py +0 -7
- axc_agent_engine-2.3.1/axc_agent_engine/plugins/__init__.py → axc_agent_engine-3.0.0/axc_agent_engine/plugins/context.py +3 -12
- {axc_agent_engine-2.3.1 → axc_agent_engine-3.0.0}/axc_agent_engine/plugins/loader.py +1 -1
- {axc_agent_engine-2.3.1 → axc_agent_engine-3.0.0}/axc_agent_engine/runtime/checkpoint.py +7 -2
- {axc_agent_engine-2.3.1 → axc_agent_engine-3.0.0}/axc_agent_engine/runtime/input.py +5 -0
- {axc_agent_engine-2.3.1 → axc_agent_engine-3.0.0}/axc_agent_engine/runtime/policy.py +8 -0
- {axc_agent_engine-2.3.1 → axc_agent_engine-3.0.0}/axc_agent_engine/runtime/sandbox_code.py +0 -4
- {axc_agent_engine-2.3.1 → axc_agent_engine-3.0.0}/axc_agent_engine/runtime/sandbox_local.py +3 -7
- {axc_agent_engine-2.3.1 → axc_agent_engine-3.0.0}/axc_agent_engine/runtime/sandbox_models.py +0 -4
- {axc_agent_engine-2.3.1 → axc_agent_engine-3.0.0}/axc_agent_engine/runtime/sandbox_utils.py +2 -4
- {axc_agent_engine-2.3.1 → axc_agent_engine-3.0.0}/axc_agent_engine/runtime/sandbox_workspace.py +0 -2
- axc_agent_engine-3.0.0/axc_agent_engine/runtime/tasks.py +19 -0
- axc_agent_engine-3.0.0/axc_agent_engine/sidecar/agent_selector/__init__.py +10 -0
- axc_agent_engine-2.3.1/axc_agent_engine/sidecar/agent_selector/__init__.py → axc_agent_engine-3.0.0/axc_agent_engine/sidecar/agent_selector/core.py +2 -1
- axc_agent_engine-3.0.0/axc_agent_engine/sidecar/cost_optimizer/__init__.py +19 -0
- axc_agent_engine-3.0.0/axc_agent_engine/sidecar/distiller/__init__.py +17 -0
- axc_agent_engine-2.3.1/axc_agent_engine/sidecar/distiller/__init__.py → axc_agent_engine-3.0.0/axc_agent_engine/sidecar/distiller/core.py +2 -2
- {axc_agent_engine-2.3.1 → axc_agent_engine-3.0.0}/axc_agent_engine/sidecar/eval/runner.py +27 -35
- {axc_agent_engine-2.3.1 → axc_agent_engine-3.0.0}/axc_agent_engine/sidecar/eval/store.py +20 -3
- axc_agent_engine-3.0.0/axc_agent_engine/sidecar/failure_miner/__init__.py +19 -0
- axc_agent_engine-2.3.1/axc_agent_engine/sidecar/failure_miner/__init__.py → axc_agent_engine-3.0.0/axc_agent_engine/sidecar/failure_miner/core.py +1 -1
- {axc_agent_engine-2.3.1 → axc_agent_engine-3.0.0}/axc_agent_engine/sidecar/multi_agent/events.py +4 -0
- axc_agent_engine-3.0.0/axc_agent_engine/sidecar/multi_agent/scheduler/__init__.py +5 -0
- {axc_agent_engine-2.3.1 → axc_agent_engine-3.0.0}/axc_agent_engine/sidecar/multi_agent/session.py +8 -32
- {axc_agent_engine-2.3.1 → axc_agent_engine-3.0.0}/axc_agent_engine/sidecar/multi_agent/simulation_session.py +2 -2
- axc_agent_engine-3.0.0/axc_agent_engine/sidecar/multi_agent/stop_condition/__init__.py +5 -0
- axc_agent_engine-3.0.0/axc_agent_engine/sidecar/orchestration/__init__.py +19 -0
- axc_agent_engine-2.3.1/axc_agent_engine/sidecar/orchestration/__init__.py → axc_agent_engine-3.0.0/axc_agent_engine/sidecar/orchestration/service.py +3 -2
- {axc_agent_engine-2.3.1 → axc_agent_engine-3.0.0}/axc_agent_engine/sidecar/simulation/models.py +2 -1
- {axc_agent_engine-2.3.1 → axc_agent_engine-3.0.0}/axc_agent_engine/sidecar/simulation/modes.py +2 -1
- {axc_agent_engine-2.3.1 → axc_agent_engine-3.0.0}/axc_agent_engine/sidecar/simulation/runner.py +6 -31
- {axc_agent_engine-2.3.1 → axc_agent_engine-3.0.0}/axc_agent_engine/storage/__init__.py +3 -2
- axc_agent_engine-3.0.0/axc_agent_engine/storage/artifact_store.py +367 -0
- {axc_agent_engine-2.3.1 → axc_agent_engine-3.0.0}/axc_agent_engine/storage/in_memory.py +17 -10
- {axc_agent_engine-2.3.1 → axc_agent_engine-3.0.0}/axc_agent_engine/storage/protocols.py +8 -18
- {axc_agent_engine-2.3.1 → axc_agent_engine-3.0.0}/axc_agent_engine/tools/context.py +5 -5
- {axc_agent_engine-2.3.1 → axc_agent_engine-3.0.0}/axc_agent_engine/tools/executor.py +13 -6
- {axc_agent_engine-2.3.1 → axc_agent_engine-3.0.0}/axc_agent_engine/tools/tool_output.py +35 -47
- {axc_agent_engine-2.3.1 → axc_agent_engine-3.0.0}/axc_agent_engine/workflow/state.py +3 -3
- {axc_agent_engine-2.3.1 → axc_agent_engine-3.0.0}/docs/ARCHITECTURE.md +10 -5
- {axc_agent_engine-2.3.1 → axc_agent_engine-3.0.0}/docs/PLUGIN_DEVELOPMENT.md +18 -12
- {axc_agent_engine-2.3.1 → axc_agent_engine-3.0.0}/docs/SECURITY_MODEL.md +5 -0
- {axc_agent_engine-2.3.1 → 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.1 → axc_agent_engine-3.0.0}/tests/boundaries/test_compression_boundary.py +0 -1
- {axc_agent_engine-2.3.1 → axc_agent_engine-3.0.0}/tests/boundaries/test_engine_boundaries.py +27 -1
- {axc_agent_engine-2.3.1 → axc_agent_engine-3.0.0}/tests/boundaries/test_engine_boundary_matrix.py +0 -11
- {axc_agent_engine-2.3.1 → axc_agent_engine-3.0.0}/tests/boundaries/test_init_exports.py +24 -2
- {axc_agent_engine-2.3.1 → axc_agent_engine-3.0.0}/tests/conftest.py +6 -6
- {axc_agent_engine-2.3.1 → axc_agent_engine-3.0.0}/tests/core/test_context_layers.py +29 -19
- {axc_agent_engine-2.3.1 → axc_agent_engine-3.0.0}/tests/core/test_core.py +56 -20
- {axc_agent_engine-2.3.1 → axc_agent_engine-3.0.0}/tests/core/test_dispatcher_architecture.py +90 -0
- axc_agent_engine-3.0.0/tests/core/test_engine_body_edges.py +350 -0
- {axc_agent_engine-2.3.1 → axc_agent_engine-3.0.0}/tests/core/test_errors.py +17 -1
- axc_agent_engine-3.0.0/tests/core/test_events.py +160 -0
- {axc_agent_engine-2.3.1 → axc_agent_engine-3.0.0}/tests/core/test_execution_services.py +37 -38
- {axc_agent_engine-2.3.1 → axc_agent_engine-3.0.0}/tests/core/test_executor_checkpoint.py +38 -10
- axc_agent_engine-3.0.0/tests/core/test_input_messages.py +72 -0
- axc_agent_engine-3.0.0/tests/core/test_llm_caller_edges.py +158 -0
- {axc_agent_engine-2.3.1 → axc_agent_engine-3.0.0}/tests/core/test_message_store_tooloutput.py +9 -9
- axc_agent_engine-3.0.0/tests/core/test_react_edges.py +264 -0
- axc_agent_engine-3.0.0/tests/core/test_run_context.py +76 -0
- {axc_agent_engine-2.3.1 → axc_agent_engine-3.0.0}/tests/core/test_schema.py +61 -1
- {axc_agent_engine-2.3.1 → axc_agent_engine-3.0.0}/tests/engine/test_engine.py +292 -0
- {axc_agent_engine-2.3.1 → axc_agent_engine-3.0.0}/tests/engine/test_engine_dispatcher_lifecycle.py +41 -1
- {axc_agent_engine-2.3.1 → axc_agent_engine-3.0.0}/tests/engine/test_integration_flow.py +22 -7
- {axc_agent_engine-2.3.1 → axc_agent_engine-3.0.0}/tests/llm/test_llm_caller_retry.py +42 -1
- {axc_agent_engine-2.3.1 → axc_agent_engine-3.0.0}/tests/observability/test_audit.py +38 -0
- {axc_agent_engine-2.3.1 → axc_agent_engine-3.0.0}/tests/planning/test_por_checkpointing.py +2 -0
- axc_agent_engine-3.0.0/tests/planning/test_routing_integration.py +159 -0
- {axc_agent_engine-2.3.1 → axc_agent_engine-3.0.0}/tests/plugins/test_builtin_tools_tooloutput.py +289 -70
- {axc_agent_engine-2.3.1 → axc_agent_engine-3.0.0}/tests/plugins/test_collaboration_plugin.py +2 -0
- {axc_agent_engine-2.3.1 → axc_agent_engine-3.0.0}/tests/plugins/test_compress_tooloutput.py +21 -22
- {axc_agent_engine-2.3.1 → axc_agent_engine-3.0.0}/tests/plugins/test_graph_store.py +7 -5
- {axc_agent_engine-2.3.1 → axc_agent_engine-3.0.0}/tests/plugins/test_knowledge_plugin.py +3 -0
- {axc_agent_engine-2.3.1 → axc_agent_engine-3.0.0}/tests/plugins/test_lightweight_guards.py +21 -3
- {axc_agent_engine-2.3.1 → axc_agent_engine-3.0.0}/tests/plugins/test_mcp_plugin.py +7 -7
- {axc_agent_engine-2.3.1 → axc_agent_engine-3.0.0}/tests/plugins/test_mcp_transports.py +6 -5
- {axc_agent_engine-2.3.1 → axc_agent_engine-3.0.0}/tests/plugins/test_memory_plugin.py +2 -0
- {axc_agent_engine-2.3.1 → axc_agent_engine-3.0.0}/tests/plugins/test_output_format_service.py +7 -7
- {axc_agent_engine-2.3.1 → axc_agent_engine-3.0.0}/tests/plugins/test_plugins.py +26 -5
- {axc_agent_engine-2.3.1 → axc_agent_engine-3.0.0}/tests/plugins/test_skill_plugin.py +10 -12
- {axc_agent_engine-2.3.1 → axc_agent_engine-3.0.0}/tests/plugins/test_swarm_plugin.py +8 -5
- {axc_agent_engine-2.3.1 → axc_agent_engine-3.0.0}/tests/plugins/test_tracing_plugin.py +9 -8
- {axc_agent_engine-2.3.1 → axc_agent_engine-3.0.0}/tests/runtime/test_checkpoint.py +20 -2
- {axc_agent_engine-2.3.1 → axc_agent_engine-3.0.0}/tests/runtime/test_policy.py +16 -0
- {axc_agent_engine-2.3.1 → axc_agent_engine-3.0.0}/tests/runtime/test_sandbox.py +29 -15
- axc_agent_engine-3.0.0/tests/runtime/test_security_risk.py +49 -0
- axc_agent_engine-3.0.0/tests/runtime/test_tasks.py +57 -0
- {axc_agent_engine-2.3.1 → axc_agent_engine-3.0.0}/tests/sidecar/test_eval_framework.py +91 -0
- {axc_agent_engine-2.3.1 → axc_agent_engine-3.0.0}/tests/sidecar/test_multi_agent_session.py +26 -0
- {axc_agent_engine-2.3.1 → axc_agent_engine-3.0.0}/tests/sidecar/test_orchestration_service.py +42 -0
- {axc_agent_engine-2.3.1 → axc_agent_engine-3.0.0}/tests/sidecar/test_sidecar_agent_ops.py +13 -0
- {axc_agent_engine-2.3.1 → axc_agent_engine-3.0.0}/tests/sidecar/test_simulation_adapters.py +10 -0
- {axc_agent_engine-2.3.1 → axc_agent_engine-3.0.0}/tests/sidecar/test_simulation_kernel.py +30 -0
- axc_agent_engine-3.0.0/tests/storage/test_artifact_store.py +107 -0
- {axc_agent_engine-2.3.1 → axc_agent_engine-3.0.0}/tests/storage/test_storage.py +30 -10
- {axc_agent_engine-2.3.1 → axc_agent_engine-3.0.0}/tests/tools/test_orchestrator_tool_context.py +13 -7
- {axc_agent_engine-2.3.1 → axc_agent_engine-3.0.0}/tests/tools/test_tool_context.py +1 -1
- {axc_agent_engine-2.3.1 → axc_agent_engine-3.0.0}/tests/tools/test_tool_output.py +187 -73
- {axc_agent_engine-2.3.1 → axc_agent_engine-3.0.0}/tests/tools/test_tool_output_integration.py +26 -28
- {axc_agent_engine-2.3.1 → axc_agent_engine-3.0.0}/tests/tools/test_tooloutput_protocol.py +67 -28
- {axc_agent_engine-2.3.1 → axc_agent_engine-3.0.0}/tests/tools/test_tools.py +31 -0
- {axc_agent_engine-2.3.1 → axc_agent_engine-3.0.0}/tests/workflow/test_workflow_runtime.py +5 -2
- axc_agent_engine-2.3.1/Makefile +0 -20
- axc_agent_engine-2.3.1/axc_agent_engine/plugins/builtin/builtin_tools/file_tools.py +0 -242
- axc_agent_engine-2.3.1/axc_agent_engine/plugins/builtin/builtin_tools/presenter.py +0 -48
- axc_agent_engine-2.3.1/axc_agent_engine/plugins/builtin/builtin_tools/registry.py +0 -32
- axc_agent_engine-2.3.1/axc_agent_engine/plugins/builtin/builtin_tools/result_tools.py +0 -56
- axc_agent_engine-2.3.1/axc_agent_engine/plugins/builtin/builtin_tools/tool_definitions.py +0 -306
- axc_agent_engine-2.3.1/axc_agent_engine/plugins/builtin/compress/context/tool_result.py +0 -66
- axc_agent_engine-2.3.1/axc_agent_engine/plugins/builtin/graph/presenter.py +0 -39
- axc_agent_engine-2.3.1/axc_agent_engine/storage/result_store.py +0 -143
- axc_agent_engine-2.3.1/tests/core/test_events.py +0 -91
- axc_agent_engine-2.3.1/tests/runtime/test_security_risk.py +0 -18
- {axc_agent_engine-2.3.1 → axc_agent_engine-3.0.0}/.gitignore +0 -0
- {axc_agent_engine-2.3.1 → axc_agent_engine-3.0.0}/CODE_OF_CONDUCT.md +0 -0
- {axc_agent_engine-2.3.1 → axc_agent_engine-3.0.0}/CONTRIBUTING.md +0 -0
- {axc_agent_engine-2.3.1 → axc_agent_engine-3.0.0}/ENGINE_DEVELOPMENT_RULES.md +0 -0
- {axc_agent_engine-2.3.1 → axc_agent_engine-3.0.0}/LICENSE +0 -0
- {axc_agent_engine-2.3.1 → axc_agent_engine-3.0.0}/NOTICE +0 -0
- {axc_agent_engine-2.3.1 → axc_agent_engine-3.0.0}/SECURITY.md +0 -0
- {axc_agent_engine-2.3.1 → axc_agent_engine-3.0.0}/axc_agent_engine/api/__init__.py +0 -0
- {axc_agent_engine-2.3.1 → axc_agent_engine-3.0.0}/axc_agent_engine/api/deps.py +0 -0
- {axc_agent_engine-2.3.1 → axc_agent_engine-3.0.0}/axc_agent_engine/api/routes/__init__.py +0 -0
- {axc_agent_engine-2.3.1 → axc_agent_engine-3.0.0}/axc_agent_engine/api/routes/health.py +0 -0
- {axc_agent_engine-2.3.1 → axc_agent_engine-3.0.0}/axc_agent_engine/core/__init__.py +0 -0
- {axc_agent_engine-2.3.1 → axc_agent_engine-3.0.0}/axc_agent_engine/core/constants.py +0 -0
- {axc_agent_engine-2.3.1 → axc_agent_engine-3.0.0}/axc_agent_engine/core/message_store.py +0 -0
- {axc_agent_engine-2.3.1 → axc_agent_engine-3.0.0}/axc_agent_engine/core/react_kernel.py +0 -0
- {axc_agent_engine-2.3.1 → axc_agent_engine-3.0.0}/axc_agent_engine/core/stream_aggregator.py +0 -0
- {axc_agent_engine-2.3.1 → axc_agent_engine-3.0.0}/axc_agent_engine/core/stream_sink.py +0 -0
- {axc_agent_engine-2.3.1 → axc_agent_engine-3.0.0}/axc_agent_engine/llm/__init__.py +0 -0
- {axc_agent_engine-2.3.1 → axc_agent_engine-3.0.0}/axc_agent_engine/llm/client.py +0 -0
- {axc_agent_engine-2.3.1 → axc_agent_engine-3.0.0}/axc_agent_engine/llm/config.py +0 -0
- {axc_agent_engine-2.3.1 → axc_agent_engine-3.0.0}/axc_agent_engine/llm/provider.py +0 -0
- {axc_agent_engine-2.3.1 → axc_agent_engine-3.0.0}/axc_agent_engine/llm/rate_limited.py +0 -0
- {axc_agent_engine-2.3.1 → axc_agent_engine-3.0.0}/axc_agent_engine/observability/__init__.py +0 -0
- {axc_agent_engine-2.3.1 → axc_agent_engine-3.0.0}/axc_agent_engine/observability/logging.py +0 -0
- {axc_agent_engine-2.3.1 → axc_agent_engine-3.0.0}/axc_agent_engine/planning/__init__.py +0 -0
- {axc_agent_engine-2.3.1 → axc_agent_engine-3.0.0}/axc_agent_engine/planning/graph_nodes.py +0 -0
- {axc_agent_engine-2.3.1 → axc_agent_engine-3.0.0}/axc_agent_engine/planning/graph_runtime.py +0 -0
- {axc_agent_engine-2.3.1 → axc_agent_engine-3.0.0}/axc_agent_engine/planning/graph_state.py +0 -0
- {axc_agent_engine-2.3.1 → axc_agent_engine-3.0.0}/axc_agent_engine/planning/observer.py +0 -0
- {axc_agent_engine-2.3.1 → axc_agent_engine-3.0.0}/axc_agent_engine/planning/planner.py +0 -0
- {axc_agent_engine-2.3.1 → axc_agent_engine-3.0.0}/axc_agent_engine/planning/planning_service.py +0 -0
- {axc_agent_engine-2.3.1 → axc_agent_engine-3.0.0}/axc_agent_engine/planning/por_runner.py +0 -0
- {axc_agent_engine-2.3.1 → axc_agent_engine-3.0.0}/axc_agent_engine/planning/prompts.py +0 -0
- {axc_agent_engine-2.3.1 → axc_agent_engine-3.0.0}/axc_agent_engine/planning/replanner.py +0 -0
- {axc_agent_engine-2.3.1 → axc_agent_engine-3.0.0}/axc_agent_engine/planning/runtime.py +0 -0
- {axc_agent_engine-2.3.1 → axc_agent_engine-3.0.0}/axc_agent_engine/planning/scheduler.py +0 -0
- {axc_agent_engine-2.3.1 → axc_agent_engine-3.0.0}/axc_agent_engine/planning/step_executor.py +0 -0
- {axc_agent_engine-2.3.1 → axc_agent_engine-3.0.0}/axc_agent_engine/plugins/builtin/builtin_tools/__init__.py +0 -0
- {axc_agent_engine-2.3.1 → axc_agent_engine-3.0.0}/axc_agent_engine/plugins/builtin/builtin_tools/path_policy.py +0 -0
- {axc_agent_engine-2.3.1 → axc_agent_engine-3.0.0}/axc_agent_engine/plugins/builtin/collaboration/__init__.py +0 -0
- {axc_agent_engine-2.3.1 → axc_agent_engine-3.0.0}/axc_agent_engine/plugins/builtin/compress/__init__.py +0 -0
- {axc_agent_engine-2.3.1 → axc_agent_engine-3.0.0}/axc_agent_engine/plugins/builtin/compress/context/__init__.py +0 -0
- {axc_agent_engine-2.3.1 → axc_agent_engine-3.0.0}/axc_agent_engine/plugins/builtin/compress/context/boundary.py +0 -0
- {axc_agent_engine-2.3.1 → axc_agent_engine-3.0.0}/axc_agent_engine/plugins/builtin/compress/context/normalizer.py +0 -0
- {axc_agent_engine-2.3.1 → axc_agent_engine-3.0.0}/axc_agent_engine/plugins/builtin/compress/context/recall.py +0 -0
- {axc_agent_engine-2.3.1 → axc_agent_engine-3.0.0}/axc_agent_engine/plugins/builtin/compress/context/recent_window.py +0 -0
- {axc_agent_engine-2.3.1 → axc_agent_engine-3.0.0}/axc_agent_engine/plugins/builtin/compress/context/scoring.py +0 -0
- {axc_agent_engine-2.3.1 → axc_agent_engine-3.0.0}/axc_agent_engine/plugins/builtin/compress/context/summarizer.py +0 -0
- {axc_agent_engine-2.3.1 → axc_agent_engine-3.0.0}/axc_agent_engine/plugins/builtin/compress/prompts.py +0 -0
- {axc_agent_engine-2.3.1 → axc_agent_engine-3.0.0}/axc_agent_engine/plugins/builtin/cost_statistics/__init__.py +0 -0
- {axc_agent_engine-2.3.1 → axc_agent_engine-3.0.0}/axc_agent_engine/plugins/builtin/graph/__init__.py +0 -0
- {axc_agent_engine-2.3.1 → axc_agent_engine-3.0.0}/axc_agent_engine/plugins/builtin/graph/audit.py +0 -0
- {axc_agent_engine-2.3.1 → axc_agent_engine-3.0.0}/axc_agent_engine/plugins/builtin/graph/config.py +0 -0
- {axc_agent_engine-2.3.1 → axc_agent_engine-3.0.0}/axc_agent_engine/plugins/builtin/graph/policy.py +0 -0
- {axc_agent_engine-2.3.1 → axc_agent_engine-3.0.0}/axc_agent_engine/plugins/builtin/graph/service.py +0 -0
- {axc_agent_engine-2.3.1 → axc_agent_engine-3.0.0}/axc_agent_engine/plugins/builtin/graph/source_loader.py +0 -0
- {axc_agent_engine-2.3.1 → axc_agent_engine-3.0.0}/axc_agent_engine/plugins/builtin/graph/support.py +0 -0
- {axc_agent_engine-2.3.1 → axc_agent_engine-3.0.0}/axc_agent_engine/plugins/builtin/graph/tool_factory.py +0 -0
- {axc_agent_engine-2.3.1 → axc_agent_engine-3.0.0}/axc_agent_engine/plugins/builtin/hooks/__init__.py +0 -0
- {axc_agent_engine-2.3.1 → axc_agent_engine-3.0.0}/axc_agent_engine/plugins/builtin/human_in_the_loop/__init__.py +0 -0
- {axc_agent_engine-2.3.1 → axc_agent_engine-3.0.0}/axc_agent_engine/plugins/builtin/knowledge/__init__.py +0 -0
- {axc_agent_engine-2.3.1 → axc_agent_engine-3.0.0}/axc_agent_engine/plugins/builtin/knowledge/support/__init__.py +0 -0
- {axc_agent_engine-2.3.1 → axc_agent_engine-3.0.0}/axc_agent_engine/plugins/builtin/knowledge/support/ingestion.py +0 -0
- {axc_agent_engine-2.3.1 → axc_agent_engine-3.0.0}/axc_agent_engine/plugins/builtin/mcp/__init__.py +0 -0
- {axc_agent_engine-2.3.1 → axc_agent_engine-3.0.0}/axc_agent_engine/plugins/builtin/mcp/support/__init__.py +0 -0
- {axc_agent_engine-2.3.1 → axc_agent_engine-3.0.0}/axc_agent_engine/plugins/builtin/mcp/support/client.py +0 -0
- {axc_agent_engine-2.3.1 → axc_agent_engine-3.0.0}/axc_agent_engine/plugins/builtin/mcp/support/models.py +0 -0
- {axc_agent_engine-2.3.1 → axc_agent_engine-3.0.0}/axc_agent_engine/plugins/builtin/mcp/support/normalization.py +0 -0
- {axc_agent_engine-2.3.1 → axc_agent_engine-3.0.0}/axc_agent_engine/plugins/builtin/mcp/support/transports/base.py +0 -0
- {axc_agent_engine-2.3.1 → axc_agent_engine-3.0.0}/axc_agent_engine/plugins/builtin/mcp/support/transports/http.py +0 -0
- {axc_agent_engine-2.3.1 → axc_agent_engine-3.0.0}/axc_agent_engine/plugins/builtin/mcp/support/transports/stdio.py +0 -0
- {axc_agent_engine-2.3.1 → axc_agent_engine-3.0.0}/axc_agent_engine/plugins/builtin/memory/__init__.py +0 -0
- {axc_agent_engine-2.3.1 → axc_agent_engine-3.0.0}/axc_agent_engine/plugins/builtin/memory/prompts.py +0 -0
- {axc_agent_engine-2.3.1 → axc_agent_engine-3.0.0}/axc_agent_engine/plugins/builtin/memory/support/__init__.py +0 -0
- {axc_agent_engine-2.3.1 → axc_agent_engine-3.0.0}/axc_agent_engine/plugins/builtin/memory/support/graph.py +0 -0
- {axc_agent_engine-2.3.1 → axc_agent_engine-3.0.0}/axc_agent_engine/plugins/builtin/memory/support/retrieval.py +0 -0
- {axc_agent_engine-2.3.1 → axc_agent_engine-3.0.0}/axc_agent_engine/plugins/builtin/memory/support/service.py +0 -0
- {axc_agent_engine-2.3.1 → axc_agent_engine-3.0.0}/axc_agent_engine/plugins/builtin/output_format/__init__.py +0 -0
- {axc_agent_engine-2.3.1 → axc_agent_engine-3.0.0}/axc_agent_engine/plugins/builtin/output_format/support/__init__.py +0 -0
- {axc_agent_engine-2.3.1 → axc_agent_engine-3.0.0}/axc_agent_engine/plugins/builtin/post_process/__init__.py +0 -0
- {axc_agent_engine-2.3.1 → axc_agent_engine-3.0.0}/axc_agent_engine/plugins/builtin/reflexion/__init__.py +0 -0
- {axc_agent_engine-2.3.1 → axc_agent_engine-3.0.0}/axc_agent_engine/plugins/builtin/reflexion/prompts.py +0 -0
- {axc_agent_engine-2.3.1 → axc_agent_engine-3.0.0}/axc_agent_engine/plugins/builtin/repetition_guard/__init__.py +0 -0
- {axc_agent_engine-2.3.1 → axc_agent_engine-3.0.0}/axc_agent_engine/plugins/builtin/risk_guard/__init__.py +0 -0
- {axc_agent_engine-2.3.1 → axc_agent_engine-3.0.0}/axc_agent_engine/plugins/builtin/safety/__init__.py +0 -0
- {axc_agent_engine-2.3.1 → axc_agent_engine-3.0.0}/axc_agent_engine/plugins/builtin/skill/__init__.py +0 -0
- {axc_agent_engine-2.3.1 → axc_agent_engine-3.0.0}/axc_agent_engine/plugins/builtin/swarm/__init__.py +0 -0
- {axc_agent_engine-2.3.1 → axc_agent_engine-3.0.0}/axc_agent_engine/plugins/builtin/tracing/__init__.py +0 -0
- {axc_agent_engine-2.3.1 → axc_agent_engine-3.0.0}/axc_agent_engine/plugins/registry.py +0 -0
- {axc_agent_engine-2.3.1 → axc_agent_engine-3.0.0}/axc_agent_engine/py.typed +0 -0
- {axc_agent_engine-2.3.1 → axc_agent_engine-3.0.0}/axc_agent_engine/runtime/__init__.py +0 -0
- {axc_agent_engine-2.3.1 → axc_agent_engine-3.0.0}/axc_agent_engine/runtime/concurrency.py +0 -0
- {axc_agent_engine-2.3.1 → axc_agent_engine-3.0.0}/axc_agent_engine/runtime/resources.py +0 -0
- {axc_agent_engine-2.3.1 → axc_agent_engine-3.0.0}/axc_agent_engine/runtime/risk.py +0 -0
- {axc_agent_engine-2.3.1 → axc_agent_engine-3.0.0}/axc_agent_engine/runtime/run_control.py +0 -0
- {axc_agent_engine-2.3.1 → axc_agent_engine-3.0.0}/axc_agent_engine/runtime/sandbox_policy.py +0 -0
- {axc_agent_engine-2.3.1 → axc_agent_engine-3.0.0}/axc_agent_engine/runtime/sandbox_provider.py +0 -0
- {axc_agent_engine-2.3.1 → axc_agent_engine-3.0.0}/axc_agent_engine/sidecar/README.md +0 -0
- {axc_agent_engine-2.3.1 → axc_agent_engine-3.0.0}/axc_agent_engine/sidecar/__init__.py +0 -0
- /axc_agent_engine-2.3.1/axc_agent_engine/sidecar/cost_optimizer/__init__.py → /axc_agent_engine-3.0.0/axc_agent_engine/sidecar/cost_optimizer/core.py +0 -0
- {axc_agent_engine-2.3.1 → axc_agent_engine-3.0.0}/axc_agent_engine/sidecar/eval/__init__.py +0 -0
- {axc_agent_engine-2.3.1 → axc_agent_engine-3.0.0}/axc_agent_engine/sidecar/eval/judge.py +0 -0
- {axc_agent_engine-2.3.1 → axc_agent_engine-3.0.0}/axc_agent_engine/sidecar/eval/matcher.py +0 -0
- {axc_agent_engine-2.3.1 → axc_agent_engine-3.0.0}/axc_agent_engine/sidecar/eval/report.py +0 -0
- {axc_agent_engine-2.3.1 → axc_agent_engine-3.0.0}/axc_agent_engine/sidecar/multi_agent/__init__.py +0 -0
- {axc_agent_engine-2.3.1 → axc_agent_engine-3.0.0}/axc_agent_engine/sidecar/multi_agent/modes.py +0 -0
- {axc_agent_engine-2.3.1 → axc_agent_engine-3.0.0}/axc_agent_engine/sidecar/multi_agent/persona.py +0 -0
- {axc_agent_engine-2.3.1 → axc_agent_engine-3.0.0}/axc_agent_engine/sidecar/multi_agent/scheduler/all_parallel.py +0 -0
- {axc_agent_engine-2.3.1 → axc_agent_engine-3.0.0}/axc_agent_engine/sidecar/multi_agent/scheduler/debate.py +0 -0
- /axc_agent_engine-2.3.1/axc_agent_engine/sidecar/multi_agent/scheduler/__init__.py → /axc_agent_engine-3.0.0/axc_agent_engine/sidecar/multi_agent/scheduler/protocols.py +0 -0
- {axc_agent_engine-2.3.1 → axc_agent_engine-3.0.0}/axc_agent_engine/sidecar/multi_agent/scheduler/redblue.py +0 -0
- {axc_agent_engine-2.3.1 → axc_agent_engine-3.0.0}/axc_agent_engine/sidecar/multi_agent/scheduler/round_robin.py +0 -0
- {axc_agent_engine-2.3.1 → axc_agent_engine-3.0.0}/axc_agent_engine/sidecar/multi_agent/scheduler/supervisor.py +0 -0
- {axc_agent_engine-2.3.1 → axc_agent_engine-3.0.0}/axc_agent_engine/sidecar/multi_agent/shared_context.py +0 -0
- {axc_agent_engine-2.3.1 → axc_agent_engine-3.0.0}/axc_agent_engine/sidecar/multi_agent/stop_condition/causal_chain.py +0 -0
- {axc_agent_engine-2.3.1 → axc_agent_engine-3.0.0}/axc_agent_engine/sidecar/multi_agent/stop_condition/consensus.py +0 -0
- {axc_agent_engine-2.3.1 → axc_agent_engine-3.0.0}/axc_agent_engine/sidecar/multi_agent/stop_condition/goal_reached.py +0 -0
- {axc_agent_engine-2.3.1 → axc_agent_engine-3.0.0}/axc_agent_engine/sidecar/multi_agent/stop_condition/llm_based.py +0 -0
- {axc_agent_engine-2.3.1 → axc_agent_engine-3.0.0}/axc_agent_engine/sidecar/multi_agent/stop_condition/max_rounds.py +0 -0
- /axc_agent_engine-2.3.1/axc_agent_engine/sidecar/multi_agent/stop_condition/__init__.py → /axc_agent_engine-3.0.0/axc_agent_engine/sidecar/multi_agent/stop_condition/protocols.py +0 -0
- {axc_agent_engine-2.3.1 → axc_agent_engine-3.0.0}/axc_agent_engine/sidecar/multi_agent/types.py +0 -0
- {axc_agent_engine-2.3.1 → axc_agent_engine-3.0.0}/axc_agent_engine/sidecar/simulation/__init__.py +0 -0
- {axc_agent_engine-2.3.1 → axc_agent_engine-3.0.0}/axc_agent_engine/sidecar/simulation/action_parser.py +0 -0
- {axc_agent_engine-2.3.1 → axc_agent_engine-3.0.0}/axc_agent_engine/sidecar/simulation/adapters.py +0 -0
- {axc_agent_engine-2.3.1 → axc_agent_engine-3.0.0}/axc_agent_engine/sidecar/simulation/defaults.py +0 -0
- {axc_agent_engine-2.3.1 → axc_agent_engine-3.0.0}/axc_agent_engine/sidecar/simulation/interfaces.py +0 -0
- {axc_agent_engine-2.3.1 → axc_agent_engine-3.0.0}/axc_agent_engine/sidecar/simulation/report.py +0 -0
- {axc_agent_engine-2.3.1 → axc_agent_engine-3.0.0}/axc_agent_engine/tools/__init__.py +0 -0
- {axc_agent_engine-2.3.1 → axc_agent_engine-3.0.0}/axc_agent_engine/tools/audit.py +0 -0
- {axc_agent_engine-2.3.1 → axc_agent_engine-3.0.0}/axc_agent_engine/tools/batches.py +0 -0
- {axc_agent_engine-2.3.1 → axc_agent_engine-3.0.0}/axc_agent_engine/tools/decorator.py +0 -0
- {axc_agent_engine-2.3.1 → axc_agent_engine-3.0.0}/axc_agent_engine/tools/name_mapping.py +0 -0
- {axc_agent_engine-2.3.1 → axc_agent_engine-3.0.0}/axc_agent_engine/tools/orchestrator.py +0 -0
- {axc_agent_engine-2.3.1 → axc_agent_engine-3.0.0}/axc_agent_engine/tools/policy.py +0 -0
- {axc_agent_engine-2.3.1 → axc_agent_engine-3.0.0}/axc_agent_engine/tools/registry.py +0 -0
- {axc_agent_engine-2.3.1 → axc_agent_engine-3.0.0}/axc_agent_engine/tools/runtime.py +0 -0
- {axc_agent_engine-2.3.1 → axc_agent_engine-3.0.0}/axc_agent_engine/tools/utils.py +0 -0
- {axc_agent_engine-2.3.1 → axc_agent_engine-3.0.0}/axc_agent_engine/utils/__init__.py +0 -0
- {axc_agent_engine-2.3.1 → axc_agent_engine-3.0.0}/axc_agent_engine/utils/json_utils.py +0 -0
- {axc_agent_engine-2.3.1 → axc_agent_engine-3.0.0}/axc_agent_engine/utils/math_utils.py +0 -0
- {axc_agent_engine-2.3.1 → axc_agent_engine-3.0.0}/axc_agent_engine/workflow/__init__.py +0 -0
- {axc_agent_engine-2.3.1 → axc_agent_engine-3.0.0}/axc_agent_engine/workflow/burr_runtime.py +0 -0
- {axc_agent_engine-2.3.1 → axc_agent_engine-3.0.0}/axc_agent_engine/workflow/factory.py +0 -0
- {axc_agent_engine-2.3.1 → axc_agent_engine-3.0.0}/axc_agent_engine/workflow/memory_runtime.py +0 -0
- {axc_agent_engine-2.3.1 → axc_agent_engine-3.0.0}/axc_agent_engine/workflow/protocols.py +0 -0
- {axc_agent_engine-2.3.1 → axc_agent_engine-3.0.0}/docs/API.md +0 -0
- {axc_agent_engine-2.3.1 → axc_agent_engine-3.0.0}/docs/OPEN_SOURCE_REPORT.md +0 -0
- {axc_agent_engine-2.3.1 → axc_agent_engine-3.0.0}/docs/RELEASE_CHECKLIST.md +0 -0
- {axc_agent_engine-2.3.1 → axc_agent_engine-3.0.0}/examples/01_basic_chat/README.md +0 -0
- {axc_agent_engine-2.3.1 → axc_agent_engine-3.0.0}/examples/01_basic_chat/agent.yaml +0 -0
- {axc_agent_engine-2.3.1 → axc_agent_engine-3.0.0}/examples/01_basic_chat/run.py +0 -0
- {axc_agent_engine-2.3.1 → axc_agent_engine-3.0.0}/examples/02_tool_agent/agent.yaml +0 -0
- {axc_agent_engine-2.3.1 → axc_agent_engine-3.0.0}/examples/02_tool_agent/run.py +0 -0
- {axc_agent_engine-2.3.1 → axc_agent_engine-3.0.0}/examples/03_rag_agent/agent.yaml +0 -0
- {axc_agent_engine-2.3.1 → axc_agent_engine-3.0.0}/examples/03_rag_agent/docs/faq.md +0 -0
- {axc_agent_engine-2.3.1 → axc_agent_engine-3.0.0}/examples/03_rag_agent/run.py +0 -0
- {axc_agent_engine-2.3.1 → axc_agent_engine-3.0.0}/examples/04_streaming/agent.yaml +0 -0
- {axc_agent_engine-2.3.1 → axc_agent_engine-3.0.0}/examples/04_streaming/run.py +0 -0
- {axc_agent_engine-2.3.1 → axc_agent_engine-3.0.0}/examples/05_custom_plugin/agent.yaml +0 -0
- {axc_agent_engine-2.3.1 → axc_agent_engine-3.0.0}/examples/05_custom_plugin/my_plugin.py +0 -0
- {axc_agent_engine-2.3.1 → axc_agent_engine-3.0.0}/examples/05_custom_plugin/run.py +0 -0
- {axc_agent_engine-2.3.1 → axc_agent_engine-3.0.0}/examples/06_multi_agent/agent_dev.yaml +0 -0
- {axc_agent_engine-2.3.1 → axc_agent_engine-3.0.0}/examples/06_multi_agent/agent_pm.yaml +0 -0
- {axc_agent_engine-2.3.1 → axc_agent_engine-3.0.0}/examples/06_multi_agent/agent_supervisor.yaml +0 -0
- {axc_agent_engine-2.3.1 → axc_agent_engine-3.0.0}/examples/06_multi_agent/run_group_chat.py +0 -0
- {axc_agent_engine-2.3.1 → axc_agent_engine-3.0.0}/examples/06_multi_agent/run_supervisor.py +0 -0
- {axc_agent_engine-2.3.1 → axc_agent_engine-3.0.0}/examples/07_simulation/agent_blue.yaml +0 -0
- {axc_agent_engine-2.3.1 → axc_agent_engine-3.0.0}/examples/07_simulation/agent_con.yaml +0 -0
- {axc_agent_engine-2.3.1 → axc_agent_engine-3.0.0}/examples/07_simulation/agent_pro.yaml +0 -0
- {axc_agent_engine-2.3.1 → axc_agent_engine-3.0.0}/examples/07_simulation/agent_red.yaml +0 -0
- {axc_agent_engine-2.3.1 → axc_agent_engine-3.0.0}/examples/07_simulation/run_debate.py +0 -0
- {axc_agent_engine-2.3.1 → axc_agent_engine-3.0.0}/examples/07_simulation/run_redblue.py +0 -0
- {axc_agent_engine-2.3.1 → axc_agent_engine-3.0.0}/examples/README.md +0 -0
- {axc_agent_engine-2.3.1 → axc_agent_engine-3.0.0}/llms.txt +0 -0
- {axc_agent_engine-2.3.1 → axc_agent_engine-3.0.0}/tests/__init__.py +0 -0
- {axc_agent_engine-2.3.1 → axc_agent_engine-3.0.0}/tests/api/__init__.py +0 -0
- {axc_agent_engine-2.3.1 → axc_agent_engine-3.0.0}/tests/api/test_api_chat.py +0 -0
- {axc_agent_engine-2.3.1 → axc_agent_engine-3.0.0}/tests/boundaries/__init__.py +0 -0
- {axc_agent_engine-2.3.1 → axc_agent_engine-3.0.0}/tests/boundaries/test_core_dependency_boundaries.py +0 -0
- {axc_agent_engine-2.3.1 → axc_agent_engine-3.0.0}/tests/boundaries/test_engine_plugin_boundaries.py +0 -0
- {axc_agent_engine-2.3.1 → axc_agent_engine-3.0.0}/tests/boundaries/test_plugin_config_schema_boundaries.py +0 -0
- {axc_agent_engine-2.3.1 → axc_agent_engine-3.0.0}/tests/boundaries/test_pyproject_deps.py +0 -0
- {axc_agent_engine-2.3.1 → axc_agent_engine-3.0.0}/tests/boundaries/test_source_text_policy.py +0 -0
- {axc_agent_engine-2.3.1 → axc_agent_engine-3.0.0}/tests/cli/test_cli.py +0 -0
- {axc_agent_engine-2.3.1 → axc_agent_engine-3.0.0}/tests/core/__init__.py +0 -0
- {axc_agent_engine-2.3.1 → axc_agent_engine-3.0.0}/tests/core/test_constants.py +0 -0
- {axc_agent_engine-2.3.1 → axc_agent_engine-3.0.0}/tests/core/test_context.py +0 -0
- {axc_agent_engine-2.3.1 → axc_agent_engine-3.0.0}/tests/core/test_event_categories.py +0 -0
- {axc_agent_engine-2.3.1 → axc_agent_engine-3.0.0}/tests/core/test_execution_config_workspace.py +0 -0
- {axc_agent_engine-2.3.1 → axc_agent_engine-3.0.0}/tests/core/test_message_store_snapshot.py +0 -0
- {axc_agent_engine-2.3.1 → axc_agent_engine-3.0.0}/tests/core/test_realtime_stream.py +0 -0
- {axc_agent_engine-2.3.1 → axc_agent_engine-3.0.0}/tests/core/test_stream_aggregator.py +0 -0
- {axc_agent_engine-2.3.1 → axc_agent_engine-3.0.0}/tests/engine/__init__.py +0 -0
- {axc_agent_engine-2.3.1 → axc_agent_engine-3.0.0}/tests/llm/__init__.py +0 -0
- {axc_agent_engine-2.3.1 → axc_agent_engine-3.0.0}/tests/llm/test_provider.py +0 -0
- {axc_agent_engine-2.3.1 → axc_agent_engine-3.0.0}/tests/observability/__init__.py +0 -0
- {axc_agent_engine-2.3.1 → axc_agent_engine-3.0.0}/tests/observability/test_logging.py +0 -0
- {axc_agent_engine-2.3.1 → axc_agent_engine-3.0.0}/tests/planning/__init__.py +0 -0
- {axc_agent_engine-2.3.1 → axc_agent_engine-3.0.0}/tests/planning/test_plan_runtime.py +0 -0
- {axc_agent_engine-2.3.1 → axc_agent_engine-3.0.0}/tests/planning/test_planning.py +0 -0
- {axc_agent_engine-2.3.1 → axc_agent_engine-3.0.0}/tests/planning/test_por_graph_runtime.py +0 -0
- {axc_agent_engine-2.3.1 → axc_agent_engine-3.0.0}/tests/planning/test_por_runner_edges.py +0 -0
- {axc_agent_engine-2.3.1 → axc_agent_engine-3.0.0}/tests/plugins/__init__.py +0 -0
- {axc_agent_engine-2.3.1 → axc_agent_engine-3.0.0}/tests/plugins/test_config_schema.py +0 -0
- {axc_agent_engine-2.3.1 → axc_agent_engine-3.0.0}/tests/plugins/test_graph_plugin.py +0 -0
- {axc_agent_engine-2.3.1 → axc_agent_engine-3.0.0}/tests/plugins/test_hooks_and_hitl.py +0 -0
- {axc_agent_engine-2.3.1 → axc_agent_engine-3.0.0}/tests/plugins/test_knowledge_core.py +0 -0
- {axc_agent_engine-2.3.1 → axc_agent_engine-3.0.0}/tests/plugins/test_knowledge_vector.py +0 -0
- {axc_agent_engine-2.3.1 → axc_agent_engine-3.0.0}/tests/plugins/test_memory_core.py +0 -0
- {axc_agent_engine-2.3.1 → axc_agent_engine-3.0.0}/tests/plugins/test_memory_support.py +0 -0
- {axc_agent_engine-2.3.1 → axc_agent_engine-3.0.0}/tests/plugins/test_plugin_context_workspace.py +0 -0
- {axc_agent_engine-2.3.1 → axc_agent_engine-3.0.0}/tests/plugins/test_plugin_dependencies.py +0 -0
- {axc_agent_engine-2.3.1 → axc_agent_engine-3.0.0}/tests/plugins/test_plugin_isolation.py +0 -0
- {axc_agent_engine-2.3.1 → axc_agent_engine-3.0.0}/tests/plugins/test_plugin_post_tool_call.py +0 -0
- {axc_agent_engine-2.3.1 → axc_agent_engine-3.0.0}/tests/plugins/test_plugin_registry.py +0 -0
- {axc_agent_engine-2.3.1 → axc_agent_engine-3.0.0}/tests/plugins/test_vector_store_capacity.py +0 -0
- {axc_agent_engine-2.3.1 → axc_agent_engine-3.0.0}/tests/runtime/__init__.py +0 -0
- {axc_agent_engine-2.3.1 → axc_agent_engine-3.0.0}/tests/runtime/test_capability_gate.py +0 -0
- {axc_agent_engine-2.3.1 → axc_agent_engine-3.0.0}/tests/runtime/test_concurrency.py +0 -0
- {axc_agent_engine-2.3.1 → axc_agent_engine-3.0.0}/tests/runtime/test_run_control.py +0 -0
- {axc_agent_engine-2.3.1 → axc_agent_engine-3.0.0}/tests/sidecar/__init__.py +0 -0
- {axc_agent_engine-2.3.1 → axc_agent_engine-3.0.0}/tests/sidecar/test_multi_agent_modes.py +0 -0
- {axc_agent_engine-2.3.1 → axc_agent_engine-3.0.0}/tests/storage/__init__.py +0 -0
- {axc_agent_engine-2.3.1 → axc_agent_engine-3.0.0}/tests/tools/__init__.py +0 -0
- {axc_agent_engine-2.3.1 → axc_agent_engine-3.0.0}/tests/tools/test_decorator_tooloutput.py +0 -0
- {axc_agent_engine-2.3.1 → axc_agent_engine-3.0.0}/tests/tools/test_tool_orchestrator_timeout.py +0 -0
- {axc_agent_engine-2.3.1 → axc_agent_engine-3.0.0}/tests/tools/test_tool_validation.py +0 -0
- {axc_agent_engine-2.3.1 → axc_agent_engine-3.0.0}/tests/utils/__init__.py +0 -0
- {axc_agent_engine-2.3.1 → axc_agent_engine-3.0.0}/tests/utils/test_json_utils.py +0 -0
- {axc_agent_engine-2.3.1 → axc_agent_engine-3.0.0}/tests/utils/test_math_utils.py +0 -0
- {axc_agent_engine-2.3.1 → axc_agent_engine-3.0.0}/tests/workflow/__init__.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
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
.PHONY: test test-cov test-core-cov lint format build clean
|
|
2
|
+
|
|
3
|
+
PYTHON ?= .venv/bin/python
|
|
4
|
+
|
|
5
|
+
test:
|
|
6
|
+
$(PYTHON) -m pytest tests/ -v --tb=short
|
|
7
|
+
|
|
8
|
+
test-cov:
|
|
9
|
+
$(PYTHON) -m pytest tests/ -v --cov=axc_agent_engine --cov-report=html
|
|
10
|
+
|
|
11
|
+
test-core-cov:
|
|
12
|
+
$(PYTHON) -m pytest tests/core tests/engine tests/runtime tests/tools tests/storage tests/workflow tests/planning \
|
|
13
|
+
--cov=axc_agent_engine.agent \
|
|
14
|
+
--cov=axc_agent_engine.engine \
|
|
15
|
+
--cov=axc_agent_engine.core \
|
|
16
|
+
--cov=axc_agent_engine.runtime \
|
|
17
|
+
--cov=axc_agent_engine.tools \
|
|
18
|
+
--cov=axc_agent_engine.storage \
|
|
19
|
+
--cov=axc_agent_engine.workflow \
|
|
20
|
+
--cov=axc_agent_engine.planning \
|
|
21
|
+
--cov-report=term-missing:skip-covered \
|
|
22
|
+
--cov-fail-under=98 -q
|
|
23
|
+
|
|
24
|
+
lint:
|
|
25
|
+
ruff check axc_agent_engine/
|
|
26
|
+
|
|
27
|
+
format:
|
|
28
|
+
ruff format axc_agent_engine/
|
|
29
|
+
|
|
30
|
+
build:
|
|
31
|
+
$(PYTHON) -m build
|
|
32
|
+
|
|
33
|
+
clean:
|
|
34
|
+
rm -rf dist/ build/ *.egg-info .pytest_cache .ruff_cache htmlcov coverage.xml
|
|
35
|
+
find . -type d -name __pycache__ -exec rm -rf {} + 2>/dev/null || true
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
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]"
|
|
@@ -193,7 +193,7 @@ system_prompt: |
|
|
|
193
193
|
plugins:
|
|
194
194
|
builtin_tools:
|
|
195
195
|
enabled: true
|
|
196
|
-
load: ["get_time", "file_read", "file_write", "http_request", "
|
|
196
|
+
load: ["get_time", "file_read", "file_write", "http_request", "artifact_read"]
|
|
197
197
|
defer: ["file_write", "http_request"]
|
|
198
198
|
|
|
199
199
|
knowledge:
|
|
@@ -357,12 +357,31 @@ Unsupported part types fail immediately. Official plugins do not fetch host medi
|
|
|
357
357
|
|
|
358
358
|
`ToolOutput` separates the LLM context view from the UI display view:
|
|
359
359
|
|
|
360
|
-
- `
|
|
361
|
-
- `
|
|
362
|
-
- `
|
|
360
|
+
- `content` remains the structured tool payload for hosts, UI, artifacts, and programmatic handling.
|
|
361
|
+
- `llm_view` is an optional text view written for LLM reasoning. Use it when structured JSON would be harder for the model to read.
|
|
362
|
+
- `context_view()` is written into `MessageStore` for the next LLM round. It prefers `durable_summary`, then `llm_view`, then full `content`, and preserves artifact refs. `summary` is metadata, not a replacement for the LLM view.
|
|
363
|
+
- `display_view()` is used by `tool_result` events for host/UI display. It exposes full content; UI preview limits belong in the host UI layer.
|
|
364
|
+
- New code should call `context_view()` or `display_view()` explicitly.
|
|
363
365
|
|
|
364
366
|
Hosts should not monkey patch `ToolOutput` to change LLM context behavior.
|
|
365
367
|
|
|
368
|
+
Tool implementations must not use default truncation, omission, or count-only `llm_view` text. List-style tools must include item identifiers such as names, paths, or ids. Content-style tools must return full content unless the caller explicitly requested ranges or pages. Oversized results should be externalized to an `ArtifactStore` artifact and the `llm_view` must include the `artifact_id` and tell the model to use `artifact_read` or `artifact_page`; it must not emit vague omitted text.
|
|
369
|
+
|
|
370
|
+
Official high-signal tools such as `agent_list`, `agent_call`, `knowledge_search`, `graph_search`, `memory_search`, `swarm_dispatch`, `file_read`, `file_list`, `file_glob`, `file_tree`, `list_traces`, `get_trace`, and `artifact_search` provide LLM-friendly `llm_view` text while keeping structured `content` for hosts.
|
|
371
|
+
|
|
372
|
+
## ArtifactStore
|
|
373
|
+
|
|
374
|
+
`ArtifactStore` is the host-owned storage boundary for large tool results and generated artifacts. The engine defines the protocol and ships `InMemoryArtifactStore` for local development. Production hosts should inject a durable backend through `Engine(artifact_store=...)`.
|
|
375
|
+
|
|
376
|
+
The protocol supports text, bytes, and file-reference artifacts:
|
|
377
|
+
|
|
378
|
+
- `put_text(...)` and `put_bytes(...)` store inline content in the backend.
|
|
379
|
+
- `put_file_ref(path, ...)` registers a file path without copying the file into memory or duplicating a large file.
|
|
380
|
+
- `read(...)`, `read_page(...)`, and `search(...)` are exposed to the model through `artifact_read`, `artifact_page`, and `artifact_search`.
|
|
381
|
+
- `stat(...)`, `delete(...)`, `delete_run(...)`, and `gc(...)` let the host manage lifecycle.
|
|
382
|
+
|
|
383
|
+
Artifacts can carry `run_id`, `expires_at`, and `durable` metadata. Non-durable artifacts should be garbage-collected by run/session policy; durable artifacts are retained by host policy.
|
|
384
|
+
|
|
366
385
|
## Durable Tool Results and Sub-Agent Events
|
|
367
386
|
|
|
368
387
|
The `compress` plugin preserves assistant tool calls and their matching tool results as atomic groups. Durable tool results are also saved into the compression boundary and reinjected after context packing. By default, `agent_call` and `knowledge_search` are durable; domain tools can opt in with `compress.durable_tools.names`, `compress.durable_tools.capabilities`, or `ToolOutput.with_metadata({"durable": True, "durable_summary": "..."})`.
|
|
@@ -567,7 +586,13 @@ class MyPlugin(BasePlugin):
|
|
|
567
586
|
return True, arguments
|
|
568
587
|
|
|
569
588
|
async def _execute(self, args: dict, context: dict) -> ToolOutput:
|
|
570
|
-
|
|
589
|
+
data = {"query": args["query"], "matches": [{"title": "Example", "score": 0.92}]}
|
|
590
|
+
return ToolOutput(
|
|
591
|
+
content=data,
|
|
592
|
+
content_type="json",
|
|
593
|
+
summary="Found 1 match",
|
|
594
|
+
llm_view="Search results:\n1. Example | score=0.92",
|
|
595
|
+
)
|
|
571
596
|
```
|
|
572
597
|
|
|
573
598
|
Plugins must inherit `BasePlugin`, declare `config_schema`, and return tools as `ToolDefinition` instances. `ToolRegistry` does not accept dicts.
|
|
@@ -612,6 +637,7 @@ CLI logging flags are global and must be placed before the subcommand.
|
|
|
612
637
|
- **LLM config lives in code.** Agent YAML describes runtime limits, capabilities, and plugins.
|
|
613
638
|
- **Fatal errors are not hidden by fallback logic.** Invalid configuration, invalid runtime resources, broken tool contracts, and flow errors must fail clearly.
|
|
614
639
|
- **Official plugins stay lean.** They may strengthen Agent behavior, but they do not own host network clients, deployment API keys, external services, or deployment-specific protocols.
|
|
640
|
+
- **Package `__init__.py` files only re-export symbols.** Implementations, registries, factories, version constants, and protocols live in normal modules.
|
|
615
641
|
- **Runtime resources use mounts.** Do not pass resources through YAML or `overrides`.
|
|
616
642
|
- **Request correlation uses metadata.** Hosts pass external trace identifiers through `metadata`; tracing spans persist them directly.
|
|
617
643
|
- **The API is a subset.** Request-level `tools`, `tool_choice`, `n > 1` are rejected.
|
|
@@ -619,8 +645,8 @@ CLI logging flags are global and must be placed before the subcommand.
|
|
|
619
645
|
## Tests
|
|
620
646
|
|
|
621
647
|
```bash
|
|
622
|
-
|
|
623
|
-
|
|
648
|
+
.venv/bin/python -m pytest --cov=axc_agent_engine -q
|
|
649
|
+
make test-core-cov
|
|
624
650
|
```
|
|
625
651
|
|
|
626
|
-
The release gate requires at least 95% total coverage.
|
|
652
|
+
The release gate requires at least 95% total coverage. The engine-body coverage target is 98%.
|
|
@@ -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]"
|
|
@@ -143,7 +143,7 @@ system_prompt: |
|
|
|
143
143
|
plugins:
|
|
144
144
|
builtin_tools:
|
|
145
145
|
enabled: true
|
|
146
|
-
load: ["get_time", "file_read", "file_write", "http_request", "
|
|
146
|
+
load: ["get_time", "file_read", "file_write", "http_request", "artifact_read"]
|
|
147
147
|
defer: ["file_write", "http_request"]
|
|
148
148
|
|
|
149
149
|
knowledge:
|
|
@@ -307,12 +307,31 @@ Unsupported part types fail immediately. Official plugins do not fetch host medi
|
|
|
307
307
|
|
|
308
308
|
`ToolOutput` separates the LLM context view from the UI display view:
|
|
309
309
|
|
|
310
|
-
- `
|
|
311
|
-
- `
|
|
312
|
-
- `
|
|
310
|
+
- `content` remains the structured tool payload for hosts, UI, artifacts, and programmatic handling.
|
|
311
|
+
- `llm_view` is an optional text view written for LLM reasoning. Use it when structured JSON would be harder for the model to read.
|
|
312
|
+
- `context_view()` is written into `MessageStore` for the next LLM round. It prefers `durable_summary`, then `llm_view`, then full `content`, and preserves artifact refs. `summary` is metadata, not a replacement for the LLM view.
|
|
313
|
+
- `display_view()` is used by `tool_result` events for host/UI display. It exposes full content; UI preview limits belong in the host UI layer.
|
|
314
|
+
- New code should call `context_view()` or `display_view()` explicitly.
|
|
313
315
|
|
|
314
316
|
Hosts should not monkey patch `ToolOutput` to change LLM context behavior.
|
|
315
317
|
|
|
318
|
+
Tool implementations must not use default truncation, omission, or count-only `llm_view` text. List-style tools must include item identifiers such as names, paths, or ids. Content-style tools must return full content unless the caller explicitly requested ranges or pages. Oversized results should be externalized to an `ArtifactStore` artifact and the `llm_view` must include the `artifact_id` and tell the model to use `artifact_read` or `artifact_page`; it must not emit vague omitted text.
|
|
319
|
+
|
|
320
|
+
Official high-signal tools such as `agent_list`, `agent_call`, `knowledge_search`, `graph_search`, `memory_search`, `swarm_dispatch`, `file_read`, `file_list`, `file_glob`, `file_tree`, `list_traces`, `get_trace`, and `artifact_search` provide LLM-friendly `llm_view` text while keeping structured `content` for hosts.
|
|
321
|
+
|
|
322
|
+
## ArtifactStore
|
|
323
|
+
|
|
324
|
+
`ArtifactStore` is the host-owned storage boundary for large tool results and generated artifacts. The engine defines the protocol and ships `InMemoryArtifactStore` for local development. Production hosts should inject a durable backend through `Engine(artifact_store=...)`.
|
|
325
|
+
|
|
326
|
+
The protocol supports text, bytes, and file-reference artifacts:
|
|
327
|
+
|
|
328
|
+
- `put_text(...)` and `put_bytes(...)` store inline content in the backend.
|
|
329
|
+
- `put_file_ref(path, ...)` registers a file path without copying the file into memory or duplicating a large file.
|
|
330
|
+
- `read(...)`, `read_page(...)`, and `search(...)` are exposed to the model through `artifact_read`, `artifact_page`, and `artifact_search`.
|
|
331
|
+
- `stat(...)`, `delete(...)`, `delete_run(...)`, and `gc(...)` let the host manage lifecycle.
|
|
332
|
+
|
|
333
|
+
Artifacts can carry `run_id`, `expires_at`, and `durable` metadata. Non-durable artifacts should be garbage-collected by run/session policy; durable artifacts are retained by host policy.
|
|
334
|
+
|
|
316
335
|
## Durable Tool Results and Sub-Agent Events
|
|
317
336
|
|
|
318
337
|
The `compress` plugin preserves assistant tool calls and their matching tool results as atomic groups. Durable tool results are also saved into the compression boundary and reinjected after context packing. By default, `agent_call` and `knowledge_search` are durable; domain tools can opt in with `compress.durable_tools.names`, `compress.durable_tools.capabilities`, or `ToolOutput.with_metadata({"durable": True, "durable_summary": "..."})`.
|
|
@@ -517,7 +536,13 @@ class MyPlugin(BasePlugin):
|
|
|
517
536
|
return True, arguments
|
|
518
537
|
|
|
519
538
|
async def _execute(self, args: dict, context: dict) -> ToolOutput:
|
|
520
|
-
|
|
539
|
+
data = {"query": args["query"], "matches": [{"title": "Example", "score": 0.92}]}
|
|
540
|
+
return ToolOutput(
|
|
541
|
+
content=data,
|
|
542
|
+
content_type="json",
|
|
543
|
+
summary="Found 1 match",
|
|
544
|
+
llm_view="Search results:\n1. Example | score=0.92",
|
|
545
|
+
)
|
|
521
546
|
```
|
|
522
547
|
|
|
523
548
|
Plugins must inherit `BasePlugin`, declare `config_schema`, and return tools as `ToolDefinition` instances. `ToolRegistry` does not accept dicts.
|
|
@@ -562,6 +587,7 @@ CLI logging flags are global and must be placed before the subcommand.
|
|
|
562
587
|
- **LLM config lives in code.** Agent YAML describes runtime limits, capabilities, and plugins.
|
|
563
588
|
- **Fatal errors are not hidden by fallback logic.** Invalid configuration, invalid runtime resources, broken tool contracts, and flow errors must fail clearly.
|
|
564
589
|
- **Official plugins stay lean.** They may strengthen Agent behavior, but they do not own host network clients, deployment API keys, external services, or deployment-specific protocols.
|
|
590
|
+
- **Package `__init__.py` files only re-export symbols.** Implementations, registries, factories, version constants, and protocols live in normal modules.
|
|
565
591
|
- **Runtime resources use mounts.** Do not pass resources through YAML or `overrides`.
|
|
566
592
|
- **Request correlation uses metadata.** Hosts pass external trace identifiers through `metadata`; tracing spans persist them directly.
|
|
567
593
|
- **The API is a subset.** Request-level `tools`, `tool_choice`, `n > 1` are rejected.
|
|
@@ -569,8 +595,8 @@ CLI logging flags are global and must be placed before the subcommand.
|
|
|
569
595
|
## Tests
|
|
570
596
|
|
|
571
597
|
```bash
|
|
572
|
-
|
|
573
|
-
|
|
598
|
+
.venv/bin/python -m pytest --cov=axc_agent_engine -q
|
|
599
|
+
make test-core-cov
|
|
574
600
|
```
|
|
575
601
|
|
|
576
|
-
The release gate requires at least 95% total coverage.
|
|
602
|
+
The release gate requires at least 95% total coverage. The engine-body coverage target is 98%.
|
|
@@ -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]"
|
|
@@ -144,7 +144,7 @@ system_prompt: |
|
|
|
144
144
|
plugins:
|
|
145
145
|
builtin_tools:
|
|
146
146
|
enabled: true
|
|
147
|
-
load: ["get_time", "file_read", "file_write", "http_request", "
|
|
147
|
+
load: ["get_time", "file_read", "file_write", "http_request", "artifact_read"]
|
|
148
148
|
defer: ["file_write", "http_request"]
|
|
149
149
|
|
|
150
150
|
knowledge:
|
|
@@ -308,12 +308,31 @@ messages = [{
|
|
|
308
308
|
|
|
309
309
|
`ToolOutput` 明确分离 LLM 上下文视图和 UI 展示视图:
|
|
310
310
|
|
|
311
|
-
- `
|
|
312
|
-
- `
|
|
313
|
-
- `
|
|
311
|
+
- `content` 继续作为结构化工具结果,给宿主、UI、artifact 和程序化处理使用。
|
|
312
|
+
- `llm_view` 是可选的 LLM 文本视图。结构化 JSON 不利于模型理解时,工具应显式提供它。
|
|
313
|
+
- `context_view()` 写入 `MessageStore`,供下一轮 LLM 使用。它优先使用 `durable_summary`,其次 `llm_view`,最后使用完整 `content`,并保留 artifact refs。`summary` 是元数据,不替代 LLM 视图。
|
|
314
|
+
- `display_view()` 用于 `tool_result` 事件和宿主/UI 展示,暴露完整内容;UI 预览限制属于宿主 UI 层。
|
|
315
|
+
- 新代码应显式调用 `context_view()` 或 `display_view()`。
|
|
314
316
|
|
|
315
317
|
宿主不要 monkey patch `ToolOutput` 来改变 LLM 上下文行为。
|
|
316
318
|
|
|
319
|
+
工具实现禁止默认截断、省略或只给计数式 `llm_view`。列表类工具必须包含条目标识,例如名称、路径或 id。内容类工具默认返回完整内容,除非调用方显式请求 ranges 或分页。超大结果应外部化到 `ArtifactStore` artifact,`llm_view` 必须给出 `artifact_id` 并提示模型使用 `artifact_read` 或 `artifact_page`,不能输出含糊的省略文本。
|
|
320
|
+
|
|
321
|
+
官方高收益工具已经提供 LLM 友好的 `llm_view`,包括 `agent_list`、`agent_call`、`knowledge_search`、`graph_search`、`memory_search`、`swarm_dispatch`、`file_read`、`file_list`、`file_glob`、`file_tree`、`list_traces`、`get_trace`、`artifact_search`;它们仍保留结构化 `content` 给宿主使用。
|
|
322
|
+
|
|
323
|
+
## ArtifactStore
|
|
324
|
+
|
|
325
|
+
`ArtifactStore` 是大工具结果和工具产物的宿主存储边界。引擎定义协议,并提供 `InMemoryArtifactStore` 给本地开发和测试使用;生产宿主应通过 `Engine(artifact_store=...)` 注入自己的持久化实现。
|
|
326
|
+
|
|
327
|
+
协议支持三类写入:
|
|
328
|
+
|
|
329
|
+
- `put_text(...)` / `put_bytes(...)`:把文本或字节内容写入后端。
|
|
330
|
+
- `put_file_ref(path, ...)`:只注册文件路径引用,不把大文件读入内存,也不复制一份 10GB 文件。
|
|
331
|
+
- `read(...)` / `read_page(...)` / `search(...)`:分别由 `artifact_read`、`artifact_page`、`artifact_search` 暴露给模型继续读取。
|
|
332
|
+
- `stat(...)` / `delete(...)` / `delete_run(...)` / `gc(...)`:给宿主管理生命周期。
|
|
333
|
+
|
|
334
|
+
artifact 可携带 `run_id`、`expires_at`、`durable` 元数据。非 durable artifact 应按 run/session 策略清理;durable artifact 由宿主保留策略决定。
|
|
335
|
+
|
|
317
336
|
## 持久工具结果与子 Agent 事件
|
|
318
337
|
|
|
319
338
|
`compress` 插件会把 assistant `tool_calls` 和对应的 tool result 当作原子组保留。持久工具结果还会写入压缩边界,并在上下文打包后重新注入。默认 `agent_call` 和 `knowledge_search` 是持久工具;领域工具可以通过 `compress.durable_tools.names`、`compress.durable_tools.capabilities` 或 `ToolOutput.with_metadata({"durable": True, "durable_summary": "..."})` 标记。
|
|
@@ -494,7 +513,13 @@ class MyPlugin(BasePlugin):
|
|
|
494
513
|
return True, arguments
|
|
495
514
|
|
|
496
515
|
async def _execute(self, args: dict, context: dict) -> ToolOutput:
|
|
497
|
-
|
|
516
|
+
data = {"query": args["query"], "matches": [{"title": "Example", "score": 0.92}]}
|
|
517
|
+
return ToolOutput(
|
|
518
|
+
content=data,
|
|
519
|
+
content_type="json",
|
|
520
|
+
summary="Found 1 match",
|
|
521
|
+
llm_view="Search results:\n1. Example | score=0.92",
|
|
522
|
+
)
|
|
498
523
|
```
|
|
499
524
|
|
|
500
525
|
插件必须继承 `BasePlugin`,必须声明 `config_schema`,工具必须返回 `ToolDefinition` 实例,`ToolRegistry` 不接受 dict。
|
|
@@ -539,6 +564,7 @@ CLI 日志参数是全局参数,需要放在子命令前。
|
|
|
539
564
|
- **LLM 配置在代码中。** Agent YAML 只描述运行时限制、能力和插件。
|
|
540
565
|
- **致命错误不做兜底隐藏。** 配置错误、运行时资源错误、工具协议错误、流程错误都必须明确失败。
|
|
541
566
|
- **官方插件保持精简。** 可以强化 Agent 能力,但不持有宿主网络 client、部署 API key、外部服务或部署协议。
|
|
567
|
+
- **包 `__init__.py` 只做符号导出。** 实现、注册表、factory、版本常量和协议都放在正常模块中。
|
|
542
568
|
- **运行时资源走 mounts。** 不要通过 YAML 或 `overrides` 传资源对象。
|
|
543
569
|
- **请求关联走 metadata。** 宿主通过 `metadata` 传外部 trace 标识,tracing span 原样携带落库。
|
|
544
570
|
- **API 是明确子集。** 请求级 `tools`、`tool_choice`、`n > 1` 会被拒绝。
|
|
@@ -546,8 +572,8 @@ CLI 日志参数是全局参数,需要放在子命令前。
|
|
|
546
572
|
## 测试
|
|
547
573
|
|
|
548
574
|
```bash
|
|
549
|
-
|
|
550
|
-
|
|
575
|
+
.venv/bin/python -m pytest --cov=axc_agent_engine -q
|
|
576
|
+
make test-core-cov
|
|
551
577
|
```
|
|
552
578
|
|
|
553
|
-
发布门禁要求总覆盖率不低于 95%。
|
|
579
|
+
发布门禁要求总覆盖率不低于 95%,引擎本体覆盖率目标是 98%。
|
|
@@ -9,7 +9,8 @@ from axc_agent_engine.core.schema import ToolDefinition, LLMMessage, LLMUsage, L
|
|
|
9
9
|
from axc_agent_engine.plugins.base import BasePlugin
|
|
10
10
|
from axc_agent_engine.plugins.registry import PluginRegistry
|
|
11
11
|
from axc_agent_engine.tools.decorator import tool
|
|
12
|
-
from axc_agent_engine.tools.tool_output import ToolOutput, ArtifactRef
|
|
12
|
+
from axc_agent_engine.tools.tool_output import ToolOutput, ArtifactRef
|
|
13
|
+
from axc_agent_engine.storage.artifact_store import ArtifactStore, InMemoryArtifactStore
|
|
13
14
|
from axc_agent_engine.observability.audit import AuditEvent, AuditEventType, InMemoryAuditSink
|
|
14
15
|
from axc_agent_engine.runtime.checkpoint import Checkpoint, CheckpointStatus, CheckpointStore, InMemoryCheckpointStore
|
|
15
16
|
from axc_agent_engine.runtime.policy import CapabilityPolicyEvaluator, PolicyDecision, PolicyEvaluator, PolicyRequest
|
|
@@ -21,6 +22,7 @@ from axc_agent_engine.runtime.resources import (
|
|
|
21
22
|
ResourceTypeError,
|
|
22
23
|
DuplicateResourceError,
|
|
23
24
|
)
|
|
25
|
+
from axc_agent_engine._version import __version__
|
|
24
26
|
|
|
25
27
|
__all__ = [
|
|
26
28
|
#English: Bilingual note. 中文:核心公开 API
|
|
@@ -37,17 +39,12 @@ __all__ = [
|
|
|
37
39
|
#English: Source note. 中文:能力模型
|
|
38
40
|
"Capability",
|
|
39
41
|
#English: Source note. 中文:工具输出
|
|
40
|
-
"ToolOutput", "ArtifactRef", "
|
|
42
|
+
"ToolOutput", "ArtifactRef", "ArtifactStore", "InMemoryArtifactStore",
|
|
41
43
|
#English: Source note. 中文:输入和共享资源边界
|
|
42
44
|
"InputProviderResult", "InputProvider", "PassthroughInputProvider",
|
|
43
45
|
"ResourceRegistry", "ResourceError", "ResourceNotFoundError",
|
|
44
46
|
"ResourceTypeError", "DuplicateResourceError",
|
|
45
47
|
#English: Source note. 中文:插件开发
|
|
46
48
|
"BasePlugin", "PluginRegistry", "ToolDefinition", "tool",
|
|
49
|
+
"__version__",
|
|
47
50
|
]
|
|
48
|
-
|
|
49
|
-
try:
|
|
50
|
-
from importlib.metadata import version as _get_version
|
|
51
|
-
__version__ = _get_version("axc-agent-engine")
|
|
52
|
-
except Exception:
|
|
53
|
-
__version__ = "2.3.1"
|
|
@@ -13,14 +13,16 @@ from typing import Any, AsyncIterator
|
|
|
13
13
|
from axc_agent_engine.core.context import ExecutionConfig, ExecutionContext, ExecutionServices
|
|
14
14
|
from axc_agent_engine.core.events import Event, EventType
|
|
15
15
|
from axc_agent_engine.core.executor import Executor
|
|
16
|
+
from axc_agent_engine.core.input_messages import extract_last_user_message, normalize_multimodal_messages
|
|
16
17
|
from axc_agent_engine.core.llm_caller import LLMCaller
|
|
17
18
|
from axc_agent_engine.core.plugin_manager import PluginManager
|
|
19
|
+
from axc_agent_engine.core.run_context import context_run_id, dict_or_empty
|
|
18
20
|
from axc_agent_engine.core.run_request import RunRequest
|
|
19
21
|
from axc_agent_engine.core.session import Session
|
|
20
22
|
from axc_agent_engine.core.session_manager import SessionManager
|
|
21
23
|
from axc_agent_engine.core.schema import RuntimeConfig
|
|
22
24
|
from axc_agent_engine.llm.provider import LLMProvider
|
|
23
|
-
from axc_agent_engine.plugins import agent_info_from_runtime, model_info_from_models
|
|
25
|
+
from axc_agent_engine.plugins.context import agent_info_from_runtime, model_info_from_models
|
|
24
26
|
from axc_agent_engine.plugins.base import BasePlugin
|
|
25
27
|
from axc_agent_engine.runtime.concurrency import ExecutionLimiter, SessionExecutionGate
|
|
26
28
|
from axc_agent_engine.runtime.input import InputProvider, InputProviderResult, PassthroughInputProvider
|
|
@@ -143,7 +145,7 @@ class Agent:
|
|
|
143
145
|
utility_model: LLMProvider | None = None,
|
|
144
146
|
session_manager: SessionManager | None = None,
|
|
145
147
|
registry: ToolRegistry | None = None,
|
|
146
|
-
|
|
148
|
+
artifact_store: "object | None" = None,
|
|
147
149
|
services: ExecutionServices | None = None,
|
|
148
150
|
input_provider: InputProvider | None = None,
|
|
149
151
|
engine_limiter: ExecutionLimiter | None = None,
|
|
@@ -158,12 +160,12 @@ class Agent:
|
|
|
158
160
|
self._default_model = default_model
|
|
159
161
|
self._fallback_model = fallback_model
|
|
160
162
|
self._utility_model = utility_model
|
|
161
|
-
self._session_manager = session_manager or SessionManager()
|
|
163
|
+
self._session_manager = session_manager or SessionManager(name)
|
|
162
164
|
self._registry = registry or ToolRegistry()
|
|
163
|
-
self._services = services or ExecutionServices(
|
|
165
|
+
self._services = services or ExecutionServices(artifact_store=artifact_store)
|
|
164
166
|
self._input_provider = input_provider or PassthroughInputProvider()
|
|
165
167
|
self._workflow_runtime = workflow_runtime or create_workflow_runtime()
|
|
166
|
-
self._metadata =
|
|
168
|
+
self._metadata = dict_or_empty(metadata, "metadata")
|
|
167
169
|
queue_timeout = self._runtime.concurrency.queue_timeout
|
|
168
170
|
self._engine_limiter = engine_limiter or ExecutionLimiter()
|
|
169
171
|
self._agent_limiter = ExecutionLimiter(
|
|
@@ -224,7 +226,7 @@ class Agent:
|
|
|
224
226
|
|
|
225
227
|
English: Run a non-streaming chat turn from a structured message list.
|
|
226
228
|
"""
|
|
227
|
-
user_msg =
|
|
229
|
+
user_msg = extract_last_user_message(messages)
|
|
228
230
|
return await self._execute(
|
|
229
231
|
user_message=user_msg,
|
|
230
232
|
inject_messages=messages,
|
|
@@ -272,7 +274,7 @@ class Agent:
|
|
|
272
274
|
|
|
273
275
|
English: Stream execution events from a structured message list.
|
|
274
276
|
"""
|
|
275
|
-
user_msg =
|
|
277
|
+
user_msg = extract_last_user_message(messages)
|
|
276
278
|
async for event in self._execute_stream(
|
|
277
279
|
user_message=user_msg,
|
|
278
280
|
inject_messages=messages,
|
|
@@ -326,7 +328,7 @@ class Agent:
|
|
|
326
328
|
message=message,
|
|
327
329
|
handler=lambda plan: self._resume_from_workflow_plan(plan, message, llm_options, run_options, metadata),
|
|
328
330
|
checkpoint_store=self._services.checkpoint_store,
|
|
329
|
-
metadata=
|
|
331
|
+
metadata=dict_or_empty(metadata, "metadata"),
|
|
330
332
|
)
|
|
331
333
|
async for event in self._workflow_runtime.resume(request):
|
|
332
334
|
yield event
|
|
@@ -348,7 +350,7 @@ class Agent:
|
|
|
348
350
|
session_id = plan.session_id
|
|
349
351
|
stream = bool((run_options or {}).get("stream", True))
|
|
350
352
|
async with await self._run_coordinator.slots(session_id):
|
|
351
|
-
request_metadata = {"run_id": run_id, **
|
|
353
|
+
request_metadata = {"run_id": run_id, **dict_or_empty(metadata, "metadata")}
|
|
352
354
|
request = RunRequest.create(
|
|
353
355
|
user_message=message,
|
|
354
356
|
session_id=session_id,
|
|
@@ -445,8 +447,8 @@ class Agent:
|
|
|
445
447
|
else [{"role": "user", "content": request.user_message}]
|
|
446
448
|
)
|
|
447
449
|
processed = await self._process_input(raw_messages, request.session_id)
|
|
448
|
-
processed.messages =
|
|
449
|
-
effective_user_message =
|
|
450
|
+
processed.messages = normalize_multimodal_messages(processed.messages)
|
|
451
|
+
effective_user_message = extract_last_user_message(processed.messages) or request.user_message
|
|
450
452
|
if processed.artifacts:
|
|
451
453
|
executor._ctx.state.metadata["input_artifacts"] = processed.artifacts
|
|
452
454
|
if processed.metadata:
|
|
@@ -489,11 +491,11 @@ class Agent:
|
|
|
489
491
|
|
|
490
492
|
@staticmethod
|
|
491
493
|
def _validate_resume_metadata(run_id: str, metadata: dict | None, run_options: dict | None) -> None:
|
|
492
|
-
metadata_run_id = (metadata
|
|
493
|
-
option_run_id = (run_options
|
|
494
|
-
if metadata_run_id and
|
|
494
|
+
metadata_run_id = context_run_id(dict_or_empty(metadata, "metadata"))
|
|
495
|
+
option_run_id = context_run_id(dict_or_empty(run_options, "run_options"))
|
|
496
|
+
if metadata_run_id and metadata_run_id != run_id:
|
|
495
497
|
raise ValueError("metadata.run_id conflicts with resume run_id")
|
|
496
|
-
if option_run_id and
|
|
498
|
+
if option_run_id and option_run_id != run_id:
|
|
497
499
|
raise ValueError("run_options.run_id conflicts with resume run_id")
|
|
498
500
|
|
|
499
501
|
async def _process_input(self, messages: list[dict[str, Any]], session_id: str) -> InputProviderResult:
|
|
@@ -503,61 +505,3 @@ class Agent:
|
|
|
503
505
|
"workspace": self._runtime.workspace,
|
|
504
506
|
}
|
|
505
507
|
return await self._input_provider.process(messages, context)
|
|
506
|
-
|
|
507
|
-
@staticmethod
|
|
508
|
-
def _extract_last_user_message(messages: list[dict]) -> str:
|
|
509
|
-
for msg in reversed(messages):
|
|
510
|
-
if msg.get("role") == "user":
|
|
511
|
-
return _content_to_text(msg.get("content", ""))
|
|
512
|
-
return ""
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
def _content_to_text(content: Any) -> str:
|
|
516
|
-
"""Extract a textual goal from string or OpenAI-compatible multimodal content.
|
|
517
|
-
中文:此文档说明相关引擎组件的行为。"""
|
|
518
|
-
if isinstance(content, str):
|
|
519
|
-
return content
|
|
520
|
-
if isinstance(content, list):
|
|
521
|
-
text_parts = []
|
|
522
|
-
for part in content:
|
|
523
|
-
if isinstance(part, dict) and part.get("type") == "text":
|
|
524
|
-
text = part.get("text", "")
|
|
525
|
-
if text:
|
|
526
|
-
text_parts.append(str(text))
|
|
527
|
-
return "\n".join(text_parts)
|
|
528
|
-
return "" if content is None else str(content)
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
def _normalize_multimodal_messages(messages: list[dict[str, Any]]) -> list[dict[str, Any]]:
|
|
532
|
-
return [{**message, "content": _normalize_content_parts(message.get("content"))} for message in messages]
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
def _normalize_content_parts(content: Any) -> Any:
|
|
536
|
-
if not isinstance(content, list):
|
|
537
|
-
return content
|
|
538
|
-
parts = []
|
|
539
|
-
for part in content:
|
|
540
|
-
if not isinstance(part, dict):
|
|
541
|
-
raise TypeError("message content part must be an object")
|
|
542
|
-
part_type = str(part.get("type") or "")
|
|
543
|
-
if part_type == "text":
|
|
544
|
-
parts.append({"type": "text", "text": str(part.get("text", ""))})
|
|
545
|
-
elif part_type == "image_url":
|
|
546
|
-
image = part.get("image_url")
|
|
547
|
-
if not isinstance(image, dict) or not image.get("url"):
|
|
548
|
-
raise ValueError("image_url content part requires image_url.url")
|
|
549
|
-
parts.append({"type": "image_url", "image_url": dict(image)})
|
|
550
|
-
elif part_type == "image_base64":
|
|
551
|
-
data = str(part.get("data") or part.get("image_base64") or "")
|
|
552
|
-
media_type = str(part.get("media_type") or "image/png")
|
|
553
|
-
if not data:
|
|
554
|
-
raise ValueError("image_base64 content part requires data")
|
|
555
|
-
parts.append({"type": "image_url", "image_url": {"url": f"data:{media_type};base64,{data}"}})
|
|
556
|
-
elif part_type == "file_ref":
|
|
557
|
-
ref = str(part.get("ref") or part.get("file_ref") or "")
|
|
558
|
-
if not ref:
|
|
559
|
-
raise ValueError("file_ref content part requires ref")
|
|
560
|
-
parts.append({"type": "file_ref", "file_ref": {"ref": ref, **dict(part.get("metadata", {}) or {})}})
|
|
561
|
-
else:
|
|
562
|
-
raise ValueError(f"unsupported message content part type: {part_type}")
|
|
563
|
-
return parts
|
|
@@ -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:
|
|
@@ -13,7 +13,7 @@ from axc_agent_engine.llm.client import OpenAIClient
|
|
|
13
13
|
from axc_agent_engine.llm.rate_limited import RateLimitedProvider
|
|
14
14
|
from axc_agent_engine.core.events import EventType
|
|
15
15
|
from axc_agent_engine.observability.logging import setup_logging
|
|
16
|
-
from axc_agent_engine.plugins.builtin import AVAILABLE_BUILTIN_PLUGINS
|
|
16
|
+
from axc_agent_engine.plugins.builtin.registry import AVAILABLE_BUILTIN_PLUGINS
|
|
17
17
|
from axc_agent_engine.plugins.registry import PluginRegistry
|
|
18
18
|
|
|
19
19
|
|