(
blocks: Array<{
toolUseId: string
content: unknown
}>,
)
| 47 | }) |
| 48 | |
| 49 | function 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 | |
| 69 | describe('toolResultStorage threshold contracts', () => { |
| 70 | it('treats Infinity as a hard opt-out even when GrowthBook serves an override', () => { |
no outgoing calls
no test coverage detected