19 lines
548 B
Python
19 lines
548 B
Python
"""세션 경로가 공유하는 내담자 턴 메모리 projection."""
|
|
|
|
from __future__ import annotations
|
|
|
|
from .services import memory, orchestrator
|
|
from .store import InProcSession
|
|
|
|
|
|
def build_turn_memory(
|
|
sess: InProcSession,
|
|
recall: memory.RecallContext,
|
|
kb_cues: list[str],
|
|
) -> orchestrator.TurnMemory:
|
|
return orchestrator.TurnMemory(
|
|
recall_summary=recall.recall_summary,
|
|
pinned_facts=recall.pinned_facts,
|
|
recent_turns=sess.recent_turns(visible_to="client"),
|
|
kb_behavior_cues=kb_cues,
|
|
)
|