mirror of https://github.com/Mai-with-u/MaiBot.git
base action update
parent
1ffa307e5b
commit
f4bc583c7d
|
|
@ -81,6 +81,8 @@ class BaseAction(ABC):
|
||||||
"""FOCUS模式下的激活类型"""
|
"""FOCUS模式下的激活类型"""
|
||||||
self.normal_activation_type = getattr(self.__class__, "normal_activation_type", ActionActivationType.ALWAYS)
|
self.normal_activation_type = getattr(self.__class__, "normal_activation_type", ActionActivationType.ALWAYS)
|
||||||
"""NORMAL模式下的激活类型"""
|
"""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)
|
self.random_activation_probability: float = getattr(self.__class__, "random_activation_probability", 0.0)
|
||||||
"""当激活类型为RANDOM时的概率"""
|
"""当激活类型为RANDOM时的概率"""
|
||||||
self.llm_judge_prompt: str = getattr(self.__class__, "llm_judge_prompt", "")
|
self.llm_judge_prompt: str = getattr(self.__class__, "llm_judge_prompt", "")
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue