2
0

Add dynamic timeout to bot engine api

This commit is contained in:
Baptiste Arnaud
2023-12-08 13:43:58 +00:00
parent 8819e9e567
commit 957eaf33dd
16 changed files with 124 additions and 31 deletions

View File

@ -12,12 +12,14 @@ type Props = {
version: 1 | 2
state: SessionState
startFrom?: StartFrom
startTime?: number
}
export const startBotFlow = async ({
version,
state,
startFrom,
startTime,
}: Props): Promise<
ContinueChatResponse & {
newSessionState: SessionState
@ -39,6 +41,7 @@ export const startBotFlow = async ({
version,
state: newSessionState,
visitedEdges,
startTime,
})
}
const firstEdgeId = getFirstEdgeId({
@ -54,6 +57,7 @@ export const startBotFlow = async ({
version,
state: newSessionState,
visitedEdges,
startTime,
})
}