Enum Class AnthropicApi.EventType
- All Implemented Interfaces:
Serializable,Comparable<AnthropicApi.EventType>,Constable
- Enclosing class:
- AnthropicApi
The event type of the streamed chunk.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionContent block delta event.Content block start event.A final content block stop event.Error event.Message delta event, indicating top-level changes to the final Message object.Message start event.A final message stop event.Ping event.Artificially created event to aggregate tool use events. -
Method Summary
Modifier and TypeMethodDescriptionstatic AnthropicApi.EventTypeReturns the enum constant of this class with the specified name.static AnthropicApi.EventType[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
MESSAGE_START
Message start event. Contains a Message object with empty content. -
MESSAGE_DELTA
Message delta event, indicating top-level changes to the final Message object. -
MESSAGE_STOP
A final message stop event. -
CONTENT_BLOCK_START
Content block start event. -
CONTENT_BLOCK_DELTA
Content block delta event. -
CONTENT_BLOCK_STOP
A final content block stop event. -
ERROR
Error event. -
PING
Ping event. -
TOOL_USE_AGGREGATE
Artificially created event to aggregate tool use events.
-
-
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
-