MCPcopy Create free account
hub / github.com/Noumena-Network/code / formatTaskAsPrompt

Function formatTaskAsPrompt

src/utils/swarm/inProcessRunner.ts:611–619  ·  view source on GitHub ↗

* Format a task as a prompt for the teammate to work on.

(task: Task)

Source from the content-addressed store, hash-verified

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

Callers 1

tryClaimNextTaskFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected