Enum Class AnthropicApi.EventType

java.lang.Object
java.lang.Enum<AnthropicApi.EventType>
org.springframework.ai.anthropic.api.AnthropicApi.EventType
All Implemented Interfaces:
Serializable, Comparable<AnthropicApi.EventType>, Constable
Enclosing class:
AnthropicApi

public static enum AnthropicApi.EventType extends Enum<AnthropicApi.EventType>
The event type of the streamed chunk.
  • Enum Constant Details

    • MESSAGE_START

      public static final AnthropicApi.EventType MESSAGE_START
      Message start event. Contains a Message object with empty content.
    • MESSAGE_DELTA

      public static final AnthropicApi.EventType MESSAGE_DELTA
      Message delta event, indicating top-level changes to the final Message object.
    • MESSAGE_STOP

      public static final AnthropicApi.EventType MESSAGE_STOP
      A final message stop event.
    • CONTENT_BLOCK_START

      public static final AnthropicApi.EventType CONTENT_BLOCK_START
      Content block start event.
    • CONTENT_BLOCK_DELTA

      public static final AnthropicApi.EventType CONTENT_BLOCK_DELTA
      Content block delta event.
    • CONTENT_BLOCK_STOP

      public static final AnthropicApi.EventType CONTENT_BLOCK_STOP
      A final content block stop event.
    • ERROR

      public static final AnthropicApi.EventType ERROR
      Error event.
    • PING

      public static final AnthropicApi.EventType PING
      Ping event.
    • TOOL_USE_AGGREGATE

      public static final AnthropicApi.EventType TOOL_USE_AGGREGATE
      Artificially created event to aggregate tool use events.
  • Method Details

    • values

      public static AnthropicApi.EventType[] 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

      public static AnthropicApi.EventType valueOf(String name)
      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 name
      NullPointerException - if the argument is null