()
| 517 | } |
| 518 | |
| 519 | func (i *interceptionBase) hasInjectableTools() bool { |
| 520 | return i.mcpProxy != nil && len(i.mcpProxy.ListTools()) > 0 |
| 521 | } |
| 522 | |
| 523 | // accumulateUsage accumulates usage statistics from source into dest. |
| 524 | // It handles both [anthropic.Usage] and [anthropic.MessageDeltaUsage] types through [any]. |