MCPcopy Create free account
hub / github.com/FIND-Lab/AgentWard / restartWorker

Function restartWorker

worker/model-worker-manager.ts:221–235  ·  view source on GitHub ↗
(
  options: {
    tmpDir: string;
    config: { timeout: number; debug: boolean; logLevel: string };
  }
)

Source from the content-addressed store, hash-verified

219}
220
221export function restartWorker(
222 options: {
223 tmpDir: string;
224 config: { timeout: number; debug: boolean; logLevel: string };
225 }
226): PersistentWorker {
227 const existing = getWorker();
228 if (existing) {
229 try { existing.shutdown(); } catch {}
230 setWorker(null);
231 }
232 const worker = new PersistentWorker(options);
233 setWorker(worker);
234 return worker;
235}
236
237export function callLLMSync(
238 request: syncLLMRequest<any>

Callers 1

registerFunction · 0.90

Calls 3

getWorkerFunction · 0.85
setWorkerFunction · 0.85
shutdownMethod · 0.80

Tested by

no test coverage detected