How to make different Rule Tiles interact with eachother?

I am using Unity’s RuleTiles to automatically change sprites of adjacent similar blocks.

For example, when a Dirt tile notices there are two Dirt tiles to the left and the right of it, it will change texture, like this:

enter image description here

I would also like to do this with walls. However, I plan to have many types of walls (Wood, Stone, Metal). How would I make different types of walls still affect each other?

Imagine that Dirt is now a Wood wall. If I place a Stone wall to the left, and a Metal wall to the right, I’d still like for it to apply a texture change.

Is it possible to make different types of rule tiles interact with each other?