base action update

pull/1128/head
UnCLAS-Prommer 2025-07-24 09:58:48 +08:00
parent 1ffa307e5b
commit f4bc583c7d
1 changed files with 2 additions and 0 deletions

View File

@ -81,6 +81,8 @@ class BaseAction(ABC):
"""FOCUS模式下的激活类型"""
self.normal_activation_type = getattr(self.__class__, "normal_activation_type", ActionActivationType.ALWAYS)
"""NORMAL模式下的激活类型"""
self.activation_type = getattr(self.__class__, "activation_type", self.focus_activation_type)
"""激活类型"""
self.random_activation_probability: float = getattr(self.__class__, "random_activation_probability", 0.0)
"""当激活类型为RANDOM时的概率"""
self.llm_judge_prompt: str = getattr(self.__class__, "llm_judge_prompt", "")