Lucas ARRIESSE commited on
Commit ·
adf98e8
1
Parent(s): 8a5bedd
Include searched FTO report
Browse files703 unmodified lines704705706707708709710711712713714703 unmodified lines// map from a list of insights to a selectable list of insightsconst newInsights = result.extracted_info.insights.map((e, idx, __) => ({ id: idx, text: e, checked: false }));draftHistory.push({type: "fto",solution: currentState.solution,insights: newInsights,assessment_full: result.assessment_full,final_verdict: result.extracted_info.final_verdict,assessment_summary: result.extracted_info.summary,});703 unmodified lines704705706707708709710711712713714715716717703 unmodified lines// map from a list of insights to a selectable list of insightsconst newInsights = result.extracted_info.insights.map((e, idx, __) => ({ id: idx, text: e, checked: false }));// maps the original fto report assessment + the actual contents for displayingconst full_assessment_content = `${result.assessment_full}\n\n---\n---\n\n# FTO report contents\n\n${result.fto_report}`;draftHistory.push({type: "fto",solution: currentState.solution,insights: newInsights,assessment_full: full_assessment_content,final_verdict: result.extracted_info.final_verdict,assessment_summary: result.extracted_info.summary,});
static/js/ui.js+4-1