Class: LetsDiscussDeleteService

LetsDiscussDeleteService()

The Let's Discuss module allows the user to have a conversation with the AI about the content provided by the user. The main difference between this module and the Question Answering module is that Let's Discuss keeps a history of the interactions. LetsDiscuss service to be used for deleting sessions.

Constructor

new LetsDiscussDeleteService()

Source:

Methods

call(user, session_ids) → {Promise.<Object>}

Parameters:
Name Type Description
user string The ID of the user accessing the Soffos API. Soffos assumes that the owner of the api is an application (app) and that app has users. Soffos API will accept any string.
session_ids Array.<string> A list with the IDs of the sessions to be deleted.
Source:
Returns:
success - boolean
Indicates whether the sessions have been successfuly deleted.
Type
Promise.<Object>
Example
import { SoffosServices } from "soffosai";

const my_apiKey = "Token <put your api key here>";
const service = new SoffosServices.LetsDiscussDeleteService({apiKey:my_apiKey});
let response = await service.call('me again', ["b658686f8b834b3f86d5218a4549e1c4"]);
console.log(JSON.stringify(response, null, 2));

// returns
// {
//     "success": true
// }

setInputConfigs(name, session_ids)

Parameters:
Name Type Description
name string Reference name of this Service. It will be used by the Pipeline to reference this Service.
session_ids Array.<string> | InputConfig A list with the IDs of the sessions to be deleted.
Source: