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