Is callback methods deprecated?

I have written some callbacks using episode.last_info_for() it ran ok. I migrated to ray 2.3 and now I get error because episode_V2 doesn’t have these methods, I didn’t find anything related to deprecating these methods in callbacks, how can I write callbacks now?

Try using episode._last_infos[agent_id], where agent_id is either the agent_id you want the infos for or taken fromray.rllib.env.base_env import _DUMMY_AGENT_ID. Please open a Github issue if this does not work for you.