Interface ChatEventStream

All Superinterfaces:
SdkPojo
All Known Implementing Classes:
ChatChunkEvent, ChatErrorEvent, ChatResponseEvent, ChatToolCallEvent, DefaultChunk, DefaultError, DefaultResponse, DefaultToolCall

@Generated("software.amazon.awssdk:codegen") @SdkPublicApi public interface ChatEventStream extends SdkPojo
Base interface for all event types in ChatEventStream.
  • Field Details

    • UNKNOWN

      static final ChatEventStream UNKNOWN
      Special type of ChatEventStream for unknown types of events that this version of the SDK does not know about
  • Method Details

    • chunkBuilder

      static ChatChunkEvent.Builder chunkBuilder()
      Create a builder for the chunk event type for this stream.
    • toolCallBuilder

      static ChatToolCallEvent.Builder toolCallBuilder()
      Create a builder for the toolCall event type for this stream.
    • responseBuilder

      static ChatResponseEvent.Builder responseBuilder()
      Create a builder for the response event type for this stream.
    • errorBuilder

      static ChatErrorEvent.Builder errorBuilder()
      Create a builder for the error event type for this stream.
    • sdkEventType

      default ChatEventStream.EventType sdkEventType()
      The type of this event. Corresponds to the :event-type header on the Message.
    • accept

      void accept(ChatResponseHandler.Visitor visitor)
      Calls the appropriate visit method depending on the subtype of ChatEventStream.
      Parameters:
      visitor - Visitor to invoke.