Skip to main content

Module store

Module store 

Source
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§

ActionCandidate
プロンプト構築用の Action 情報
ActionParam
プロンプト構築用の Action パラメータ情報
ContextStore
正規化されたコンテキストデータストア
GlobalContext
Global情報(全リクエスト共通)
ManagerContext
Manager固有のコンテキスト
ResolvedContext
解決済みコンテキスト(LLM層に渡る)
WorkerContext
Worker固有のコンテキスト

Enums§

ContextTarget
コンテキストの対象
ContextView
コンテキストの可視範囲を定義