枚举类 AgentEventType
- 所有已实现的接口:
Serializable,Comparable<AgentEventType>,Constable
Fine-grained event types emitted during agent execution.
Each value carries a canonical name plus optional JsonAlias entries
for legacy names so older JSON payloads continue to deserialize.
Legacy aliases recognised on deserialization:
RUN_STARTED,REPLY_START→AGENT_STARTRUN_FINISHED,REPLY_END→AGENT_ENDMODEL_CALL_STARTED→MODEL_CALL_STARTMODEL_CALL_ENDED→MODEL_CALL_ENDBINARY_BLOCK_*→DATA_BLOCK_*TOOL_RESULT_BINARY_DELTA→TOOL_RESULT_DATA_DELTA
Serialization always emits the canonical form.
-
嵌套类概要
从类继承的嵌套类/接口 java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
枚举常量概要
枚举常量枚举常量说明 -
方法概要
修饰符和类型方法说明static AgentEventTypeResolve an enum value from its canonical string or any legacy alias.getValue()static AgentEventType返回带有指定名称的该类的枚举常量。static AgentEventType[]values()返回包含该枚举类的常量的数组, 顺序与声明这些常量的顺序相同
-
枚举常量详细资料
-
AGENT_START
-
AGENT_END
-
AGENT_RESULT
-
MODEL_CALL_START
-
MODEL_CALL_END
-
TEXT_BLOCK_START
-
TEXT_BLOCK_DELTA
-
TEXT_BLOCK_END
-
THINKING_BLOCK_START
-
THINKING_BLOCK_DELTA
-
THINKING_BLOCK_END
-
DATA_BLOCK_START
-
DATA_BLOCK_DELTA
-
DATA_BLOCK_END
-
TOOL_CALL_START
-
TOOL_CALL_DELTA
-
TOOL_CALL_END
-
TOOL_RESULT_START
-
TOOL_RESULT_TEXT_DELTA
-
TOOL_RESULT_DATA_DELTA
-
TOOL_RESULT_END
-
EXCEED_MAX_ITERS
-
REQUIRE_USER_CONFIRM
-
REQUIRE_EXTERNAL_EXECUTION
-
USER_CONFIRM_RESULT
-
EXTERNAL_EXECUTION_RESULT
-
REQUEST_STOP
-
SUBAGENT_EXPOSED
-
HINT_BLOCK
-
ALL_TOOLS_DENIED
-
CUSTOM
-
-
方法详细资料
-
values
返回包含该枚举类的常量的数组, 顺序与声明这些常量的顺序相同- 返回:
- 包含该枚举类的常量的数组,顺序与声明这些常量的顺序相同
-
valueOf
返回带有指定名称的该类的枚举常量。 字符串必须与用于声明该类的枚举常量的 标识符完全匹配。(不允许有多余 的空格字符。)- 参数:
name- 要返回的枚举常量的名称。- 返回:
- 返回带有指定名称的枚举常量
- 抛出:
IllegalArgumentException- 如果该枚举类没有带有指定名称的常量NullPointerException- 如果参数为空值
-
getValue
-
fromValue
Resolve an enum value from its canonical string or any legacy alias.Falls back to a case-sensitive match against
getValue()and the declared aliases when Jackson's default enum lookup misses.- 参数:
raw- the incoming string value- 返回:
- the corresponding enum constant
- 抛出:
IllegalArgumentException- whenrawmatches no value or alias
-