Do we need to do set_id_info while creating a rsp from driver if we closing rsp from req itself

i am trying to underders ID’s flow from driver back to seqeunce.

→ assume rsp/req is of same type(say we are getting read from a mastser and transaction holds a filed rdata which is unused in master but when slave responds we will fill it).

→ in this case if i do rsp = req.clone();//create and copy does the id info also gets copied or i still need to explisitely call set_id_info api to set rsp id.

The UVM documentation for set_id_info states:

Copies the sequence_id and transaction_id from the referenced item into the calling item. This routine should always be used by drivers to initialize responses for future compatibility.

So you should always use this API.