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

Function createToolResultMessage

src/utils/toolResultStorage.test.ts:49–67  ·  view source on GitHub ↗
(
  blocks: Array<{
    toolUseId: string
    content: unknown
  }>,
)

Source from the content-addressed store, hash-verified

47})
48
49function createToolResultMessage(
50 blocks: Array<{
51 toolUseId: string
52 content: unknown
53 }>,
54): Message {
55 return {
56 type: 'user',
57 uuid: 'user-1',
58 message: {
59 role: 'user',
60 content: blocks.map(block => ({
61 type: 'tool_result',
62 tool_use_id: block.toolUseId,
63 content: block.content,
64 })),
65 },
66 } as unknown as Message
67}
68
69describe('toolResultStorage threshold contracts', () => {
70 it('treats Infinity as a hard opt-out even when GrowthBook serves an override', () => {

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected