From the cookbook's summarization guide. A focused prompt for sublease/legal-agreement summarization that uses a system role, explicit section headers, an XML output format, prefilled <summary>, and a </summary> stop sequence - a complete pattern for structured-summary pipelines.
Provide the summary in bullet points nested within the XML header for each section. For example:
If any information is not explicitly stated in the document, note it as "Not specified". Do not preamble.
Sublease agreement text: {text}
</user>
Assistant prefill: `Here is the summary of the sublease agreement: <summary>` (stop sequence: `</summary>`)
Source: https://github.com/anthropics/anthropic-cookbook/blob/main/capabilities/summarization/guide.ipynb