add text promt to gather

This commit is contained in:
akirilyuk
2022-02-01 15:43:27 +01:00
parent d76a5e6efb
commit 924627a50c

View File

@@ -235,7 +235,7 @@ class Cognigy extends Task {
this.logger.info({prompts: this.prompts}, 'Cognigy:_onBotFinalPing'); this.logger.info({prompts: this.prompts}, 'Cognigy:_onBotFinalPing');
try { try {
await this.taskQueue.lastPromise; await this.taskQueue.lastPromise;
this.gatherTask = this._makeGatherTask(); this.gatherTask = this._makeGatherTask({textPrompt: "this is a text promt"});
this.gatherTask.exec(cs, ep, this) this.gatherTask.exec(cs, ep, this)
.catch((err) => this.logger.info({err}, 'Cognigy gather task returned error')); .catch((err) => this.logger.info({err}, 'Cognigy gather task returned error'));
this.prompts = []; this.prompts = [];