(
taskService: TaskService,
parentWorkspaceId: string,
prompt: string,
options: Partial<Parameters<TaskService["create"]>[0]> = {}
)
| 346 | } |
| 347 | |
| 348 | async 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 | |
| 364 | function createWorkspaceServiceMocks( |
| 365 | overrides?: Partial<{ |
no test coverage detected