composeDeps 字段合并

composeDeps 字段合并 由 Archify 生成的时序图。 composeDeps(turnConfig) ...this.base stores · audit · interactionKernel read turn fields llm · rawTools · systemPrompt · criticalFields on = policy?.memoryEnabled ?? turn.memoryEnabled narrow memory / internalToolDeps merge → OrchestratorDeps OrchestratorDeps Base Turn Gate → Deps Runtime · caller · 时序参与者 Runtime caller RuntimeBaseDeps · stores·audit · 时序参与者 RuntimeBaseDeps stores·audit TurnConfig · llm·tools · 时序参与者 TurnConfig llm·tools memoryEnabled · policy??turn · 时序参与者 memoryEnabled policy??turn composeDeps · merge · 时序参与者 composeDeps merge OrchestratorDeps · result · 时序参与者 OrchestratorDeps result 图例 请求 返回 默认消息

RuntimeBaseDeps

  • • stores / audit / interactionKernel / observability
  • • 启动装配一次,composeDeps 用 ...this.base 展开
  • • memory / internalToolDeps 持有但不在 Base 接口里

TurnConfig 写入

  • • llm · rawTools · systemPrompt · promptSegments
  • • criticalFieldPatterns · writeToolPool · skillMap
  • • contextPolicy 覆盖 maxIterations / history / window

memory 门控

  • • on = policy?.memoryEnabled ?? turn.memoryEnabled
  • • off → memoryRecall / Extractor = undefined
  • • narrowInternalToolDeps(internalToolDeps, on)