In reply to VarshaAnand2402:
I guess your interfaces are both AXI interfaces. If you want to reactfrom agent B when getting an indication from agent A you need a horizontal transmission of this indication from agent A to agent B. You can use the uvm_event/uvm_event_pool to transmit these data.