枚举类 AgentEventType

java.lang.Object
java.lang.Enum<AgentEventType>
io.agentscope.core.event.AgentEventType
所有已实现的接口:
Serializable, Comparable<AgentEventType>, Constable

public enum AgentEventType extends Enum<AgentEventType>
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:

Serialization always emits the canonical form.

  • 枚举常量详细资料

    • AGENT_START

      public static final AgentEventType AGENT_START
    • AGENT_END

      public static final AgentEventType AGENT_END
    • AGENT_RESULT

      public static final AgentEventType AGENT_RESULT
    • MODEL_CALL_START

      public static final AgentEventType MODEL_CALL_START
    • MODEL_CALL_END

      public static final AgentEventType MODEL_CALL_END
    • TEXT_BLOCK_START

      public static final AgentEventType TEXT_BLOCK_START
    • TEXT_BLOCK_DELTA

      public static final AgentEventType TEXT_BLOCK_DELTA
    • TEXT_BLOCK_END

      public static final AgentEventType TEXT_BLOCK_END
    • THINKING_BLOCK_START

      public static final AgentEventType THINKING_BLOCK_START
    • THINKING_BLOCK_DELTA

      public static final AgentEventType THINKING_BLOCK_DELTA
    • THINKING_BLOCK_END

      public static final AgentEventType THINKING_BLOCK_END
    • DATA_BLOCK_START

      public static final AgentEventType DATA_BLOCK_START
    • DATA_BLOCK_DELTA

      public static final AgentEventType DATA_BLOCK_DELTA
    • DATA_BLOCK_END

      public static final AgentEventType DATA_BLOCK_END
    • TOOL_CALL_START

      public static final AgentEventType TOOL_CALL_START
    • TOOL_CALL_DELTA

      public static final AgentEventType TOOL_CALL_DELTA
    • TOOL_CALL_END

      public static final AgentEventType TOOL_CALL_END
    • TOOL_RESULT_START

      public static final AgentEventType TOOL_RESULT_START
    • TOOL_RESULT_TEXT_DELTA

      public static final AgentEventType TOOL_RESULT_TEXT_DELTA
    • TOOL_RESULT_DATA_DELTA

      public static final AgentEventType TOOL_RESULT_DATA_DELTA
    • TOOL_RESULT_END

      public static final AgentEventType TOOL_RESULT_END
    • EXCEED_MAX_ITERS

      public static final AgentEventType EXCEED_MAX_ITERS
    • REQUIRE_USER_CONFIRM

      public static final AgentEventType REQUIRE_USER_CONFIRM
    • REQUIRE_EXTERNAL_EXECUTION

      public static final AgentEventType REQUIRE_EXTERNAL_EXECUTION
    • USER_CONFIRM_RESULT

      public static final AgentEventType USER_CONFIRM_RESULT
    • EXTERNAL_EXECUTION_RESULT

      public static final AgentEventType EXTERNAL_EXECUTION_RESULT
    • REQUEST_STOP

      public static final AgentEventType REQUEST_STOP
    • SUBAGENT_EXPOSED

      public static final AgentEventType SUBAGENT_EXPOSED
    • HINT_BLOCK

      public static final AgentEventType HINT_BLOCK
    • ALL_TOOLS_DENIED

      public static final AgentEventType ALL_TOOLS_DENIED
    • CUSTOM

      public static final AgentEventType CUSTOM
  • 方法详细资料

    • values

      public static AgentEventType[] values()
      返回包含该枚举类的常量的数组, 顺序与声明这些常量的顺序相同
      返回:
      包含该枚举类的常量的数组,顺序与声明这些常量的顺序相同
    • valueOf

      public static AgentEventType valueOf(String name)
      返回带有指定名称的该类的枚举常量。 字符串必须与用于声明该类的枚举常量的 标识符完全匹配。(不允许有多余 的空格字符。)
      参数:
      name - 要返回的枚举常量的名称。
      返回:
      返回带有指定名称的枚举常量
      抛出:
      IllegalArgumentException - 如果该枚举类没有带有指定名称的常量
      NullPointerException - 如果参数为空值
    • getValue

      public String getValue()
    • fromValue

      public static AgentEventType fromValue(String raw)
      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 - when raw matches no value or alias