Package io.agentscope.core.agui.event
Enum Class AguiEventType
- All Implemented Interfaces:
Serializable,Comparable<AguiEventType>,Constable
Enumeration of all AG-UI protocol event types.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionA custom event with structured data.A raw event with custom data.Indicates the end of a reasoning/thinking phase.A convenience event to auto start/close reasoning messages.Contains a chunk of content in a streaming reasoning message.Signals the end of a reasoning message.Signals the start of a reasoning message.Indicates the start of a reasoning/thinking phase.Indicates that an agent run has finished.Indicates that an agent run has started.Contains a delta update to the state.Contains a snapshot of the current state.Contains text content for a message.Indicates the end of a text message.Indicates the start of a text message.Contains arguments for a tool call.Indicates the end of a tool call.Contains the result of a tool call.Indicates the start of a tool call. -
Method Summary
Modifier and TypeMethodDescriptionstatic AguiEventTypeReturns the enum constant of this class with the specified name.static AguiEventType[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
RUN_STARTED
Indicates that an agent run has started. -
RUN_FINISHED
Indicates that an agent run has finished. -
TEXT_MESSAGE_START
Indicates the start of a text message. -
TEXT_MESSAGE_CONTENT
Contains text content for a message. -
TEXT_MESSAGE_END
Indicates the end of a text message. -
TOOL_CALL_START
Indicates the start of a tool call. -
TOOL_CALL_ARGS
Contains arguments for a tool call. -
TOOL_CALL_END
Indicates the end of a tool call. -
TOOL_CALL_RESULT
Contains the result of a tool call. -
STATE_SNAPSHOT
Contains a snapshot of the current state. -
STATE_DELTA
Contains a delta update to the state. -
RAW
A raw event with custom data. -
CUSTOM
A custom event with structured data. -
REASONING_START
Indicates the start of a reasoning/thinking phase. -
REASONING_MESSAGE_START
Signals the start of a reasoning message. -
REASONING_MESSAGE_CONTENT
Contains a chunk of content in a streaming reasoning message. -
REASONING_MESSAGE_END
Signals the end of a reasoning message. -
REASONING_MESSAGE_CHUNK
A convenience event to auto start/close reasoning messages. -
REASONING_END
Indicates the end of a reasoning/thinking phase.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-