append_trailing_user_message to append a trailing user turn when the conversation ends with an assistant message (e.g. during reasoning).
append_trailing_user_message.py
Run the Example
Full source: cookbook/90_models/aws/claude/append_trailing_user_message.py