chore(confidence-engine): expose reconstruction fallback path
This commit is contained in:
@@ -567,10 +567,17 @@ describe("lib/graph/orchestrator startCase", () => {
|
||||
});
|
||||
|
||||
it("preserves an attempted provider API path on analysis failure", async () => {
|
||||
const providerExecution = {
|
||||
chatCapabilityDetected: true,
|
||||
chatRequestAttempted: true,
|
||||
chatRequestSucceeded: false,
|
||||
generateRequestAttempted: true,
|
||||
};
|
||||
mockAnalyseScenario.mockResolvedValue({
|
||||
success: false,
|
||||
error: "Provider failed",
|
||||
providerApiPath: "/api/chat",
|
||||
providerExecution,
|
||||
});
|
||||
const { startCase } = await import("@/lib/graph/orchestrator.js");
|
||||
|
||||
@@ -580,6 +587,7 @@ describe("lib/graph/orchestrator startCase", () => {
|
||||
success: false,
|
||||
statusCode: 502,
|
||||
providerApiPath: "/api/chat",
|
||||
providerExecution,
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user