* Format a task as a prompt for the teammate to work on.
(task: Task)
| 608 | * Format a task as a prompt for the teammate to work on. |
| 609 | */ |
| 610 | function formatTaskAsPrompt(task: Task): string { |
| 611 | let prompt = `Complete all open tasks. Start with task #${task.id}: \n\n ${task.subject}` |
| 612 | |
| 613 | if (task.description) { |
| 614 | prompt += `\n\n${task.description}` |
| 615 | } |
| 616 | |
| 617 | return prompt |
| 618 | } |
| 619 | |
| 620 | /** |
| 621 | * Try to claim an available task from the team's task list. |