AgentPM™

@zack/summarize-text

Summarize long text to a concise abstract.

Install
agentpm install @zack/summarize-text@0.1.8
Load
Weekly downloads
3
0%
Last publish
3w ago
v0.1.8
agent.json
{
  "name": "summarize-text",
  "version": "0.1.8",
  "description": "Summarize long text to a concise abstract.",
  "files": [
    "summarize_text/"
  ],
  "entrypoint": {
    "args": [
      "-u",
      "summarize_text/__main__.py"
    ],
    "command": "python",
    "timeout_ms": 120000
  },
  "environment": {
    "vars": {
      "OPENAI_API_KEY": {
        "required": true,
        "description": "API key for OpenAI"
      }
    }
  },
  "inputs": {
    "type": "object",
    "required": [
      "text"
    ],
    "properties": {
      "text": {
        "type": "string",
        "description": "The text to be summarized"
      },
      "max_words": {
        "type": "integer",
        "default": 200,
        "maximum": 1000,
        "minimum": 50
      }
    },
    "additionalProperties": false
  },
  "outputs": {
    "oneOf": [
      {
        "type": "object",
        "required": [
          "ok",
          "summary"
        ],
        "properties": {
          "ok": {
            "const": true
          },
          "summary": {
            "type": "string",
            "description": "Summarized text"
          }
        },
        "additionalProperties": false
      },
      {
        "type": "object",
        "required": [
          "ok",
          "error"
        ],
        "properties": {
          "ok": {
            "const": false
          },
          "error": {
            "type": "object",
            "required": [
              "message"
            ],
            "properties": {
              "code": {
                "type": "string",
                "description": "Stable machine-readable error code (e.g. INPUT_INVALID, FETCH_FAILED)"
              },
              "details": {
                "type": "object",
                "description": "Optional structured context"
              },
              "message": {
                "type": "string",
                "description": "Human-readable error message"
              }
            },
            "additionalProperties": true
          }
        },
        "additionalProperties": false
      }
    ]
  },
  "runtime": {
    "type": "python",
    "version": "3.11"
  }
}
Environment variables
Required
OPENAI_API_KEY
API key for OpenAI
Compatibility
NodePython