feat: FlowPilot AI — Phases 4 & 5 (Gallery, Export, Responsive, Enterprise, Analytics) #116
@@ -645,9 +645,16 @@ async def get_session(
|
|||||||
confidence_score=step.confidence_at_step,
|
confidence_score=step.confidence_at_step,
|
||||||
))
|
))
|
||||||
|
|
||||||
|
try:
|
||||||
detail = AISessionDetail.model_validate(session)
|
detail = AISessionDetail.model_validate(session)
|
||||||
detail.steps = step_responses
|
detail.steps = step_responses
|
||||||
return detail
|
return detail
|
||||||
|
except Exception as e:
|
||||||
|
logger.exception("Failed to serialize session %s: %s", session_id, e)
|
||||||
|
raise HTTPException(
|
||||||
|
status_code=status.HTTP_500_INTERNAL_SERVER_ERROR,
|
||||||
|
detail=f"Session serialization error: {type(e).__name__}: {str(e)[:200]}",
|
||||||
|
)
|
||||||
|
|
||||||
|
|
||||||
# ── Documentation ──
|
# ── Documentation ──
|
||||||
|
|||||||
Reference in New Issue
Block a user