fix: Adapt to new computer use tool name in genai sdk 1.41.0

1.40.0 has some bug that caused some UT tests failures

PiperOrigin-RevId: 815098429
This commit is contained in:
Xiang (Sean) Zhou
2025-10-04 08:53:13 -07:00
committed by Copybara-Service
parent d1efc8461e
commit c6dd444fc9
4 changed files with 5 additions and 7 deletions
@@ -206,9 +206,7 @@ class ComputerUseToolset(BaseToolset):
types.Environment.ENVIRONMENT_BROWSER,
)
llm_request.config.tools.append(
types.Tool(
computer_use=types.ToolComputerUse(environment=environment)
)
types.Tool(computer_use=types.ComputerUse(environment=environment))
)
logger.debug(
"Added computer use tool with environment: %s",