SendMessageEvents
Event stream for chat message responses using the content block model. Events follow a lifecycle: responseCreated -> responseInProgress -> (contentBlockStart/contentBlockDelta/contentBlockStop events) -> responseCompleted|responseFailed SendMessage always uses content block mode — legacy per-field events (outputTextDelta, functionCallArgumentsDelta, etc.) are not emitted.
Inheritors
Types
Emitted for each incremental content delta within a content block
Emitted when a new content block starts
Emitted when a content block is complete
Heartbeat event sent periodically to keep the connection alive during idle periods
Emitted when the response completes successfully
Emitted when the response is created
Emitted when the response fails
Emitted while the response is being generated
Emitted to provide a summary of agent actions
Functions
Casts this SendMessageEvents as a ContentBlockDelta and retrieves its aws.sdk.kotlin.services.devopsagent.model.SendMessageContentBlockDeltaEvent value. Throws an exception if the SendMessageEvents is not a ContentBlockDelta.
Casts this SendMessageEvents as a ContentBlockDelta and retrieves its aws.sdk.kotlin.services.devopsagent.model.SendMessageContentBlockDeltaEvent value. Returns null if the SendMessageEvents is not a ContentBlockDelta.
Casts this SendMessageEvents as a ContentBlockStart and retrieves its aws.sdk.kotlin.services.devopsagent.model.SendMessageContentBlockStartEvent value. Throws an exception if the SendMessageEvents is not a ContentBlockStart.
Casts this SendMessageEvents as a ContentBlockStart and retrieves its aws.sdk.kotlin.services.devopsagent.model.SendMessageContentBlockStartEvent value. Returns null if the SendMessageEvents is not a ContentBlockStart.
Casts this SendMessageEvents as a ContentBlockStop and retrieves its aws.sdk.kotlin.services.devopsagent.model.SendMessageContentBlockStopEvent value. Throws an exception if the SendMessageEvents is not a ContentBlockStop.
Casts this SendMessageEvents as a ContentBlockStop and retrieves its aws.sdk.kotlin.services.devopsagent.model.SendMessageContentBlockStopEvent value. Returns null if the SendMessageEvents is not a ContentBlockStop.
Casts this SendMessageEvents as a Heartbeat and retrieves its aws.sdk.kotlin.services.devopsagent.model.SendMessageHeartbeatEvent value. Throws an exception if the SendMessageEvents is not a Heartbeat.
Casts this SendMessageEvents as a Heartbeat and retrieves its aws.sdk.kotlin.services.devopsagent.model.SendMessageHeartbeatEvent value. Returns null if the SendMessageEvents is not a Heartbeat.
Casts this SendMessageEvents as a ResponseCompleted and retrieves its aws.sdk.kotlin.services.devopsagent.model.SendMessageResponseCompletedEvent value. Throws an exception if the SendMessageEvents is not a ResponseCompleted.
Casts this SendMessageEvents as a ResponseCompleted and retrieves its aws.sdk.kotlin.services.devopsagent.model.SendMessageResponseCompletedEvent value. Returns null if the SendMessageEvents is not a ResponseCompleted.
Casts this SendMessageEvents as a ResponseCreated and retrieves its aws.sdk.kotlin.services.devopsagent.model.SendMessageResponseCreatedEvent value. Throws an exception if the SendMessageEvents is not a ResponseCreated.
Casts this SendMessageEvents as a ResponseCreated and retrieves its aws.sdk.kotlin.services.devopsagent.model.SendMessageResponseCreatedEvent value. Returns null if the SendMessageEvents is not a ResponseCreated.
Casts this SendMessageEvents as a ResponseFailed and retrieves its aws.sdk.kotlin.services.devopsagent.model.SendMessageResponseFailedEvent value. Throws an exception if the SendMessageEvents is not a ResponseFailed.
Casts this SendMessageEvents as a ResponseFailed and retrieves its aws.sdk.kotlin.services.devopsagent.model.SendMessageResponseFailedEvent value. Returns null if the SendMessageEvents is not a ResponseFailed.
Casts this SendMessageEvents as a ResponseInProgress and retrieves its aws.sdk.kotlin.services.devopsagent.model.SendMessageResponseInProgressEvent value. Throws an exception if the SendMessageEvents is not a ResponseInProgress.
Casts this SendMessageEvents as a ResponseInProgress and retrieves its aws.sdk.kotlin.services.devopsagent.model.SendMessageResponseInProgressEvent value. Returns null if the SendMessageEvents is not a ResponseInProgress.
Casts this SendMessageEvents as a Summary and retrieves its aws.sdk.kotlin.services.devopsagent.model.SendMessageSummaryEvent value. Throws an exception if the SendMessageEvents is not a Summary.
Casts this SendMessageEvents as a Summary and retrieves its aws.sdk.kotlin.services.devopsagent.model.SendMessageSummaryEvent value. Returns null if the SendMessageEvents is not a Summary.