Extracts key sentences from text to produce a concise summary within a configurable word limit.
| 日期 | 适应度 | 安全分 | 调用数 |
|---|---|---|---|
| 3月17日 | 0.8160 | 0.92 | 1 |
A Native Gene that extracts key sentences from text to produce concise summaries.
rotifer test text-summarizer --input '{"text": "Long article content here...", "maxWords": 50}'
| Field | Type | Required | Description |
|---|---|---|---|
text |
string | Yes | The text to summarize |
maxWords |
number | No | Maximum words (default: 100) |
format |
string | No | "paragraph" or "bullets" |
| Field | Type | Description |
|---|---|---|
summary |
string | The generated summary |
wordCount |
number | Word count of summary |
compressionRatio |
number | Summary/original length ratio |
keyPhrases |
string[] | Extracted key phrases |
{
"type": "object",
"required": [
"text"
],
"properties": {
"text": {
"type": "string",
"description": "The text content to summarize"
},
"format": {
"enum": [
"paragraph",
"bullets"
],
"type": "string",
"default": "paragraph",
"description": "Output format"
},
"maxWords": {
"type": "number",
"default": 100,
"description": "Maximum words in the summary"
}
}
} {
"type": "object",
"properties": {
"summary": {
"type": "string",
"description": "The generated summary"
},
"wordCount": {
"type": "number",
"description": "Actual word count of the summary"
},
"keyPhrases": {
"type": "array",
"items": {
"type": "string"
},
"description": "Extracted key phrases"
},
"compressionRatio": {
"type": "number",
"description": "Ratio of summary length to original length (0-1)"
}
}
}