Removed this.name from Task constructor, as LLM's names are populated post calling the base construction (#1192)

Also fixed a jslint error
This commit is contained in:
rammohan-y
2025-05-12 18:44:33 +05:30
committed by GitHub
parent 5c8237b382
commit 8217a76697
2 changed files with 2 additions and 2 deletions

View File

@@ -81,7 +81,7 @@ class CallSession extends Emitter {
this.notifiedComplete = false; this.notifiedComplete = false;
this.rootSpan = rootSpan; this.rootSpan = rootSpan;
this.stickyEventEmitter = new StickyEventEmitter(); this.stickyEventEmitter = new StickyEventEmitter();
this.stickyEventEmitter.onSuccess =() => { this.stickyEventEmitter.onSuccess = () => {
this.taskInProgress = null; this.taskInProgress = null;
}; };
this.backgroundTaskManager = new BackgroundTaskManager({ this.backgroundTaskManager = new BackgroundTaskManager({

View File

@@ -19,7 +19,7 @@ class Task extends Emitter {
this.data = data; this.data = data;
this.actionHook = this.data.actionHook; this.actionHook = this.data.actionHook;
this.id = data.id; this.id = data.id;
this.taskId = this.name + '-' + uuidv4(); this.taskId = uuidv4();
this._killInProgress = false; this._killInProgress = false;
this._completionPromise = new Promise((resolve) => this._completionResolver = resolve); this._completionPromise = new Promise((resolve) => this._completionResolver = resolve);