lili c372837762
Some checks failed
contract-gates / contract-gates (push) Has been cancelled
docs-gate / docs-gate (push) Has been cancelled
feat(deps): 升级 AgentScope 2.0.2→2.0.3(代码+文档,创始人 2026-07-06 拍板)
不为某个新特性,而是没道理把底座停在带并行 tool-result 缺陷的补丁版;2.0.3
是同线相邻补丁版,升级面窄、收益确定。承 tech-decisions §11-13「护城河进洋葱、
框架件谨慎审计」线。

代码:两 worker requirements 钉 2.0.3+溯源注;4 个 cheap-worker patch 的版本
guard 更 2.0.3——主控逐一源码核实 2.0.3 锚点仍成立:compress_context@_agent.py:259
未漂移 / _parse_stream_response@_openai_chat/_model.py:297·index 分桶:417 未漂移 /
list_tools@_local_workspace.py:660 / get_toolkit 装配点迁 _chat.py:354(patch 替
绑定名不依赖行号);patch 头 pin 声明同步 2.0.3+复核标记,根因 2.0.2 期实证保留。

文档:current-truth 面扫除(agentscope-2.0-facts 改掉一处「2.0.3 是笔误」错陈述+
行号漂移开源码更新 594→622/136→162/33→42/857→884/875→902、tech-decisions §15
升级决策散文、运行时 SoT 当前选型句、活代码注释、tier2 README 死链修);留痕层
(plans/HANDOFF/patch 根因分析/ADR 历史核验句)按两层纪律不动。

兼容三证:源码逐处 diff(RedisMessageBus/OpenAI formatter 零变化、Anthropic
formatter 仅并行 tool-result bug 修、ModelCallEndEvent 无变化、MiddlewareBase
加性 get_middleware_key)/ cheap 393+tier2 140+patch 20 测试全绿 / dev 两 venv
升级后 3 服务健康。收敛真跑:cheap 便宜档 ReAct 全链路 356 trace 零升级异常+
真出游戏过九门 9/9;tier2 Anthropic 工具循环跑满 40 轮写 15 文件 gen.log/trace
零升级异常(decision=fix 属 tier2 生成质量、非升级回归)。

2.0.3 新增原生 ReplyBudgetControlMiddleware(历史反复核验 2.0.2 不存在的类)/
tool 级洋葱/RAG/mem0,列而不迁(自建 ¥ 两段式 fail-closed 硬闸是护城河,原生
token 软控替不了),follow-up 见 §15。

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-07-06 02:06:14 -07:00

13 lines
1.4 KiB
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# cheap-worker · 便宜档 Python 线Node amodel-gen 范式重写进 AgentScope依赖
# 与 tier2/gen-worker 同款锁版cheap-worker 经 sys.path import tier2 的 worker 框架层,
# 必须同一个 AgentScope2.0.3)才能保证内置 Agent/ReActConfig/Toolkit/FunctionTool API 一致。
# extras 补 app-runtimecutover 接缝 A独立 Agent Servicecheap_service_app.build_cheap_app→create_app真起服务需
# [service]=fastapi/uvicorn/apscheduler/ag-ui-protocol、[storage]=redisRedisStorage/RedisMessageBus。裸 agentscope
# 只够 import 到 create_app 之下、全新 venv 起不动 ServiceSDD 单测只 import/py_compile 未暴露。redis 由 [storage] 带入,
# 不再单列(以 extras 为准、不重复)。版本仍钉死 2.0.3。
agentscope[service,storage]==2.0.3
openai>=2.41.1 # 便宜档走 OpenAI 兼容端点new-api 的 MiniMax-M3base_url 带 /v1/v1/chat/completions
pyyaml # generation.yaml 熔断/预算旋钮外置(对 tier2 的 genconfig
json-repair # 脏 JSON 工具参数兜底(承袭 tier2/裸路)
nacos-sdk-python==1.0.0 # 配置控制面热源cheap 经 sys.path 复用 tier2 的 worker.genconfig_nacos该包须与 tier2/gen-worker 同版声明;漏声明则新建 venv 起 Service 时 Nacos 热源静默断裂、回落本地 YAML2026-07-05 dev 起栈真暴露)