Events
event: message_start chunk object
string
required
Always
message_start.object
required
Initial response envelope for this streamed message.
event: content_block_start chunk object
string
required
Always
content_block_start.integer
required
Index of the content block in the response
content array.object
required
Initial content block payload.
event: content_block_delta chunk object
string
required
Always
content_block_delta.integer
required
Index of the content block being updated.
object
required
Incremental delta payload.
event: content_block_stop chunk object
string
required
Always
content_block_stop.integer
required
Index of the block that has finished streaming.
event: message_delta chunk object
string
required
Always
message_delta.object
required
Final message-level delta.
object | null
Usage delta object that may be emitted near stream completion.
event: message_stop chunk object
string
required
Always
message_stop. Indicates stream completion.event: error chunk object
string
required
Always
error.object
required
Error payload object.
string | null
Request identifier for debugging and support.