Expand description
Context System - スコープ付きコンテキスト管理
§設計思想
Manager/Worker が「見えるべき」情報を制御するためのスコープシステム。 データは ContextStore に正規化して格納し、ContextView で可視範囲を定義。 ContextResolver が View に応じて ResolvedContext を生成。
ContextStore (正規化データ)
│
├── ContextView::Global → Manager用(全体が見える)
├── ContextView::Local → Worker用(自分+Neighbor)
└── ContextView::Custom → カスタムフィルタ
│
▼
ContextResolver.resolve(store, view) → ResolvedContext
│
▼
LLM層でプロンプト生成Structs§
- Action
Candidate - プロンプト構築用の Action 情報
- Action
Param - プロンプト構築用の Action パラメータ情報
- Context
Store - 正規化されたコンテキストデータストア
- Global
Context - Global情報(全リクエスト共通)
- Manager
Context - Manager固有のコンテキスト
- Resolved
Context - 解決済みコンテキスト(LLM層に渡る)
- Worker
Context - Worker固有のコンテキスト
Enums§
- Context
Target - コンテキストの対象
- Context
View - コンテキストの可視範囲を定義