feat(confidence-engine): correlate focused result with contribution
This commit is contained in:
@@ -1449,6 +1449,8 @@ export default function ReasoningWorkspace({
|
||||
|
||||
setProcessingStep("active");
|
||||
|
||||
const correlationId = crypto.randomUUID();
|
||||
|
||||
try {
|
||||
const url = "/api/focused-investigation/deconstruct";
|
||||
|
||||
@@ -1481,6 +1483,7 @@ export default function ReasoningWorkspace({
|
||||
assumptions: data.assumptions,
|
||||
relationships: data.relationships,
|
||||
possibleFollowUpQuestions: data.possibleFollowUpQuestions,
|
||||
correlationId,
|
||||
});
|
||||
|
||||
setProcessingStep("idle");
|
||||
@@ -1492,7 +1495,7 @@ export default function ReasoningWorkspace({
|
||||
|
||||
setFocusedInvestigations((prev) => ({
|
||||
...prev,
|
||||
[targetNodeId]: { ...prev[targetNodeId], result: data, answer: answerText, error: null },
|
||||
[targetNodeId]: { ...prev[targetNodeId], result: { ...data, correlationId }, answer: answerText, error: null },
|
||||
}));
|
||||
} catch (err) {
|
||||
setProcessingStep("idle");
|
||||
|
||||
Reference in New Issue
Block a user