This commit is contained in:
2026-02-20 23:04:09 +08:00
parent 43d69d5a99
commit 5d8412bcb6
244 changed files with 9304 additions and 1463 deletions

View File

@@ -0,0 +1,17 @@
from __future__ import annotations
from typing import Any, Dict
from .stages import PipelineStages
class GenerationOrchestrator:
def __init__(self, generator: Any):
self.stages = PipelineStages(generator)
async def generate(self, user_prompt: str) -> Dict:
understanding = self.stages.stage1_task_understanding(user_prompt)
context = self.stages.stage2_context_binding(user_prompt, understanding)
draft = self.stages.stage3_bt_planning(user_prompt, understanding, context)
return self.stages.stage4_validate_and_postprocess(user_prompt, understanding, context, draft)