ChatEventStream
Streaming union of chat events emitted during a session.
Contents
- chunk
-
A partial streamed text chunk of the assistant response.
Type: ChatChunkEvent object
Required: No
- error
-
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 object
Required: No
- response
-
An event marking the end of the assistant response. Receiving this event confirms that the stream completed successfully rather than being dropped.
Type: ChatResponseEvent object
Required: No
- toolCall
-
An event indicating the agent invoked a tool.
Type: ChatToolCallEvent object
Required: No
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following: