* Format a task as a prompt for the teammate to work on.
(task: Task)
| 617 | * Format a task as a prompt for the teammate to work on. |
| 618 | */ |
| 619 | function formatTaskAsPrompt(task: Task): string { |
| 620 | let prompt = `Complete all open tasks. Start with task #${task.id}: \n\n ${task.subject}` |
| 621 | |
| 622 | if (task.description) { |
| 623 | prompt += `\n\n${task.description}` |
| 624 | } |
| 625 | |
| 626 | return prompt |
| 627 | } |
| 628 | |
| 629 | /** |
| 630 | * Try to claim an available task from the team's task list. |