mirror of
https://github.com/jambonz/jambonz-feature-server.git
synced 2025-12-22 01:27:55 +00:00
include text we should change later
This commit is contained in:
@@ -51,7 +51,7 @@ class Cognigy extends Task {
|
|||||||
this.timeoutCount = 0;
|
this.timeoutCount = 0;
|
||||||
// create a task queue so we can execute our taskss subsequently
|
// create a task queue so we can execute our taskss subsequently
|
||||||
// also executing tasks whenever they come in
|
// also executing tasks whenever they come in
|
||||||
this.taskQueue = queue({concurrency: 1, autostart: true});
|
this.taskQueue = queue({concurrency: 1, autostart: 1});
|
||||||
}
|
}
|
||||||
|
|
||||||
get name() { return TaskName.Cognigy; }
|
get name() { return TaskName.Cognigy; }
|
||||||
@@ -225,7 +225,8 @@ class Cognigy extends Task {
|
|||||||
|
|
||||||
async _onBotFinalPing(cs, ep) {
|
async _onBotFinalPing(cs, ep) {
|
||||||
this.logger.info({prompts: this.prompts}, 'Cognigy:_onBotFinalPing');
|
this.logger.info({prompts: this.prompts}, 'Cognigy:_onBotFinalPing');
|
||||||
this.gatherTask = this._makeGatherTask({textPrompt: ""});
|
await this.taskQueue.lastPromise;
|
||||||
|
this.gatherTask = this._makeGatherTask({textPrompt: "this should be changed"});
|
||||||
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 = [];
|
||||||
|
|||||||
Reference in New Issue
Block a user