()
| 92 | |
| 93 | // Deny tools via callback, NOT by passing tools:[] - that busts cache |
| 94 | const canUseTool = async () => ({ |
| 95 | behavior: 'deny' as const, |
| 96 | message: 'No tools needed for summary', |
| 97 | decisionReason: { type: 'other' as const, reason: 'summary only' }, |
| 98 | }) |
| 99 | |
| 100 | // DO NOT set maxOutputTokens here. The fork piggybacks on the main |
| 101 | // thread's prompt cache by sending identical cache-key params (system, |
nothing calls this directly
no outgoing calls
no test coverage detected