wuwei 3.0.2__tar.gz → 3.2.2__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- wuwei-3.2.2/CHANGELOG.md +42 -0
- {wuwei-3.0.2 → wuwei-3.2.2}/LICENSE +200 -200
- wuwei-3.2.2/MANIFEST.in +7 -0
- wuwei-3.2.2/MIGRATION.md +55 -0
- wuwei-3.2.2/PKG-INFO +162 -0
- wuwei-3.2.2/README.md +96 -0
- wuwei-3.2.2/USAGE.md +179 -0
- wuwei-3.2.2/docs/RELEASING.md +42 -0
- wuwei-3.2.2/docs/api/reference.md +28 -0
- wuwei-3.2.2/docs/changelog.md +42 -0
- wuwei-3.2.2/docs/core/agent.md +36 -0
- wuwei-3.2.2/docs/core/architecture.md +22 -0
- wuwei-3.2.2/docs/core/session.md +16 -0
- wuwei-3.2.2/docs/examples/minimal.md +30 -0
- wuwei-3.2.2/docs/examples/offline.md +110 -0
- wuwei-3.2.2/docs/examples/session.md +21 -0
- wuwei-3.2.2/docs/getting-started/configuration.md +26 -0
- wuwei-3.2.2/docs/getting-started/installation.md +24 -0
- wuwei-3.2.2/docs/getting-started/quickstart.md +33 -0
- wuwei-3.2.2/docs/governance.md +47 -0
- wuwei-3.2.2/docs/hitl/overview.md +19 -0
- wuwei-3.2.2/docs/index.md +17 -0
- wuwei-3.2.2/docs/memory/compression.md +15 -0
- wuwei-3.2.2/docs/memory/context-window.md +7 -0
- wuwei-3.2.2/docs/memory/context.md +13 -0
- wuwei-3.2.2/docs/memory/storage.md +7 -0
- wuwei-3.2.2/docs/operations.md +17 -0
- wuwei-3.2.2/docs/planning/overview.md +7 -0
- wuwei-3.2.2/docs/planning/task-dag.md +14 -0
- wuwei-3.2.2/docs/plugin.md +18 -0
- wuwei-3.2.2/docs/protocols.md +14 -0
- wuwei-3.2.2/docs/skill/authoring.md +16 -0
- wuwei-3.2.2/docs/skill/overview.md +13 -0
- wuwei-3.2.2/docs/stylesheets/extra.css +607 -0
- wuwei-3.2.2/docs/tools/custom.md +20 -0
- wuwei-3.2.2/docs/tools/overview.md +11 -0
- wuwei-3.2.2/examples/advanced_features.py +100 -0
- wuwei-3.2.2/examples/decision_client_demo.py +67 -0
- wuwei-3.2.2/examples/full_flow.py +77 -0
- wuwei-3.2.2/examples/repl_agent.py +111 -0
- wuwei-3.2.2/examples/skills/code-review/SKILL.md +14 -0
- wuwei-3.2.2/examples/skills/code-review/scripts/count_lines.py +15 -0
- wuwei-3.2.2/mkdocs.yml +154 -0
- wuwei-3.2.2/pyproject.toml +97 -0
- {wuwei-3.0.2 → wuwei-3.2.2}/setup.cfg +4 -4
- wuwei-3.2.2/tests/conftest.py +20 -0
- wuwei-3.2.2/tests/test_boundary_hardening.py +305 -0
- {wuwei-3.0.2 → wuwei-3.2.2}/tests/test_builtin_tools.py +160 -160
- {wuwei-3.0.2 → wuwei-3.2.2}/tests/test_core.py +102 -102
- {wuwei-3.0.2 → wuwei-3.2.2}/tests/test_coverage_gaps.py +426 -430
- wuwei-3.2.2/tests/test_delegation_hardening.py +391 -0
- wuwei-3.2.2/tests/test_documentation_hardening.py +48 -0
- {wuwei-3.0.2 → wuwei-3.2.2}/tests/test_e2e_all.py +1161 -1245
- wuwei-3.2.2/tests/test_evals.py +779 -0
- {wuwei-3.0.2 → wuwei-3.2.2}/tests/test_framework.py +322 -322
- wuwei-3.2.2/tests/test_fs.py +406 -0
- {wuwei-3.0.2 → wuwei-3.2.2}/tests/test_graph.py +184 -184
- {wuwei-3.0.2 → wuwei-3.2.2}/tests/test_integration.py +599 -599
- wuwei-3.2.2/tests/test_mcp.py +686 -0
- {wuwei-3.0.2 → wuwei-3.2.2}/tests/test_middleware.py +233 -227
- wuwei-3.2.2/tests/test_middleware_lifecycle.py +169 -0
- wuwei-3.2.2/tests/test_model_hardening.py +370 -0
- {wuwei-3.0.2 → wuwei-3.2.2}/tests/test_multi_agent_integration.py +270 -270
- wuwei-3.2.2/tests/test_openai_sdk_capabilities.py +127 -0
- wuwei-3.2.2/tests/test_runtime_hardening.py +652 -0
- wuwei-3.2.2/tests/test_sandbox.py +394 -0
- wuwei-3.2.2/tests/test_serve.py +476 -0
- {wuwei-3.0.2 → wuwei-3.2.2}/tests/test_skill_execution.py +190 -190
- {wuwei-3.0.2 → wuwei-3.2.2}/tests/test_skill_integration.py +279 -279
- wuwei-3.2.2/tests/test_v31_core.py +423 -0
- wuwei-3.2.2/tests/test_v32_features.py +403 -0
- wuwei-3.2.2/tests/test_v32_kernel.py +241 -0
- wuwei-3.2.2/tests/test_vectorstore.py +379 -0
- {wuwei-3.0.2 → wuwei-3.2.2}/wuwei/__init__.py +174 -142
- {wuwei-3.0.2 → wuwei-3.2.2}/wuwei/agent/__init__.py +25 -26
- wuwei-3.2.2/wuwei/agent/agent.py +430 -0
- {wuwei-3.0.2 → wuwei-3.2.2}/wuwei/agent/async_sub_agent.py +519 -478
- {wuwei-3.0.2 → wuwei-3.2.2}/wuwei/agent/base.py +93 -93
- {wuwei-3.0.2 → wuwei-3.2.2}/wuwei/agent/multi_agent.py +464 -396
- {wuwei-3.0.2 → wuwei-3.2.2}/wuwei/agent/session.py +97 -72
- wuwei-3.2.2/wuwei/agent/sub_agent.py +316 -0
- wuwei-3.2.2/wuwei/codemode.py +169 -0
- wuwei-3.2.2/wuwei/config/__init__.py +5 -0
- wuwei-3.2.2/wuwei/config/yaml_loader.py +219 -0
- {wuwei-3.0.2 → wuwei-3.2.2}/wuwei/core/__init__.py +56 -56
- {wuwei-3.0.2 → wuwei-3.2.2}/wuwei/core/errors.py +40 -40
- {wuwei-3.0.2 → wuwei-3.2.2}/wuwei/core/message.py +153 -140
- {wuwei-3.0.2 → wuwei-3.2.2}/wuwei/core/runnable.py +136 -135
- wuwei-3.2.2/wuwei/core/types.py +102 -0
- wuwei-3.2.2/wuwei/debug.py +261 -0
- wuwei-3.2.2/wuwei/decision/__init__.py +25 -0
- wuwei-3.2.2/wuwei/decision/client.py +332 -0
- wuwei-3.2.2/wuwei/evals/__init__.py +34 -0
- wuwei-3.2.2/wuwei/evals/__main__.py +8 -0
- wuwei-3.2.2/wuwei/evals/case.py +101 -0
- wuwei-3.2.2/wuwei/evals/cli.py +95 -0
- wuwei-3.2.2/wuwei/evals/dataset.py +90 -0
- wuwei-3.2.2/wuwei/evals/report.py +109 -0
- wuwei-3.2.2/wuwei/evals/runner.py +257 -0
- wuwei-3.2.2/wuwei/fs/__init__.py +31 -0
- wuwei-3.2.2/wuwei/fs/base.py +133 -0
- wuwei-3.2.2/wuwei/fs/local.py +209 -0
- wuwei-3.2.2/wuwei/fs/memory.py +156 -0
- wuwei-3.2.2/wuwei/fs/tools.py +301 -0
- {wuwei-3.0.2 → wuwei-3.2.2}/wuwei/gateway/__init__.py +10 -10
- {wuwei-3.0.2 → wuwei-3.2.2}/wuwei/gateway/adapters/__init__.py +13 -13
- {wuwei-3.0.2 → wuwei-3.2.2}/wuwei/gateway/adapters/dingtalk.py +96 -94
- {wuwei-3.0.2 → wuwei-3.2.2}/wuwei/gateway/adapters/feishu.py +84 -82
- {wuwei-3.0.2 → wuwei-3.2.2}/wuwei/gateway/adapters/telegram.py +56 -54
- {wuwei-3.0.2 → wuwei-3.2.2}/wuwei/gateway/adapters/wechat.py +58 -57
- {wuwei-3.0.2 → wuwei-3.2.2}/wuwei/gateway/base.py +89 -88
- {wuwei-3.0.2 → wuwei-3.2.2}/wuwei/gateway/webhook.py +97 -96
- {wuwei-3.0.2 → wuwei-3.2.2}/wuwei/graph/__init__.py +19 -18
- wuwei-3.2.2/wuwei/graph/checkpoint.py +223 -0
- {wuwei-3.0.2 → wuwei-3.2.2}/wuwei/graph/graph.py +285 -246
- wuwei-3.2.2/wuwei/graph/reducers.py +55 -0
- {wuwei-3.0.2 → wuwei-3.2.2}/wuwei/graph/state.py +94 -92
- {wuwei-3.0.2 → wuwei-3.2.2}/wuwei/llm/__init__.py +24 -24
- wuwei-3.2.2/wuwei/llm/adapters/__init__.py +11 -0
- wuwei-3.2.2/wuwei/llm/adapters/anthropic.py +334 -0
- wuwei-3.2.2/wuwei/llm/adapters/base.py +57 -0
- wuwei-3.2.2/wuwei/llm/adapters/openai.py +181 -0
- wuwei-3.2.2/wuwei/llm/adapters/responses.py +261 -0
- wuwei-3.2.2/wuwei/llm/adapters/usage.py +27 -0
- wuwei-3.2.2/wuwei/llm/gateway.py +551 -0
- wuwei-3.2.2/wuwei/llm/types.py +102 -0
- {wuwei-3.0.2 → wuwei-3.2.2}/wuwei/mcp/__init__.py +16 -16
- wuwei-3.2.2/wuwei/mcp/client.py +221 -0
- {wuwei-3.0.2 → wuwei-3.2.2}/wuwei/mcp/config.py +95 -94
- wuwei-3.2.2/wuwei/mcp/session.py +117 -0
- wuwei-3.2.2/wuwei/mcp/tool_search.py +174 -0
- {wuwei-3.0.2 → wuwei-3.2.2}/wuwei/mcp/tools.py +77 -59
- {wuwei-3.0.2 → wuwei-3.2.2}/wuwei/memory/context.py +83 -75
- {wuwei-3.0.2 → wuwei-3.2.2}/wuwei/memory/context_compressor.py +67 -67
- {wuwei-3.0.2 → wuwei-3.2.2}/wuwei/memory/context_window.py +79 -79
- wuwei-3.2.2/wuwei/memory/curator.py +168 -0
- {wuwei-3.0.2 → wuwei-3.2.2}/wuwei/memory/memory_store.py +5 -5
- {wuwei-3.0.2 → wuwei-3.2.2}/wuwei/memory/storage.py +92 -92
- {wuwei-3.0.2 → wuwei-3.2.2}/wuwei/middleware/__init__.py +33 -22
- {wuwei-3.0.2 → wuwei-3.2.2}/wuwei/middleware/base.py +120 -119
- wuwei-3.2.2/wuwei/middleware/budget.py +192 -0
- {wuwei-3.0.2 → wuwei-3.2.2}/wuwei/middleware/context_compression.py +389 -356
- wuwei-3.2.2/wuwei/middleware/hitl.py +170 -0
- wuwei-3.2.2/wuwei/middleware/ledger.py +219 -0
- {wuwei-3.0.2 → wuwei-3.2.2}/wuwei/middleware/logging.py +65 -66
- {wuwei-3.0.2 → wuwei-3.2.2}/wuwei/middleware/memory.py +172 -170
- wuwei-3.2.2/wuwei/middleware/rag.py +91 -0
- {wuwei-3.0.2 → wuwei-3.2.2}/wuwei/middleware/stack.py +226 -206
- wuwei-3.2.2/wuwei/middleware/storage.py +94 -0
- {wuwei-3.0.2 → wuwei-3.2.2}/wuwei/observability/__init__.py +7 -7
- wuwei-3.2.2/wuwei/observability/tracing.py +162 -0
- {wuwei-3.0.2 → wuwei-3.2.2}/wuwei/parsers/__init__.py +13 -13
- {wuwei-3.0.2 → wuwei-3.2.2}/wuwei/parsers/base.py +38 -38
- {wuwei-3.0.2 → wuwei-3.2.2}/wuwei/parsers/json.py +70 -69
- {wuwei-3.0.2 → wuwei-3.2.2}/wuwei/parsers/list.py +56 -56
- {wuwei-3.0.2 → wuwei-3.2.2}/wuwei/parsers/pydantic.py +66 -64
- wuwei-3.2.2/wuwei/planning/__init__.py +5 -0
- wuwei-3.2.2/wuwei/planning/executor.py +316 -0
- {wuwei-3.0.2 → wuwei-3.2.2}/wuwei/planning/planner.py +90 -83
- {wuwei-3.0.2 → wuwei-3.2.2}/wuwei/planning/task.py +69 -59
- {wuwei-3.0.2 → wuwei-3.2.2}/wuwei/plugin/__init__.py +10 -10
- wuwei-3.2.2/wuwei/plugin/builtin/__init__.py +99 -0
- {wuwei-3.0.2 → wuwei-3.2.2}/wuwei/plugin/builtin/calc.py +85 -85
- {wuwei-3.0.2 → wuwei-3.2.2}/wuwei/plugin/builtin/decision.py +50 -50
- {wuwei-3.0.2 → wuwei-3.2.2}/wuwei/plugin/builtin/file.py +297 -288
- {wuwei-3.0.2 → wuwei-3.2.2}/wuwei/plugin/builtin/git.py +183 -183
- {wuwei-3.0.2 → wuwei-3.2.2}/wuwei/plugin/builtin/http.py +63 -61
- {wuwei-3.0.2 → wuwei-3.2.2}/wuwei/plugin/builtin/json_tools.py +52 -52
- wuwei-3.2.2/wuwei/plugin/builtin/mcp.py +169 -0
- {wuwei-3.0.2 → wuwei-3.2.2}/wuwei/plugin/builtin/npm.py +183 -183
- {wuwei-3.0.2 → wuwei-3.2.2}/wuwei/plugin/builtin/python.py +119 -119
- {wuwei-3.0.2 → wuwei-3.2.2}/wuwei/plugin/builtin/rag.py +39 -40
- {wuwei-3.0.2 → wuwei-3.2.2}/wuwei/plugin/builtin/skill.py +308 -261
- {wuwei-3.0.2 → wuwei-3.2.2}/wuwei/plugin/builtin/text.py +90 -90
- {wuwei-3.0.2 → wuwei-3.2.2}/wuwei/plugin/builtin/time_plugin.py +11 -11
- wuwei-3.2.2/wuwei/plugin/builtin/vfs.py +15 -0
- {wuwei-3.0.2 → wuwei-3.2.2}/wuwei/plugin/manager.py +217 -217
- {wuwei-3.0.2 → wuwei-3.2.2}/wuwei/plugin/plugin.py +96 -96
- wuwei-3.2.2/wuwei/runtime/__init__.py +16 -0
- wuwei-3.2.2/wuwei/runtime/action_log.py +136 -0
- wuwei-3.2.2/wuwei/runtime/agent_runner.py +809 -0
- wuwei-3.2.2/wuwei/runtime/context.py +5 -0
- wuwei-3.2.2/wuwei/runtime/event_bus.py +166 -0
- wuwei-3.2.2/wuwei/runtime/interrupt.py +78 -0
- wuwei-3.2.2/wuwei/sandbox/__init__.py +33 -0
- wuwei-3.2.2/wuwei/sandbox/base.py +180 -0
- wuwei-3.2.2/wuwei/sandbox/docker.py +189 -0
- wuwei-3.2.2/wuwei/sandbox/e2b.py +190 -0
- wuwei-3.2.2/wuwei/sandbox/factory.py +44 -0
- wuwei-3.2.2/wuwei/sandbox/local.py +206 -0
- wuwei-3.2.2/wuwei/security/__init__.py +5 -0
- wuwei-3.2.2/wuwei/security/permissions.py +305 -0
- wuwei-3.2.2/wuwei/serve/__init__.py +34 -0
- wuwei-3.2.2/wuwei/serve/_http.py +177 -0
- wuwei-3.2.2/wuwei/serve/a2a.py +280 -0
- wuwei-3.2.2/wuwei/serve/ag_ui.py +388 -0
- wuwei-3.2.2/wuwei/serve/mcp_server.py +181 -0
- {wuwei-3.0.2 → wuwei-3.2.2}/wuwei/skill/__init__.py +9 -9
- {wuwei-3.0.2 → wuwei-3.2.2}/wuwei/skill/fs_provider.py +110 -97
- {wuwei-3.0.2 → wuwei-3.2.2}/wuwei/skill/skill.py +114 -113
- {wuwei-3.0.2 → wuwei-3.2.2}/wuwei/streaming/__init__.py +8 -8
- {wuwei-3.0.2 → wuwei-3.2.2}/wuwei/streaming/types.py +49 -50
- {wuwei-3.0.2 → wuwei-3.2.2}/wuwei/tools/__init__.py +14 -14
- {wuwei-3.0.2 → wuwei-3.2.2}/wuwei/tools/executor.py +227 -209
- {wuwei-3.0.2 → wuwei-3.2.2}/wuwei/tools/registry.py +113 -150
- {wuwei-3.0.2 → wuwei-3.2.2}/wuwei/tools/tool.py +81 -67
- wuwei-3.2.2/wuwei/vectorstore/__init__.py +34 -0
- wuwei-3.2.2/wuwei/vectorstore/_util.py +24 -0
- wuwei-3.2.2/wuwei/vectorstore/adapter.py +62 -0
- wuwei-3.2.2/wuwei/vectorstore/base.py +65 -0
- wuwei-3.2.2/wuwei/vectorstore/chroma.py +151 -0
- wuwei-3.2.2/wuwei/vectorstore/factory.py +46 -0
- wuwei-3.2.2/wuwei/vectorstore/inmemory.py +152 -0
- wuwei-3.2.2/wuwei/vectorstore/milvus.py +179 -0
- wuwei-3.2.2/wuwei/vectorstore/pgvector.py +182 -0
- wuwei-3.2.2/wuwei/vectorstore/qdrant.py +178 -0
- wuwei-3.2.2/wuwei.egg-info/PKG-INFO +162 -0
- {wuwei-3.0.2 → wuwei-3.2.2}/wuwei.egg-info/SOURCES.txt +107 -11
- wuwei-3.2.2/wuwei.egg-info/entry_points.txt +3 -0
- wuwei-3.2.2/wuwei.egg-info/requires.txt +72 -0
- wuwei-3.0.2/PKG-INFO +0 -306
- wuwei-3.0.2/README.md +0 -261
- wuwei-3.0.2/pyproject.toml +0 -75
- wuwei-3.0.2/tests/test_mcp.py +0 -185
- wuwei-3.0.2/wuwei/agent/agent.py +0 -146
- wuwei-3.0.2/wuwei/agent/sub_agent.py +0 -348
- wuwei-3.0.2/wuwei/config/__init__.py +0 -8
- wuwei-3.0.2/wuwei/config/yaml_loader.py +0 -115
- wuwei-3.0.2/wuwei/core/types.py +0 -38
- wuwei-3.0.2/wuwei/graph/channels/__init__.py +0 -17
- wuwei-3.0.2/wuwei/graph/channels/aggregate.py +0 -97
- wuwei-3.0.2/wuwei/graph/channels/base.py +0 -87
- wuwei-3.0.2/wuwei/graph/channels/ephemeral_value.py +0 -94
- wuwei-3.0.2/wuwei/graph/channels/last_value.py +0 -97
- wuwei-3.0.2/wuwei/graph/channels/topic.py +0 -108
- wuwei-3.0.2/wuwei/graph/checkpoint.py +0 -310
- wuwei-3.0.2/wuwei/llm/adapters/__init__.py +0 -15
- wuwei-3.0.2/wuwei/llm/adapters/anthropic.py +0 -203
- wuwei-3.0.2/wuwei/llm/adapters/base.py +0 -26
- wuwei-3.0.2/wuwei/llm/adapters/dashscope.py +0 -114
- wuwei-3.0.2/wuwei/llm/adapters/ollama.py +0 -113
- wuwei-3.0.2/wuwei/llm/adapters/openai.py +0 -129
- wuwei-3.0.2/wuwei/llm/adapters/zhipu.py +0 -114
- wuwei-3.0.2/wuwei/llm/gateway.py +0 -423
- wuwei-3.0.2/wuwei/llm/types.py +0 -64
- wuwei-3.0.2/wuwei/mcp/client.py +0 -162
- wuwei-3.0.2/wuwei/mcp/session.py +0 -63
- wuwei-3.0.2/wuwei/middleware/hitl.py +0 -70
- wuwei-3.0.2/wuwei/middleware/rag.py +0 -77
- wuwei-3.0.2/wuwei/middleware/storage.py +0 -85
- wuwei-3.0.2/wuwei/observability/tracing.py +0 -124
- wuwei-3.0.2/wuwei/planning/__init__.py +0 -4
- wuwei-3.0.2/wuwei/plugin/builtin/__init__.py +0 -71
- wuwei-3.0.2/wuwei/plugin/builtin/mcp.py +0 -69
- wuwei-3.0.2/wuwei/runtime/__init__.py +0 -10
- wuwei-3.0.2/wuwei/runtime/agent_runner.py +0 -706
- wuwei-3.0.2/wuwei/runtime/approval.py +0 -25
- wuwei-3.0.2/wuwei/sandbox/__init__.py +0 -9
- wuwei-3.0.2/wuwei/sandbox/base.py +0 -43
- wuwei-3.0.2/wuwei/sandbox/local.py +0 -70
- wuwei-3.0.2/wuwei.egg-info/PKG-INFO +0 -306
- wuwei-3.0.2/wuwei.egg-info/requires.txt +0 -45
- {wuwei-3.0.2 → wuwei-3.2.2}/wuwei/memory/__init__.py +0 -0
- {wuwei-3.0.2 → wuwei-3.2.2}/wuwei/memory/embedder.py +0 -0
- {wuwei-3.0.2 → wuwei-3.2.2}/wuwei/memory/knowledge_store.py +0 -0
- {wuwei-3.0.2 → wuwei-3.2.2}/wuwei/memory/memory_types.py +0 -0
- {wuwei-3.0.2 → wuwei-3.2.2}/wuwei.egg-info/dependency_links.txt +0 -0
- {wuwei-3.0.2 → wuwei-3.2.2}/wuwei.egg-info/top_level.txt +0 -0
wuwei-3.2.2/CHANGELOG.md
ADDED
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
# 更新日志
|
|
2
|
+
|
|
3
|
+
## 3.2.2 — 2026-10-28
|
|
4
|
+
|
|
5
|
+
- OpenAI SDK 最低版本更新至 3.40.0,Responses 支持显式配置 prompt_cache_options / prompt_cache_key。
|
|
6
|
+
- 缓存读取、缓存写入和推理 token 细分统计贯通普通/流式运行、委派与规划汇总,不重复计入总 token。
|
|
7
|
+
- Responses 默认省略 temperature;保留显式配置、Chat Completions 默认值和适配器原有位置参数兼容性。
|
|
8
|
+
- 补充缓存配置、预算估算边界及离线 SDK 契约测试。
|
|
9
|
+
|
|
10
|
+
## 3.2.1 — 2026-10-28
|
|
11
|
+
|
|
12
|
+
- 更新补丁版本号,承接执行契约、模型接入及协议兼容性加固。
|
|
13
|
+
|
|
14
|
+
## 3.2.0 — 执行契约加固
|
|
15
|
+
|
|
16
|
+
- 普通/流式/结构化输出与委派共享治理生命周期;会话连续、累计预算与调用统计贯通。
|
|
17
|
+
- 多工具审批持久化完整批次,原子 claim 防止重复恢复;恢复继续执行权限检查;不确定副作用保留 unknown。
|
|
18
|
+
- 工具类型 schema 与执行前校验;同步 handler 不阻塞事件循环;副作用不盲目重试。
|
|
19
|
+
- 模型参数与 SDK client 注入分离、Responses 参数映射、终止原因/usage/reasoning 保留、分类重试和流清理。
|
|
20
|
+
- PlanExecutor.resume、resume_async_task 与非完成委派结果;后台句柄仍为进程内资源。
|
|
21
|
+
- 图流式 reducer 与 invoke 一致;END 公开导出。
|
|
22
|
+
- 账本召回 schema、持久 pin 与缓存淘汰后的原文召回。
|
|
23
|
+
- A2A 明确 0.3 message/send,tasks/send 弃用兼容;MCP 旧 SSE 与 HTTP 分开;AG-UI thread/session 映射和流关闭。
|
|
24
|
+
- fork 使用隔离分支,默认模拟副作用;Code Mode 嵌套工具经治理且明确为可信进程内执行。
|
|
25
|
+
- 公开指南、离线文档示例与迁移说明更新;在线测试显式 opt-in。
|
|
26
|
+
|
|
27
|
+
## 3.2 能力范围
|
|
28
|
+
|
|
29
|
+
本版本还提供 DAG 规划、插件与技能、虚拟文件系统、记忆/RAG/可选向量后端、预算/权限中间件、事件/动作日志、评估 CLI、决策客户端、平台 gateway 以及本地/Docker/E2B 执行驱动。远程服务和部署环境需独立验收;检查点不提供跨系统副作用 exactly-once。
|
|
30
|
+
|
|
31
|
+
## 兼容与展示
|
|
32
|
+
|
|
33
|
+
工具保留 display_name 中文展示名;类型化注册支持可选参数与列表元素 schema。
|
|
34
|
+
|
|
35
|
+
## [1.0.0] - 2026-05-08
|
|
36
|
+
|
|
37
|
+
### 新增
|
|
38
|
+
|
|
39
|
+
- 首个正式版本发布。
|
|
40
|
+
- 记忆衰减与自动清理机制。
|
|
41
|
+
- 长期记忆与 RAG 知识库功能。
|
|
42
|
+
- Skill 引用资源与缓存机制。
|
|
@@ -1,201 +1,201 @@
|
|
|
1
|
-
Apache License
|
|
2
|
-
Version 2.0, January 2004
|
|
3
|
-
http://www.apache.org/licenses/
|
|
4
|
-
|
|
5
|
-
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
6
|
-
|
|
7
|
-
1. Definitions.
|
|
8
|
-
|
|
9
|
-
"License" shall mean the terms and conditions for use, reproduction,
|
|
10
|
-
and distribution as defined by Sections 1 through 9 of this document.
|
|
11
|
-
|
|
12
|
-
"Licensor" shall mean the copyright owner or entity authorized by
|
|
13
|
-
the copyright owner that is granting the License.
|
|
14
|
-
|
|
15
|
-
"Legal Entity" shall mean the union of the acting entity and all
|
|
16
|
-
other entities that control, are controlled by, or are under common
|
|
17
|
-
control with that entity. For the purposes of this definition,
|
|
18
|
-
"control" means (i) the power, direct or indirect, to cause the
|
|
19
|
-
direction or management of such entity, whether by contract or
|
|
20
|
-
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
21
|
-
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
22
|
-
|
|
23
|
-
"You" (or "Your") shall mean an individual or Legal Entity
|
|
24
|
-
exercising permissions granted by this License.
|
|
25
|
-
|
|
26
|
-
"Source" form shall mean the preferred form for making modifications,
|
|
27
|
-
including but not limited to software source code, documentation
|
|
28
|
-
source, and configuration files.
|
|
29
|
-
|
|
30
|
-
"Object" form shall mean any form resulting from mechanical
|
|
31
|
-
transformation or translation of a Source form, including but
|
|
32
|
-
not limited to compiled object code, generated documentation,
|
|
33
|
-
and conversions to other media types.
|
|
34
|
-
|
|
35
|
-
"Work" shall mean the work of authorship, whether in Source or
|
|
36
|
-
Object form, made available under the License, as indicated by a
|
|
37
|
-
copyright notice that is included in or attached to the work
|
|
38
|
-
(an example is provided in the Appendix below).
|
|
39
|
-
|
|
40
|
-
"Derivative Works" shall mean any work, whether in Source or Object
|
|
41
|
-
form, that is based on (or derived from) the Work and for which the
|
|
42
|
-
editorial revisions, annotations, elaborations, or other modifications
|
|
43
|
-
represent, as a whole, an original work of authorship. For the purposes
|
|
44
|
-
of this License, Derivative Works shall not include works that remain
|
|
45
|
-
separable from, or merely link (or bind by name) to the interfaces of,
|
|
46
|
-
the Work and Derivative Works thereof.
|
|
47
|
-
|
|
48
|
-
"Contribution" shall mean any work of authorship, including
|
|
49
|
-
the original version of the Work and any modifications or additions
|
|
50
|
-
to that Work or Derivative Works thereof, that is intentionally
|
|
51
|
-
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
52
|
-
or by an individual or Legal Entity authorized to submit on behalf of
|
|
53
|
-
the copyright owner. For the purposes of this definition, "submitted"
|
|
54
|
-
means any form of electronic, verbal, or written communication sent
|
|
55
|
-
to the Licensor or its representatives, including but not limited to
|
|
56
|
-
communication on electronic mailing lists, source code control systems,
|
|
57
|
-
and issue tracking systems that are managed by, or on behalf of, the
|
|
58
|
-
Licensor for the purpose of discussing and improving the Work, but
|
|
59
|
-
excluding communication that is conspicuously marked or otherwise
|
|
60
|
-
designated in writing by the copyright owner as "Not a Contribution."
|
|
61
|
-
|
|
62
|
-
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
63
|
-
on behalf of whom a Contribution has been received by Licensor and
|
|
64
|
-
subsequently incorporated within the Work.
|
|
65
|
-
|
|
66
|
-
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
67
|
-
this License, each Contributor hereby grants to You a perpetual,
|
|
68
|
-
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
69
|
-
copyright license to reproduce, prepare Derivative Works of,
|
|
70
|
-
publicly display, publicly perform, sublicense, and distribute the
|
|
71
|
-
Work and such Derivative Works in Source or Object form.
|
|
72
|
-
|
|
73
|
-
3. Grant of Patent License. Subject to the terms and conditions of
|
|
74
|
-
this License, each Contributor hereby grants to You a perpetual,
|
|
75
|
-
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
76
|
-
(except as stated in this section) patent license to make, have made,
|
|
77
|
-
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
78
|
-
where such license applies only to those patent claims licensable
|
|
79
|
-
by such Contributor that are necessarily infringed by their
|
|
80
|
-
Contribution(s) alone or by combination of their Contribution(s)
|
|
81
|
-
with the Work to which such Contribution(s) was submitted. If You
|
|
82
|
-
institute patent litigation against any entity (including a
|
|
83
|
-
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
84
|
-
or a Contribution incorporated within the Work constitutes direct
|
|
85
|
-
or contributory patent infringement, then any patent licenses
|
|
86
|
-
granted to You under this License for that Work shall terminate
|
|
87
|
-
as of the date such litigation is filed.
|
|
88
|
-
|
|
89
|
-
4. Redistribution. You may reproduce and distribute copies of the
|
|
90
|
-
Work or Derivative Works thereof in any medium, with or without
|
|
91
|
-
modifications, and in Source or Object form, provided that You
|
|
92
|
-
meet the following conditions:
|
|
93
|
-
|
|
94
|
-
(a) You must give any other recipients of the Work or
|
|
95
|
-
Derivative Works a copy of this License; and
|
|
96
|
-
|
|
97
|
-
(b) You must cause any modified files to carry prominent notices
|
|
98
|
-
stating that You changed the files; and
|
|
99
|
-
|
|
100
|
-
(c) You must retain, in the Source form of any Derivative Works
|
|
101
|
-
that You distribute, all copyright, patent, trademark, and
|
|
102
|
-
attribution notices from the Source form of the Work,
|
|
103
|
-
excluding those notices that do not pertain to any part of
|
|
104
|
-
the Derivative Works; and
|
|
105
|
-
|
|
106
|
-
(d) If the Work includes a "NOTICE" text file as part of its
|
|
107
|
-
distribution, then any Derivative Works that You distribute must
|
|
108
|
-
include a readable copy of the attribution notices contained
|
|
109
|
-
within such NOTICE file, excluding those notices that do not
|
|
110
|
-
pertain to any part of the Derivative Works, in at least one
|
|
111
|
-
of the following places: within a NOTICE text file distributed
|
|
112
|
-
as part of the Derivative Works; within the Source form or
|
|
113
|
-
documentation, if provided along with the Derivative Works; or,
|
|
114
|
-
within a display generated by the Derivative Works, if and
|
|
115
|
-
wherever such third-party notices normally appear. The contents
|
|
116
|
-
of the NOTICE file are for informational purposes only and
|
|
117
|
-
do not modify the License. You may add Your own attribution
|
|
118
|
-
notices within Derivative Works that You distribute, alongside
|
|
119
|
-
or as an addendum to the NOTICE text from the Work, provided
|
|
120
|
-
that such additional attribution notices cannot be construed
|
|
121
|
-
as modifying the License.
|
|
122
|
-
|
|
123
|
-
You may add Your own copyright statement to Your modifications and
|
|
124
|
-
may provide additional or different license terms and conditions
|
|
125
|
-
for use, reproduction, or distribution of Your modifications, or
|
|
126
|
-
for any such Derivative Works as a whole, provided Your use,
|
|
127
|
-
reproduction, and distribution of the Work otherwise complies with
|
|
128
|
-
the conditions stated in this License.
|
|
129
|
-
|
|
130
|
-
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
131
|
-
any Contribution intentionally submitted for inclusion in the Work
|
|
132
|
-
by You to the Licensor shall be under the terms and conditions of
|
|
133
|
-
this License, without any additional terms or conditions.
|
|
134
|
-
Notwithstanding the above, nothing herein shall supersede or modify
|
|
135
|
-
the terms of any separate license agreement you may have executed
|
|
136
|
-
with Licensor regarding such Contributions.
|
|
137
|
-
|
|
138
|
-
6. Trademarks. This License does not grant permission to use the trade
|
|
139
|
-
names, trademarks, service marks, or product names of the Licensor,
|
|
140
|
-
except as required for reasonable and customary use in describing the
|
|
141
|
-
origin of the Work and reproducing the content of the NOTICE file.
|
|
142
|
-
|
|
143
|
-
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
144
|
-
agreed to in writing, Licensor provides the Work (and each
|
|
145
|
-
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
146
|
-
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
147
|
-
implied, including, without limitation, any warranties or conditions
|
|
148
|
-
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
149
|
-
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
150
|
-
appropriateness of using or redistributing the Work and assume any
|
|
151
|
-
risks associated with Your exercise of permissions under this License.
|
|
152
|
-
|
|
153
|
-
8. Limitation of Liability. In no event and under no legal theory,
|
|
154
|
-
whether in tort (including negligence), contract, or otherwise,
|
|
155
|
-
unless required by applicable law (such as deliberate and grossly
|
|
156
|
-
negligent acts) or agreed to in writing, shall any Contributor be
|
|
157
|
-
liable to You for damages, including any direct, indirect, special,
|
|
158
|
-
incidental, or consequential damages of any character arising as a
|
|
159
|
-
result of this License or out of the use or inability to use the
|
|
160
|
-
Work (including but not limited to damages for loss of goodwill,
|
|
161
|
-
work stoppage, computer failure or malfunction, or any and all
|
|
162
|
-
other commercial damages or losses), even if such Contributor
|
|
163
|
-
has been advised of the possibility of such damages.
|
|
164
|
-
|
|
165
|
-
9. Accepting Warranty or Additional Liability. While redistributing
|
|
166
|
-
the Work or Derivative Works thereof, You may choose to offer,
|
|
167
|
-
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
168
|
-
or other liability obligations and/or rights consistent with this
|
|
169
|
-
License. However, in accepting such obligations, You may act only
|
|
170
|
-
on Your own behalf and on Your sole responsibility, not on behalf
|
|
171
|
-
of any other Contributor, and only if You agree to indemnify,
|
|
172
|
-
defend, and hold each Contributor harmless for any liability
|
|
173
|
-
incurred by, or claims asserted against, such Contributor by reason
|
|
174
|
-
of your accepting any such warranty or additional liability.
|
|
175
|
-
|
|
176
|
-
END OF TERMS AND CONDITIONS
|
|
177
|
-
|
|
178
|
-
APPENDIX: How to apply the Apache License to your work.
|
|
179
|
-
|
|
180
|
-
To apply the Apache License to your work, attach the following
|
|
181
|
-
boilerplate notice, with the fields enclosed by brackets "[]"
|
|
182
|
-
replaced with your own identifying information. (Don't include
|
|
183
|
-
the brackets!) The text should be enclosed in the appropriate
|
|
184
|
-
comment syntax for the file format. We also recommend that a
|
|
185
|
-
file or class name and description of purpose be included on the
|
|
186
|
-
same "printed page" as the copyright notice for easier
|
|
187
|
-
identification within third-party archives.
|
|
188
|
-
|
|
189
|
-
Copyright [2026] [xiaojiaenen]
|
|
190
|
-
|
|
191
|
-
Licensed under the Apache License, Version 2.0 (the "License");
|
|
192
|
-
you may not use this file except in compliance with the License.
|
|
193
|
-
You may obtain a copy of the License at
|
|
194
|
-
|
|
195
|
-
http://www.apache.org/licenses/LICENSE-2.0
|
|
196
|
-
|
|
197
|
-
Unless required by applicable law or agreed to in writing, software
|
|
198
|
-
distributed under the License is distributed on an "AS IS" BASIS,
|
|
199
|
-
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
200
|
-
See the License for the specific language governing permissions and
|
|
1
|
+
Apache License
|
|
2
|
+
Version 2.0, January 2004
|
|
3
|
+
http://www.apache.org/licenses/
|
|
4
|
+
|
|
5
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
6
|
+
|
|
7
|
+
1. Definitions.
|
|
8
|
+
|
|
9
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
|
10
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
|
11
|
+
|
|
12
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
|
13
|
+
the copyright owner that is granting the License.
|
|
14
|
+
|
|
15
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
|
16
|
+
other entities that control, are controlled by, or are under common
|
|
17
|
+
control with that entity. For the purposes of this definition,
|
|
18
|
+
"control" means (i) the power, direct or indirect, to cause the
|
|
19
|
+
direction or management of such entity, whether by contract or
|
|
20
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
21
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
22
|
+
|
|
23
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
|
24
|
+
exercising permissions granted by this License.
|
|
25
|
+
|
|
26
|
+
"Source" form shall mean the preferred form for making modifications,
|
|
27
|
+
including but not limited to software source code, documentation
|
|
28
|
+
source, and configuration files.
|
|
29
|
+
|
|
30
|
+
"Object" form shall mean any form resulting from mechanical
|
|
31
|
+
transformation or translation of a Source form, including but
|
|
32
|
+
not limited to compiled object code, generated documentation,
|
|
33
|
+
and conversions to other media types.
|
|
34
|
+
|
|
35
|
+
"Work" shall mean the work of authorship, whether in Source or
|
|
36
|
+
Object form, made available under the License, as indicated by a
|
|
37
|
+
copyright notice that is included in or attached to the work
|
|
38
|
+
(an example is provided in the Appendix below).
|
|
39
|
+
|
|
40
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
|
41
|
+
form, that is based on (or derived from) the Work and for which the
|
|
42
|
+
editorial revisions, annotations, elaborations, or other modifications
|
|
43
|
+
represent, as a whole, an original work of authorship. For the purposes
|
|
44
|
+
of this License, Derivative Works shall not include works that remain
|
|
45
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
|
46
|
+
the Work and Derivative Works thereof.
|
|
47
|
+
|
|
48
|
+
"Contribution" shall mean any work of authorship, including
|
|
49
|
+
the original version of the Work and any modifications or additions
|
|
50
|
+
to that Work or Derivative Works thereof, that is intentionally
|
|
51
|
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
52
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
|
53
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
|
54
|
+
means any form of electronic, verbal, or written communication sent
|
|
55
|
+
to the Licensor or its representatives, including but not limited to
|
|
56
|
+
communication on electronic mailing lists, source code control systems,
|
|
57
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
|
58
|
+
Licensor for the purpose of discussing and improving the Work, but
|
|
59
|
+
excluding communication that is conspicuously marked or otherwise
|
|
60
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
|
61
|
+
|
|
62
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
63
|
+
on behalf of whom a Contribution has been received by Licensor and
|
|
64
|
+
subsequently incorporated within the Work.
|
|
65
|
+
|
|
66
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
67
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
68
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
69
|
+
copyright license to reproduce, prepare Derivative Works of,
|
|
70
|
+
publicly display, publicly perform, sublicense, and distribute the
|
|
71
|
+
Work and such Derivative Works in Source or Object form.
|
|
72
|
+
|
|
73
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
|
74
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
75
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
76
|
+
(except as stated in this section) patent license to make, have made,
|
|
77
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
78
|
+
where such license applies only to those patent claims licensable
|
|
79
|
+
by such Contributor that are necessarily infringed by their
|
|
80
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
|
81
|
+
with the Work to which such Contribution(s) was submitted. If You
|
|
82
|
+
institute patent litigation against any entity (including a
|
|
83
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
84
|
+
or a Contribution incorporated within the Work constitutes direct
|
|
85
|
+
or contributory patent infringement, then any patent licenses
|
|
86
|
+
granted to You under this License for that Work shall terminate
|
|
87
|
+
as of the date such litigation is filed.
|
|
88
|
+
|
|
89
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
|
90
|
+
Work or Derivative Works thereof in any medium, with or without
|
|
91
|
+
modifications, and in Source or Object form, provided that You
|
|
92
|
+
meet the following conditions:
|
|
93
|
+
|
|
94
|
+
(a) You must give any other recipients of the Work or
|
|
95
|
+
Derivative Works a copy of this License; and
|
|
96
|
+
|
|
97
|
+
(b) You must cause any modified files to carry prominent notices
|
|
98
|
+
stating that You changed the files; and
|
|
99
|
+
|
|
100
|
+
(c) You must retain, in the Source form of any Derivative Works
|
|
101
|
+
that You distribute, all copyright, patent, trademark, and
|
|
102
|
+
attribution notices from the Source form of the Work,
|
|
103
|
+
excluding those notices that do not pertain to any part of
|
|
104
|
+
the Derivative Works; and
|
|
105
|
+
|
|
106
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
|
107
|
+
distribution, then any Derivative Works that You distribute must
|
|
108
|
+
include a readable copy of the attribution notices contained
|
|
109
|
+
within such NOTICE file, excluding those notices that do not
|
|
110
|
+
pertain to any part of the Derivative Works, in at least one
|
|
111
|
+
of the following places: within a NOTICE text file distributed
|
|
112
|
+
as part of the Derivative Works; within the Source form or
|
|
113
|
+
documentation, if provided along with the Derivative Works; or,
|
|
114
|
+
within a display generated by the Derivative Works, if and
|
|
115
|
+
wherever such third-party notices normally appear. The contents
|
|
116
|
+
of the NOTICE file are for informational purposes only and
|
|
117
|
+
do not modify the License. You may add Your own attribution
|
|
118
|
+
notices within Derivative Works that You distribute, alongside
|
|
119
|
+
or as an addendum to the NOTICE text from the Work, provided
|
|
120
|
+
that such additional attribution notices cannot be construed
|
|
121
|
+
as modifying the License.
|
|
122
|
+
|
|
123
|
+
You may add Your own copyright statement to Your modifications and
|
|
124
|
+
may provide additional or different license terms and conditions
|
|
125
|
+
for use, reproduction, or distribution of Your modifications, or
|
|
126
|
+
for any such Derivative Works as a whole, provided Your use,
|
|
127
|
+
reproduction, and distribution of the Work otherwise complies with
|
|
128
|
+
the conditions stated in this License.
|
|
129
|
+
|
|
130
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
131
|
+
any Contribution intentionally submitted for inclusion in the Work
|
|
132
|
+
by You to the Licensor shall be under the terms and conditions of
|
|
133
|
+
this License, without any additional terms or conditions.
|
|
134
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
|
135
|
+
the terms of any separate license agreement you may have executed
|
|
136
|
+
with Licensor regarding such Contributions.
|
|
137
|
+
|
|
138
|
+
6. Trademarks. This License does not grant permission to use the trade
|
|
139
|
+
names, trademarks, service marks, or product names of the Licensor,
|
|
140
|
+
except as required for reasonable and customary use in describing the
|
|
141
|
+
origin of the Work and reproducing the content of the NOTICE file.
|
|
142
|
+
|
|
143
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
144
|
+
agreed to in writing, Licensor provides the Work (and each
|
|
145
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
146
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
147
|
+
implied, including, without limitation, any warranties or conditions
|
|
148
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
149
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
150
|
+
appropriateness of using or redistributing the Work and assume any
|
|
151
|
+
risks associated with Your exercise of permissions under this License.
|
|
152
|
+
|
|
153
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
|
154
|
+
whether in tort (including negligence), contract, or otherwise,
|
|
155
|
+
unless required by applicable law (such as deliberate and grossly
|
|
156
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
|
157
|
+
liable to You for damages, including any direct, indirect, special,
|
|
158
|
+
incidental, or consequential damages of any character arising as a
|
|
159
|
+
result of this License or out of the use or inability to use the
|
|
160
|
+
Work (including but not limited to damages for loss of goodwill,
|
|
161
|
+
work stoppage, computer failure or malfunction, or any and all
|
|
162
|
+
other commercial damages or losses), even if such Contributor
|
|
163
|
+
has been advised of the possibility of such damages.
|
|
164
|
+
|
|
165
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
|
166
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
|
167
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
168
|
+
or other liability obligations and/or rights consistent with this
|
|
169
|
+
License. However, in accepting such obligations, You may act only
|
|
170
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
|
171
|
+
of any other Contributor, and only if You agree to indemnify,
|
|
172
|
+
defend, and hold each Contributor harmless for any liability
|
|
173
|
+
incurred by, or claims asserted against, such Contributor by reason
|
|
174
|
+
of your accepting any such warranty or additional liability.
|
|
175
|
+
|
|
176
|
+
END OF TERMS AND CONDITIONS
|
|
177
|
+
|
|
178
|
+
APPENDIX: How to apply the Apache License to your work.
|
|
179
|
+
|
|
180
|
+
To apply the Apache License to your work, attach the following
|
|
181
|
+
boilerplate notice, with the fields enclosed by brackets "[]"
|
|
182
|
+
replaced with your own identifying information. (Don't include
|
|
183
|
+
the brackets!) The text should be enclosed in the appropriate
|
|
184
|
+
comment syntax for the file format. We also recommend that a
|
|
185
|
+
file or class name and description of purpose be included on the
|
|
186
|
+
same "printed page" as the copyright notice for easier
|
|
187
|
+
identification within third-party archives.
|
|
188
|
+
|
|
189
|
+
Copyright [2026] [xiaojiaenen]
|
|
190
|
+
|
|
191
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
192
|
+
you may not use this file except in compliance with the License.
|
|
193
|
+
You may obtain a copy of the License at
|
|
194
|
+
|
|
195
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
196
|
+
|
|
197
|
+
Unless required by applicable law or agreed to in writing, software
|
|
198
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
199
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
200
|
+
See the License for the specific language governing permissions and
|
|
201
201
|
limitations under the License.
|
wuwei-3.2.2/MANIFEST.in
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
include README.md USAGE.md MIGRATION.md CHANGELOG.md mkdocs.yml
|
|
2
|
+
recursive-include tests *.py
|
|
3
|
+
recursive-include docs *.md *.css
|
|
4
|
+
recursive-include examples *.py *.md *.json *.yaml
|
|
5
|
+
prune docs/audits
|
|
6
|
+
prune docs/superpowers
|
|
7
|
+
global-exclude __pycache__ *.py[cod] .env
|
wuwei-3.2.2/MIGRATION.md
ADDED
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
# 迁移到 Wuwei 3.2
|
|
2
|
+
|
|
3
|
+
先在独立环境升级并运行本地回归,再切换业务流量。保留旧检查点、会话数据与供应商配置的恢复副本。
|
|
4
|
+
|
|
5
|
+
## 保留的兼容入口
|
|
6
|
+
|
|
7
|
+
- provider `zhipu`、`dashscope`、`ollama` 作为弃用别名仍可使用,并保留各自环境变量命名空间;新代码使用 `provider="openai"` 配合 base_url/model,或 `from_env(..., env_prefix=...)`。
|
|
8
|
+
- `LLMResponse(content=..., tool_calls=..., reasoning_content=...)` 仍受支持;规范形态是 `LLMResponse(message=...)`。不要同时传两种形态。旧属性仍可读取。
|
|
9
|
+
- `gateway.adapter` 仍可访问,已有自定义适配器不必立即重写。新集成优先注入 client/client_factory 或 adapter/adapter_factory,明确资源与重试所有权。
|
|
10
|
+
- graph/middleware/memory/sandbox 兼容 extra 保留为空;相应核心能力无需单独安装。
|
|
11
|
+
- A2A tasks/send 为弃用兼容入口;新客户端使用 0.3 JSON-RPC message/send。当前不声明 A2A 1.0。
|
|
12
|
+
|
|
13
|
+
## 替换旧示例
|
|
14
|
+
|
|
15
|
+
用 `ToolRegistry().tool()` 或 register_callable 注册函数,再将 registry 传入 Agent。用 PluginManager + Plugin.setup(ctx) 管理扩展。图节点用 StateGraph、END 和 reducers;技能用 FileSystemSkillProvider/SkillManager。中间件栈先构造,再逐个 add。
|
|
16
|
+
|
|
17
|
+
```python
|
|
18
|
+
from wuwei import ToolRegistry
|
|
19
|
+
registry = ToolRegistry()
|
|
20
|
+
@registry.tool()
|
|
21
|
+
def count(values: list[str]) -> int:
|
|
22
|
+
return len(values)
|
|
23
|
+
assert registry.get("count").parameters.required == ["values"]
|
|
24
|
+
```
|
|
25
|
+
|
|
26
|
+
默认内置工具只加载 minimal;需要文件/网络/脚本能力时按名加载,并配置权限及审批。
|
|
27
|
+
|
|
28
|
+
## 必须处理的状态与返回值
|
|
29
|
+
|
|
30
|
+
- run/stream 共用默认会话;业务隔离用显式 session,AG-UI threadId 映射 session_id。
|
|
31
|
+
- run_structured 返回 `(typed_output, AgentRunResult)`,interrupted 时 output=None;不再把第二项当裸 LLMResponse。
|
|
32
|
+
- incomplete、unknown、error、cancelled 均不是 completed。unknown 不能盲目重试副作用。
|
|
33
|
+
- Agent.resume 消费具体审批,重复领取会失败;自定义 checkpointer 需要原子 claim。重启恢复要保留完整检查点配置和业务访问控制。
|
|
34
|
+
- fork 默认隔离新分支并模拟副作用,真实重放需 allow_side_effects=True。
|
|
35
|
+
- PlanExecutor.resume 续跑计划审批;resume_async_task 续跑进程内后台子任务。后台句柄不跨进程恢复,子运行检查点可以持久化。
|
|
36
|
+
- MultiAgentGraph 的 DelegationStoppedError.result 保留可恢复成员结果,调用方必须处理而不是把它当普通成功字符串。
|
|
37
|
+
|
|
38
|
+
## 代码执行与重试
|
|
39
|
+
|
|
40
|
+
工具参数无效时不再调用 handler。同步 handler 在线程执行,超时不证明动作停止。声明 side_effect 的工具不自动重试。
|
|
41
|
+
|
|
42
|
+
Code Mode 的嵌套工具必须有治理 callback;直接调用需要显式 `governed_execute`。这是可信进程内代码,不是 OS 沙箱。
|
|
43
|
+
|
|
44
|
+
自建 SDK client 默认 max_retries=0;借入 client 应关闭 SDK 重试或明确唯一重试所有者。模型 gateway 的 retry 和输出校验纠正是不同预算。MCP 的 http 与旧 sse 传输分开配置。
|
|
45
|
+
|
|
46
|
+
## 升级验证
|
|
47
|
+
|
|
48
|
+
```bash
|
|
49
|
+
pytest
|
|
50
|
+
pytest tests/test_documentation_hardening.py -q
|
|
51
|
+
# 配置真实服务后显式开启:
|
|
52
|
+
pytest --live
|
|
53
|
+
```
|
|
54
|
+
|
|
55
|
+
依赖范围以 pyproject.toml 为准:OpenAI/Anthropic 的声明下限对应当前测试版本;不把本地 fake/MockTransport 测试解释成所有兼容网关已验收。
|