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.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic enumThe known possible types of events forChatEventStream. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final ChatEventStreamSpecial type ofChatEventStreamfor unknown types of events that this version of the SDK does not know about -
Method Summary
Modifier and TypeMethodDescriptionvoidaccept(ChatResponseHandler.Visitor visitor) Calls the appropriate visit method depending on the subtype ofChatEventStream.static ChatChunkEvent.BuilderCreate a builder for thechunkevent type for this stream.static ChatErrorEvent.BuilderCreate a builder for theerrorevent type for this stream.static ChatResponseEvent.BuilderCreate a builder for theresponseevent type for this stream.default ChatEventStream.EventTypeThe type of this event.static ChatToolCallEvent.BuilderCreate a builder for thetoolCallevent type for this stream.Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
Field Details
-
UNKNOWN
Special type ofChatEventStreamfor unknown types of events that this version of the SDK does not know about
-
-
Method Details
-
chunkBuilder
Create a builder for thechunkevent type for this stream. -
toolCallBuilder
Create a builder for thetoolCallevent type for this stream. -
responseBuilder
Create a builder for theresponseevent type for this stream. -
errorBuilder
Create a builder for theerrorevent type for this stream. -
sdkEventType
The type of this event. Corresponds to the:event-typeheader on the Message. -
accept
Calls the appropriate visit method depending on the subtype ofChatEventStream.- Parameters:
visitor- Visitor to invoke.
-