Tune Optuna Trial Number

Hi! I’m trying to access the trial number of my tuner. I’m using Optuna as my searcher with a function to sample parameters. For example, if I run the tuner and have 4 trials in parallel, the trial.number object will be zero for the first four trials. I’d like to get a unique number to identify each trial if possible. The trial.number is an Optuna object, but I haven’t found the equivalent or similar Ray object.

Thank you!