How can env access to custom metrics

Hello, I’m working on multi-tasking RL with RLLib. One thing that I want to do is assign different probability of sampling for different task based on the custom metrics I tracked. Can anyone let me know how I can call the custom metrics in Env?

Thanks