Enum Class的使用
io.agentscope.core.message.GenerateReason
使用GenerateReason的程序包
-
io.agentscope.core.message中GenerateReason的使用
修饰符和类型方法说明Msg.getGenerateReason()Gets the reason why this message was generated.static GenerateReasonReturns the enum constant of this class with the specified name.static GenerateReason[]GenerateReason.values()Returns an array containing the constants of this enum class, in the order they are declared.参数类型为GenerateReason的io.agentscope.core.message中的方法修饰符和类型方法说明Msg.Builder.generateReason(GenerateReason reason) Sets the generate reason for this message.Msg.withGenerateReason(GenerateReason reason) Creates a new message with the specified generate reason.