Class: ChatInteractionController
Defined in: packages/sdk/src/helpers/chat-interaction.ts:10
One client's mode history in one Chat. Create a separate controller per device/session.
Constructors
Constructor
new ChatInteractionController(
api,workspaceId,chatId):ChatInteractionController
Defined in: packages/sdk/src/helpers/chat-interaction.ts:16
Parameters
api
InteractionApi
workspaceId
string
chatId
number
Returns
ChatInteractionController
Methods
ensure()
ensure(
mode):Promise<InteractionSessionResponse>
Defined in: packages/sdk/src/helpers/chat-interaction.ts:23
Serialize switches and reuse request IDs when a response is lost.
Parameters
mode
InteractionSessionResponseMode
Returns
Promise<InteractionSessionResponse>