public enum Role extends Enum<Role>
public static final Role USER
public static final Role ASSISTANT
public static final Role BOT
public static final Role SYSTEM
public static final Role ATTACHMENT
public static final Role TOOL
public static Role[] values()
for (Role c : Role.values()) System.out.println(c);
public static Role valueOf(String name)
name - 要返回的枚举常量的名称。IllegalArgumentException - 如果该枚举类型没有带有指定名称的常量NullPointerException - 如果参数为空值public String getValue()
Copyright © 2025. All rights reserved.