Files
awoooi/packages/lewooogo-brain/README.md
OG T 80d0ef4a8f feat(packages): Phase 6.4a-c leWOOOgo modular architecture
New packages:
- packages/lewooogo-brain: AI reasoning & decision engine
  - IProposalEngine interface (ABC)
  - IIncidentProcessor interface (ABC)
  - Pydantic models: Proposal, Guardrails, Incident, Signal

- packages/lewooogo-data: Memory provider abstraction
  - IMemoryProvider interface (ABC)
  - IDualMemoryProvider for Working + Episodic memory
  - Generic type support for flexible data models

Documentation:
- ADR-008: Python modular packages architecture decision
- ARCHITECTURE_MEMORY.md: Module map index for AI developers
- LOGBOOK.md: Updated milestones and Phase 6.4 status

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-03-23 09:32:07 +08:00

951 B

leWOOOgo Brain

AI Reasoning & Decision Engine for AWOOOI 2.0

Overview

leWOOOgo Brain 是 AWOOOI 智能運維平台的 AI 推論核心積木,負責:

  • 決策提案: 分析 Incident 生成修復建議
  • 事件處理: 聚合告警、分析爆炸半徑
  • Skill 載入: 動態載入專業技能模組

Installation

# 在 apps/api 中使用
pip install -e ../../packages/lewooogo-brain

Usage

from lewooogo_brain.interfaces import IProposalEngine
from lewooogo_brain.engines import ProposalEngine

# 使用決策引擎
engine = ProposalEngine(memory=memory_provider)
proposal, message = await engine.generate(incident_id)

Modules

Module Description
interfaces/ ABC 定義
engines/ 推論引擎
skills/ Skill 載入器

ADR Reference