OG T
f1b037bb0c
refactor(api): playbook_rag.py 模組化改造 (P1 違規修復)
修復 P1 違規:
- Line 29: Service 直接 import Redis → Repository Pattern
- Line 156: 自建 httpx.AsyncClient → DI 注入
變更:
- 新增 IEmbeddingCacheRepository Protocol (interfaces.py)
- 新增 EmbeddingCacheRepository 實作 (embedding_repository.py)
- PlaybookRAGService 改用 DI 注入 http_client + embedding_cache
- get_playbook_rag_service() 改為 async factory
- PlaybookService 改用 lazy initialization
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-03-27 10:07:30 +08:00
..
2026-03-26 16:06:20 +08:00
2026-03-26 16:06:20 +08:00
2026-03-26 16:06:20 +08:00
2026-03-27 10:07:30 +08:00
2026-03-26 16:06:20 +08:00
2026-03-22 18:57:44 +08:00
2026-03-22 18:57:44 +08:00
2026-03-23 18:40:36 +08:00
2026-03-22 18:57:44 +08:00
2026-03-26 00:32:19 +08:00
2026-03-26 19:13:03 +08:00
2026-03-22 18:57:44 +08:00
2026-03-26 00:32:19 +08:00