Summarize Text
summarize_textSummarize text — extractive (verbatim key sentences in original order) or abstractive (concise rewrite).
Args: text: The text to summarize. mode: 'abstractive' or 'extractive'. max_length: Target maximum length of the summary, in words.
Returns: dict with the summary (key: summary) plus word/char counts.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | No | 'abstractive' (concise rewrite) or 'extractive' (most important sentences, verbatim) | abstractive |
| text | Yes | The text to summarize | |
| max_length | No | Target maximum length of the summary, in words |