classmethod Algorithm.get_default_policy_class(config: AlgorithmConfig) Type[Policy] | None[source]#

Returns a default Policy class to use, given a config.

This class will be used by an Algorithm in case the policy class is not provided by the user in any single- or multi-agent PolicySpec.

Note: This method is ignored when the RLModule API is enabled.