()
| 432 | } |
| 433 | |
| 434 | func (i *interceptionBase) hasInjectableTools() bool { |
| 435 | return i.mcpProxy != nil && len(i.mcpProxy.ListTools()) > 0 |
| 436 | } |
| 437 | |
| 438 | // accumulateUsage accumulates usage statistics from source into dest. |
| 439 | // It handles both [anthropic.Usage] and [anthropic.MessageDeltaUsage] types through [any]. |