MCPcopy
hub / github.com/coder/mux / createAgentTask

Function createAgentTask

src/node/services/taskService.test.ts:348–362  ·  view source on GitHub ↗
(
  taskService: TaskService,
  parentWorkspaceId: string,
  prompt: string,
  options: Partial<Parameters<TaskService["create"]>[0]> = {}
)

Source from the content-addressed store, hash-verified

346}
347
348async function createAgentTask(
349 taskService: TaskService,
350 parentWorkspaceId: string,
351 prompt: string,
352 options: Partial<Parameters<TaskService["create"]>[0]> = {}
353) {
354 return taskService.create({
355 parentWorkspaceId,
356 kind: "agent",
357 agentType: "explore",
358 prompt,
359 title: "Test task",
360 ...options,
361 });
362}
363
364function createWorkspaceServiceMocks(
365 overrides?: Partial<{

Callers 1

Calls 1

createMethod · 0.65

Tested by

no test coverage detected