mirror of
https://github.com/encounter/adk-python.git
synced 2026-07-09 18:19:28 -07:00
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:
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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user