{"record":{"id":"8a7e66dd994db473","repo":"Unity-Technologies/ml-agents","slug":"unknown-reward-signal-type-name","errorCode":null,"errorMessage":"Unknown reward signal type {name}","messagePattern":"Unknown reward signal type (.+?)","errorType":"exception","errorClass":"UnityTrainerException","httpStatus":null,"severity":"error","filePath":"ml-agents/mlagents/trainers/torch_entities/components/reward_providers/reward_provider_factory.py","lineNumber":44,"sourceCode":"    RewardSignalType.CURIOSITY: CuriosityRewardProvider,\n    RewardSignalType.GAIL: GAILRewardProvider,\n    RewardSignalType.RND: RNDRewardProvider,\n}\n\n\ndef create_reward_provider(\n    name: RewardSignalType, specs: BehaviorSpec, settings: RewardSignalSettings\n) -> BaseRewardProvider:\n    \"\"\"\n    Creates a reward provider class based on the name and config entry provided as a dict.\n    :param name: The name of the reward signal\n    :param specs: The BehaviorSpecs of the policy\n    :param settings: The RewardSignalSettings for that reward signal\n    :return: The reward signal class instantiated\n    \"\"\"\n    rcls = NAME_TO_CLASS.get(name)\n    if not rcls:\n        raise UnityTrainerException(f\"Unknown reward signal type {name}\")\n\n    class_inst = rcls(specs, settings)\n    return class_inst\n","sourceCodeStart":26,"sourceCodeEnd":48,"githubUrl":"https://github.com/Unity-Technologies/ml-agents/blob/3ecb446f75d1e7400eb404c562dc005d3164cffc/ml-agents/mlagents/trainers/torch_entities/components/reward_providers/reward_provider_factory.py#L26-L48","documentation":"Raised by create_reward_provider when the requested reward signal name is not a key of the RewardSignalType-to-provider-class registry (which maps only extrinsic, curiosity, gail, rnd, etc.). It is a lookup guard over the reward_signals section of the trainer config: the signal name string at fault is either misspelled, or it is a signal type from another ml-agents version (e.g. an old or non-existent signal) for which no provider class exists in the installed package.","triggerScenarios":"Thrown at ml-agents/mlagents/trainers/torch_entities/components/reward_providers/reward_provider_factory.py:44 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Correct the reward signal name in the reward_signals section of the YAML config (valid names include extrinsic, curiosity, gail, rnd) to fix typos or casing","Remove reward signals that are not supported by the ml-agents version you are running","Upgrade or downgrade ml-agents to the version that supports the reward signal you want","Ensure the name under reward_signals is a plain mapping key, not a list or nested structure"],"exampleFix":null,"handlingStrategy":"validation","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"3ecb446f75d1e7400eb404c562dc005d3164cffc","analyzedAt":"2026-09-02T16:33:12.832Z","contentChangedAt":null,"schemaVersion":2},"datasetVersion":"2026-09-09T21:17:11.164Z"}