Example code for multiple agents

In reply to chr_sue:

My DUT is basically a switch which is connected to 8 device having same functionality. May be I was wrong which I mentioned as 8 diff interfaces.

 interconnect DUT (.clk(clk),
                   .reset_(reset_),
                   .input0_packet(dut_if1.input_packet[0]),
                   .input0_packet_v(dut_if1.input_packet_v[0]),
                   .input0_credit(dut_if1.input0_credit),

                   .output0_packet(dut_if1.output_packet[0]),
                   .output0_packet_v(dut_if1.output_packet_v[0]),
                   .output0_credit(dut_if1.output_credit[0]),
       				
                    .input1_packet  (dut_if1.input_packet[1]),
                    .input1_packet_v(dut_if1.input_packet_v[1]),
                    .input1_credit  (dut_if1.input1_credit),

                    .output1_packet  (dut_if1.output_packet[1]),
                    .output1_packet_v(dut_if1.output_packet_v[1]),
                    .output1_credit  (dut_if1.output_credit[1]),

The above piece of code I have shown is the top level connection of dut to interface. But instaed of making this as array(output_packet[1]) connection, i am trying to create instance of agents lets say my_agent[8]. i need to know what is the minimal ways to implement this funtionality.

Thanks!