chore: Remove unnecessary check tool type and tool attribute

tool in config.tools cann't be ToolDict and must have computer_use attr

PiperOrigin-RevId: 816368064
This commit is contained in:
Xiang (Sean) Zhou
2025-10-07 14:01:53 -07:00
committed by Copybara-Service
parent 5ac446d947
commit 3f86760e0b
@@ -190,11 +190,7 @@ class ComputerUseToolset(BaseToolset):
# Check if computer use is already configured
for tool in llm_request.config.tools:
if (
isinstance(tool, (types.Tool, types.ToolDict))
and hasattr(tool, "computer_use")
and tool.computer_use
):
if isinstance(tool, types.Tool) and tool.computer_use:
logger.debug("Computer use already configured in LLM request")
return