ray.rllib.evaluation.rollout_worker.RolloutWorker.get_policy#

RolloutWorker.get_policy(policy_id: str = 'default_policy') Policy | None[source]#

Return policy for the specified id, or None.

Parameters:

policy_id – ID of the policy to return. None for DEFAULT_POLICY_ID (in the single agent case).

Returns:

The policy under the given ID (or None if not found).