枚举类的使用
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 MsgRole返回带有指定名称的该类的枚举常量。static MsgRole[]MsgRole.values()返回包含该枚举类的常量的数组, 顺序与声明这些常量的顺序相同参数类型为MsgRole的io.agentscope.core.message中的方法