From 8217a7669729bf8d1e87782258f52fb16034494a Mon Sep 17 00:00:00 2001 From: rammohan-y <37395033+rammohan-y@users.noreply.github.com> Date: Mon, 12 May 2025 18:44:33 +0530 Subject: [PATCH] Removed this.name from Task constructor, as LLM's names are populated post calling the base construction (#1192) Also fixed a jslint error --- lib/session/call-session.js | 2 +- lib/tasks/task.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/session/call-session.js b/lib/session/call-session.js index 8ca3d41a..50ef3005 100644 --- a/lib/session/call-session.js +++ b/lib/session/call-session.js @@ -81,7 +81,7 @@ class CallSession extends Emitter { this.notifiedComplete = false; this.rootSpan = rootSpan; this.stickyEventEmitter = new StickyEventEmitter(); - this.stickyEventEmitter.onSuccess =() => { + this.stickyEventEmitter.onSuccess = () => { this.taskInProgress = null; }; this.backgroundTaskManager = new BackgroundTaskManager({ diff --git a/lib/tasks/task.js b/lib/tasks/task.js index ddd255a6..4f9bda9b 100644 --- a/lib/tasks/task.js +++ b/lib/tasks/task.js @@ -19,7 +19,7 @@ class Task extends Emitter { this.data = data; this.actionHook = this.data.actionHook; this.id = data.id; - this.taskId = this.name + '-' + uuidv4(); + this.taskId = uuidv4(); this._killInProgress = false; this._completionPromise = new Promise((resolve) => this._completionResolver = resolve);