public enum StreamEventType extends Enum<StreamEventType>
| 限定符和类型 | 方法和说明 |
|---|---|
static StreamEventType |
fromValue(String value)
根据事件值获取对应的枚举
|
static StreamEventType |
valueOf(String name)
返回带有指定名称的该类型的枚举常量。
|
static StreamEventType[] |
values()
按照声明该枚举类型的常量的顺序, 返回
包含这些常量的数组。
|
public static final StreamEventType MESSAGE
public static final StreamEventType MESSAGE_END
public static final StreamEventType MESSAGE_REPLACE
public static final StreamEventType TTS_MESSAGE
public static final StreamEventType TTS_MESSAGE_END
public static final StreamEventType ERROR
public static final StreamEventType PING
public static final StreamEventType AGENT_MESSAGE
public static final StreamEventType AGENT_THOUGHT
public static final StreamEventType MESSAGE_FILE
public static final StreamEventType WORKFLOW_STARTED
public static final StreamEventType NODE_STARTED
public static final StreamEventType NODE_FINISHED
public static final StreamEventType WORKFLOW_FINISHED
public static final StreamEventType WORKFLOW_TEXT_CHUNK
public static StreamEventType[] values()
for (StreamEventType c : StreamEventType.values()) System.out.println(c);
public static StreamEventType valueOf(String name)
name - 要返回的枚举常量的名称。IllegalArgumentException - 如果该枚举类型没有带有指定名称的常量NullPointerException - 如果参数为空值public static StreamEventType fromValue(String value)
value - 事件值Copyright © 2025. All rights reserved.