In reply to nayan2208:
In general, each interface and the connected agent should operate independently.
In your example, Agent B will monitor interface B and send responses back to the DUT based on what it monitors. If the op_code is received on interface B, then it should be taken into account as part of its response. If the op_code is not part on the interface, then the response should not have to take into account the op_code.
Perhaps you can explain some more about how you Agent A and Agent B should interact?