initialize

abstract suspend fun initialize(withSessionHistory: Boolean = true)

Initializes the assistant.

Parameters

withSessionHistory

A flag to indicate if the session history should be included in the response.

This methods includes all the necessary steps to initialize the assistant.

  • checkIfDocumentIsAlreadyIngested

  • ingestDocument

  • initializeSocketConnection

  • getSessionHistory