Get the model name used in an agent as an output of the agent

The idea is:

To get the name of the model (i.e.: gemini 2.5) as an output from the AI agent associated to that model.

My use case:

Want to enter the model name in the test I am doing.

I think it would be beneficial to add this because:

Any resources to support this?

Are you willing to work on this?