🔥 3-day streak
Claude Certified Associate (Foundations)102 / 150
Question 102 of 150

You are building a chatbot that generates structured dialogue scripts. Each script line follows the format 'Speaker: text'. You want Claude to generate exactly one line of dialogue per API call and stop before it starts writing the next speaker's line. Which Messages API parameter should you configure to reliably halt generation at that point?

Reviewed for accuracy · Report an issueNext question