remove dead allowed_tools field from BlockedToolsResult

The field was computed but never read after construction — _check_tool_calls
only uses blocked.explanation. The local variable remains for the
all-tools-allowed comparison.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Krrish Dholakia 2026-05-13 14:23:17 -07:00
parent b9a5ca6efb
commit 9f7a4fe1a5

View file

@ -43,7 +43,6 @@ _WEBHOOK_PATH_LOGGING_BATCH = "/v1/litellm/batch"
class BlockedToolsResult:
"""Returned by _extract_blocked_tools when at least one tool was blocked."""
allowed_tools: list
explanation: str
@ -446,6 +445,5 @@ class RubrikLogger(CustomGuardrail, CustomBatchLogger):
explanation = blocking_explanation or "Tool call blocked by policy."
return BlockedToolsResult(
allowed_tools=allowed_tools,
explanation=f"\n\n{explanation}",
)