Function
createToolUseSummaryMessage
(
summary: string,
precedingToolUseIds: string[],
)
Source from the content-addressed store, hash-verified
| 5103 | * Tool use summaries provide human-readable progress updates after tool batches complete. |
| 5104 | */ |
| 5105 | export function createToolUseSummaryMessage( |
| 5106 | summary: string, |
| 5107 | precedingToolUseIds: string[], |
| 5108 | ): ToolUseSummaryMessage { |
| 5109 | return { |
| 5110 | type: 'tool_use_summary', |
| 5111 | summary, |
| 5112 | precedingToolUseIds, |
| 5113 | uuid: randomUUID(), |
| 5114 | timestamp: new Date().toISOString(), |
| 5115 | } |
| 5116 | } |
| 5117 | |
| 5118 | /** |
| 5119 | * Defensive validation: ensure tool_use/tool_result pairing is correct. |
Tested by
no test coverage detected