MCPcopy Create free account
hub / github.com/agent-tower/core / buildTaskPrompt

Function buildTaskPrompt

packages/server/src/services/task.service.ts:241–247  ·  view source on GitHub ↗
(task: { title: string; description?: string | null })

Source from the content-addressed store, hash-verified

239 const remainder = rawBody.slice(rawConsumedEnd);
240 const separatorLength = getTitleSeparatorLength(remainder);
241 const consumedEnd = rawConsumedEnd + separatorLength;
242
243 return {
244 title: normalizedTitle.value,
245 consumedEnd,
246 body: rawBody.slice(consumedEnd),
247 };
248 }
249
250 throw new ValidationError('Task title is required');

Callers 1

findBodyByIdMethod · 0.85

Calls 2

trimMethod · 0.80
joinMethod · 0.45

Tested by

no test coverage detected