View a markdown version of this page

HarnessMessageStopEvent - Amazon Bedrock AgentCore Data Plane
Services or capabilities described in Amazon Web Services documentation might vary by Region. To see the differences applicable to the China Regions, see Getting Started with Amazon Web Services in China (PDF).

HarnessMessageStopEvent

Event indicating the end of a message.

Contents

stopReason

The reason the agent stopped generating.

Type: String

Valid Values: end_turn | tool_use | tool_result | max_tokens | stop_sequence | content_filtered | malformed_model_output | malformed_tool_use | interrupted | partial_turn | model_context_window_exceeded | max_iterations_exceeded | max_output_tokens_exceeded | timeout_exceeded | hook_stopped

Required: Yes

See Also

For more information about using this API in one of the language-specific Amazon SDKs, see the following: