

# ChatEventStream

Streaming union of chat events emitted during a session.

## Contents
<a name="API_ChatEventStream_Contents"></a>

 ** chunk **   <a name="assurance-Type-ChatEventStream-chunk"></a>
A partial streamed text chunk of the assistant response.  
Type: [ChatChunkEvent](API_ChatChunkEvent.md) object  
Required: No

 ** error **   <a name="assurance-Type-ChatEventStream-error"></a>
An error event in the stream. The stream carries this event when an error occurs after the response has started; otherwise the operation returns a standard exception.  
Type: [ChatErrorEvent](API_ChatErrorEvent.md) object  
Required: No

 ** response **   <a name="assurance-Type-ChatEventStream-response"></a>
An event marking the end of the assistant response. Receiving this event confirms that the stream completed successfully rather than being dropped.  
Type: [ChatResponseEvent](API_ChatResponseEvent.md) object  
Required: No

 ** toolCall **   <a name="assurance-Type-ChatEventStream-toolCall"></a>
An event indicating the agent invoked a tool.  
Type: [ChatToolCallEvent](API_ChatToolCallEvent.md) object  
Required: No

## See Also
<a name="API_ChatEventStream_SeeAlso"></a>

For more information about using this API in one of the language-specific AWS SDKs, see the following:
+  [AWS SDK for C\+\+](https://docs.aws.amazon.com/goto/SdkForCpp/assurance-2022-07-26/ChatEventStream) 
+  [AWS SDK for Java V2](https://docs.aws.amazon.com/goto/SdkForJavaV2/assurance-2022-07-26/ChatEventStream) 
+  [AWS SDK for Ruby V3](https://docs.aws.amazon.com/goto/SdkForRubyV3/assurance-2022-07-26/ChatEventStream) 