I need to know how many UVM active/Passive agents are required

So I went through the solution which said that uvm agents depends on the interface not on ports . So is it like when i am having a writing operation i need 2 agents like in case of DUAL port RAM and If its 8:1 mux when there is no writing into register so only 1 agent? and in ALU we need to write the output into register so 2 agents?

You went through the solution to which problem?

I meant through the discussion here where everyone mentioned it’s based on protocol and interface whereas I have seen people using 2 agents when both the protocol and interface is 1 . So i am confused on how to decide how many agents should be selected

I believe you were referring to a discussion similar to this one: How to Decide Number of Agents. There might be a blurred line between a port and a functional interface. An interface serves as a communication channel. Depending on the protocol it supports, a channel can support either one-to-one or many-to-many connections. An agent typically represents one end of a connection. However, in some cases, a single agent may control multiple connections if they are tightly coupled. For instance, when dealing with dual-port RAM, you may to have an agent for each port.

Thanks for the reply.