A.1-5 增强 context 管理 — 作用域 / 继承 / 隔离 #28
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
来源
Doc-Code Aligner 差距:Agent 运行时 → v0.2 目标「增强 context 管理」
现状
当前 context 是一个简单的
dict,Agent 间共享_system引用,无作用域规则:
agent.py:__init__—self.context = {"agent_id": ..., "llm": ..., ...}initial_context注入额外键待做
context["llm"]从 ModelRegistry 懒加载估时
中(1-2 天)
评价
设计不够明确: Pipeline 的 context 是共享 dict,Agent 的 context 也是共享 dict——这不是 bug,是特性。如果真要"隔离",需要回答:
建议: 当前已经是"共享模式",简单可靠。如果需要隔离:
当前不做,设计期。