회기 무발화 0턴 분리, 자기예측 락 불변식 및 TDD 회귀 검증 완료
Some checks failed
API contract / OpenAPI type drift (push) Failing after 3m27s
Some checks failed
API contract / OpenAPI type drift (push) Failing after 3m27s
This commit is contained in:
parent
a479db7a5a
commit
a0311c5957
100 changed files with 4884 additions and 11210 deletions
19
apps/api/app/session_turn_memory.py
Normal file
19
apps/api/app/session_turn_memory.py
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
"""세션 경로가 공유하는 내담자 턴 메모리 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,
|
||||
)
|
||||
Loading…
Add table
Add a link
Reference in a new issue