Skip to content

MessageStopEvent

Source code in docs_src/capo_bedrock_runtime/types/message_stop_event.py
class MessageStopEvent(TypedDict, closed=True):
    stop_reason: "capo_bedrock_runtime.types.stop_reason.StopReason"
    """<p>The reason why the model stopped generating output.</p>"""
    additional_model_response_fields: NotRequired["object"]
    """<p>The additional model response fields.</p>"""

additional_model_response_fields instance-attribute

additional_model_response_fields: NotRequired[object]

The additional model response fields.

stop_reason instance-attribute

stop_reason: StopReason

The reason why the model stopped generating output.