대시보드 이슈 정리 1차
This commit is contained in:
parent
94cc56592f
commit
f472883c31
13 changed files with 592 additions and 311 deletions
|
|
@ -182,9 +182,29 @@ async def record_safety_event(
|
|||
pass
|
||||
|
||||
|
||||
async def finalize_completed_turn(
|
||||
sess: InProcSession,
|
||||
ctx: orchestrator.TurnContext,
|
||||
result: orchestrator.TurnResult,
|
||||
*,
|
||||
context_prefix: str,
|
||||
counselor_turn: TurnRecord | None = None,
|
||||
) -> None:
|
||||
"""Persist a completed turn and emit any derived safety alert in route-safe order."""
|
||||
await record_completed_turn(
|
||||
sess,
|
||||
ctx,
|
||||
result,
|
||||
context_prefix=context_prefix,
|
||||
counselor_turn=counselor_turn,
|
||||
)
|
||||
await record_safety_event(sess, ctx, result)
|
||||
|
||||
|
||||
__all__ = [
|
||||
"SessionAccessError",
|
||||
"append_completed_turn",
|
||||
"finalize_completed_turn",
|
||||
"load_owned_session",
|
||||
"record_safety_event",
|
||||
"record_completed_turn",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue