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

Function createToolUseSummaryMessage

src/utils/messages.ts:5205–5216  ·  view source on GitHub ↗
(
  summary: string,
  precedingToolUseIds: string[],
)

Source from the content-addressed store, hash-verified

5203 * Tool use summaries provide human-readable progress updates after tool batches complete.
5204 */
5205export function createToolUseSummaryMessage(
5206 summary: string,
5207 precedingToolUseIds: string[],
5208): ToolUseSummaryMessage {
5209 return {
5210 type: 'tool_use_summary',
5211 summary,
5212 precedingToolUseIds,
5213 uuid: randomUUID(),
5214 timestamp: new Date().toISOString(),
5215 }
5216}
5217
5218/**
5219 * Defensive validation: ensure tool_use/tool_result pairing is correct.

Callers 1

queryLoopFunction · 0.85

Calls 1

randomUUIDFunction · 0.90

Tested by

no test coverage detected