step 5 complete: execution plan builder, template registry, and LRU plan cache

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-03-02 13:13:02 +01:00
parent 68955d2fc2
commit 14d1a7351d
4 changed files with 520 additions and 17 deletions

View File

@@ -181,8 +181,8 @@ adiuva-api/
- [x] Integration tests with mocked LLM and mocked agents
- **Outcome:** Intelligent routing with single-agent and pipeline modes.
### Step 5 — Execution Plan generator
- [ ] `app/core/execution_plan.py`:
### Step 5 — Execution Plan generator
- [x] `app/core/execution_plan.py`:
- `PromptTemplateRegistry`: dict of `template_id -> prompt_text`. Templates are server-side only — client receives IDs.
- `ExecutionPlanBuilder`:
- `add_step(action, params) -> self`