From d7e6964dbed15305b167d68cb616480407f05e5b Mon Sep 17 00:00:00 2001 From: snakajima Date: Fri, 10 May 2024 13:40:07 -0700 Subject: [PATCH] fix eslint --- samples/embeddings.ts | 5 ----- src/experimental_agents/service_agents/fetch_agent.ts | 2 +- src/task_manager.ts | 6 +++--- 3 files changed, 4 insertions(+), 9 deletions(-) diff --git a/samples/embeddings.ts b/samples/embeddings.ts index ed4ffc3f0..d03f8bc5c 100644 --- a/samples/embeddings.ts +++ b/samples/embeddings.ts @@ -40,11 +40,6 @@ const graph_data = { }, }; -const simplify = (result: Array) => { - const { content, usage } = result[result.length - 1]; - return { content, usage }; -}; - const main = async () => { const result = await graphDataTestRunner( "sample_wiki.log", diff --git a/src/experimental_agents/service_agents/fetch_agent.ts b/src/experimental_agents/service_agents/fetch_agent.ts index 350ae77b6..1aa02418a 100644 --- a/src/experimental_agents/service_agents/fetch_agent.ts +++ b/src/experimental_agents/service_agents/fetch_agent.ts @@ -88,7 +88,7 @@ const fetchAgentInfo = { headers: { "Content-Type": "application/json", }, - body: '{"foo":"bar"}', + body: "{\"foo\":\"bar\"}", }, }, ], diff --git a/src/task_manager.ts b/src/task_manager.ts index 7bc61a28f..4ca05ec2b 100644 --- a/src/task_manager.ts +++ b/src/task_manager.ts @@ -74,9 +74,9 @@ export class TaskManager { public getStatus(verbose: boolean = false) { const nodes = verbose ? { - runningNodes: Array.from(this.runningNodes).map((node) => node.nodeId), - queuedNodes: this.taskQueue.map((task) => task.node.nodeId), - } + runningNodes: Array.from(this.runningNodes).map((node) => node.nodeId), + queuedNodes: this.taskQueue.map((task) => task.node.nodeId), + } : {}; return { concurrency: this.concurrency,