feat: orchestrate grounded recommendations
This commit is contained in:
parent
751391e6a2
commit
cead39edbc
8 changed files with 1098 additions and 7 deletions
|
|
@ -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."""
|
||||
...
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue