feat: add production assurance dashboard flow
This commit is contained in:
@@ -173,14 +173,14 @@ def handle_stop(payload):
|
||||
if not ptr:
|
||||
_emit({})
|
||||
return 0
|
||||
bridge.op_finalize({
|
||||
resp = bridge.op_finalize({
|
||||
"op": "finalize",
|
||||
"admission_id": ptr.get("admission_id"),
|
||||
"stop_reason": "completed",
|
||||
"assistant_summary": payload.get("last_assistant_message") or payload.get("assistant_summary"),
|
||||
})
|
||||
clear_pointer(session)
|
||||
_emit({})
|
||||
_emit({"systemMessage": bridge.format_receipt(resp)})
|
||||
return 0
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user