feat: orchestrate grounded recommendations

This commit is contained in:
Justin Visser 2026-08-10 13:09:08 +02:00
parent 751391e6a2
commit cead39edbc
8 changed files with 1098 additions and 7 deletions

View file

@ -1,6 +1,6 @@
"""Structural ports implemented by external service adapters."""
from collections.abc import AsyncIterator
from collections.abc import AsyncGenerator
from typing import Literal, Protocol
from app.domain.models import (
@ -65,7 +65,7 @@ class Recommender(Protocol):
history: tuple[ConversationTurn, ...],
selection_count: int,
correction: str | None = None,
) -> AsyncIterator[RerankSelection]:
) -> AsyncGenerator[RerankSelection]:
"""Stream validated selections from the grounded pool."""
...