枚举类的使用
io.agentscope.core.message.GenerateReason
使用GenerateReason的程序包
-
io.agentscope.core.message中GenerateReason的使用
修饰符和类型方法说明Msg.getGenerateReason()Gets the reason why this message was generated.static GenerateReason返回带有指定名称的该类的枚举常量。static GenerateReason[]GenerateReason.values()返回包含该枚举类的常量的数组, 顺序与声明这些常量的顺序相同参数类型为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.