Enum Class的使用
io.agentscope.core.message.MsgRole
使用MsgRole的程序包
-
io.agentscope.core.formatter中MsgRole的使用
参数类型为MsgRole的io.agentscope.core.formatter中的方法修饰符和类型方法说明protected StringAbstractBaseFormatter.formatRoleLabel(MsgRole role) Format role label for conversation history. -
io.agentscope.core.message中MsgRole的使用
修饰符和类型方法说明Msg.getRole()Gets the role of the message sender.static MsgRoleReturns the enum constant of this class with the specified name.static MsgRole[]MsgRole.values()Returns an array containing the constants of this enum class, in the order they are declared.参数类型为MsgRole的io.agentscope.core.message中的方法