aws.internal._is_malformed_stop
(internal) True for the two `stopReason` values that say the turn's own content is unusable: `malformed_model_output` (the model emitted something the service could not assemble into a message) and `malformed_tool_use` (it emitted a tool call the service could not assemble into a `toolUse` block).
Signature
(internal) True for the two stopReason values that say the turn's own content is
unusable: malformed_model_output (the model emitted something the service
could not assemble into a message) and malformed_tool_use (it emitted a
tool call the service could not assemble into a toolUse block).
Neither is a successful stop reason: the provider explicitly reported unusable generation. The response is delivered as ai.errors.ProviderError.
Source:<builtin>/aws/ns_internal/bedrock.bamlbytes 53342–53461