MCPcopy Create free account
hub / github.com/apache/maka / boundedChildError

Function boundedChildError

packages/runtime/src/subagent-tools.ts:362–367  ·  view source on GitHub ↗
(error: unknown)

Source from the content-addressed store, hash-verified

360}
361
362function boundedChildError(error: unknown): string {
363 const message = error instanceof Error ? error.message : 'unknown error';
364 return message.length <= CHILD_PROGRESS_ERROR_MAX_CHARS
365 ? message
366 : `${message.slice(0, CHILD_PROGRESS_ERROR_MAX_CHARS - 1)}…`;
367}
368
369export function buildSubagentListTool(): MakaTool<
370 { view?: 'selection' | 'catalog'; cursor?: string },

Callers 1

buildSubagentSpawnToolFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected