Implemented Investigation Strategy

This commit is contained in:
2026-08-02 15:10:49 +01:00
parent a79a7bd524
commit 5ef9710293
7 changed files with 293 additions and 121 deletions
+8
View File
@@ -53,6 +53,7 @@ function buildUpdateDiagnostics({
normalisationsApplied,
graph,
graphReferenceValidation,
selectedQuestion,
}) {
return {
promptVersion: promptVersion ?? "v0.4",
@@ -66,6 +67,10 @@ function buildUpdateDiagnostics({
errors: [],
},
normalisationsApplied: normalisationsApplied ?? [],
investigationStrategy:
selectedQuestion?.investigationStrategy ??
selectedQuestion?.strategy ??
null,
};
}
@@ -284,6 +289,7 @@ async function updateCaseWithDependencies(body, dependencies = {}) {
normalisationsApplied: parsedProposal.normalisationsApplied,
graph: situationGraph,
graphReferenceValidation: graphReferenceValidation,
selectedQuestion: null,
}),
},
statusCode:
@@ -313,6 +319,7 @@ async function updateCaseWithDependencies(body, dependencies = {}) {
normalisationsApplied: parsedProposal.normalisationsApplied,
graph: applicationResult.updatedSituationGraph,
graphReferenceValidation: applicationResult.graphReferenceValidation,
selectedQuestion: applicationResult.selectedQuestion,
}),
};
}
@@ -328,6 +335,7 @@ async function updateCaseWithDependencies(body, dependencies = {}) {
normalisationsApplied: parsedProposal.normalisationsApplied,
graph: situationGraph,
graphReferenceValidation,
selectedQuestion: null,
}),
};
}