def test_process_llm_request_gemini_2_model_tools_none(
    built_in_executor: BuiltInCodeExecutor,
):
  """Tests processing when llm_request.config.tools is None for Gemini 2."""
  llm_request = LlmRequest(
      model="gemini-2.0-pro", config=types.GenerateContentConfig()
  )
  built_in_executor.process_llm_request(llm_request)
  assert llm_request.config.tools == [
      types.Tool(code_execution=types.ToolCodeExecution())
  ]
Tests processing when llm_request.config.tools is None for Gemini 2.
tests/unittests/code_executors/test_built_in_code_executor.py