feat: Add the workflowInteractiveResponse field in the debugging handler to enhance response capabilities

This commit is contained in:
sd0ric4
2025-03-27 10:13:46 +08:00
parent 49d744740a
commit 2b2604eb75

View File

@@ -52,7 +52,8 @@ async function handler(
const { timezone, externalProvider } = await getUserChatInfoAndAuthTeamPoints(tmbId);
/* start process */
const { flowUsages, flowResponses, debugResponse, newVariables } = await dispatchWorkFlow({
const { flowUsages, flowResponses, debugResponse, newVariables, workflowInteractiveResponse } =
await dispatchWorkFlow({
res,
requestOrigin: req.headers.origin,
mode: 'debug',
@@ -92,7 +93,8 @@ async function handler(
return {
...debugResponse,
newVariables,
flowResponses
flowResponses,
workflowInteractiveResponse
};
}