AgentPM™

@zack/sentiment-analysis

Sentiment analysis using VADER.

Install
agentpm install @zack/sentiment-analysis@0.1.5
Load
Weekly downloads
3
0%
Last publish
3w ago
v0.1.5
agent.json
{
  "name": "sentiment-analysis",
  "version": "0.1.5",
  "description": "Sentiment analysis using VADER.",
  "files": [
    "sentiment_analysis/"
  ],
  "entrypoint": {
    "args": [
      "-u",
      "sentiment_analysis/__main__.py"
    ],
    "command": "python",
    "timeout_ms": 120000
  },
  "inputs": {
    "type": "object",
    "required": [
      "text"
    ],
    "properties": {
      "text": {
        "type": "string",
        "description": "The text to be analyzed for sentiment"
      }
    },
    "additionalProperties": false
  },
  "outputs": {
    "oneOf": [
      {
        "type": "object",
        "required": [
          "ok",
          "label",
          "scores"
        ],
        "properties": {
          "ok": {
            "const": true
          },
          "label": {
            "enum": [
              "positive",
              "negative",
              "neutral"
            ],
            "type": "string",
            "description": "The sentiment label - positive, negative, or neutral"
          },
          "scores": {
            "type": "object",
            "required": [
              "neg",
              "neu",
              "pos",
              "compound"
            ],
            "properties": {
              "neg": {
                "type": "number"
              },
              "neu": {
                "type": "number"
              },
              "pos": {
                "type": "number"
              },
              "compound": {
                "type": "number"
              }
            }
          }
        },
        "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
      }
    ]
  },
  "readme": "README.md",
  "license": {
    "file": "LICENSE"
  },
  "runtime": {
    "type": "python",
    "version": "3.11"
  }
}
Compatibility
NodePython