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,