@zack/sentiment-analysis
Sentiment analysis using VADER.
Get started
Install, run, or load this Tool.
01Install
Resolve this exact Tool version and its prepared dependencies.
agentpm install @zack/sentiment-analysis@0.1.502Run Tool
Send JSON to its declared input contract and receive JSON output.
agentpm run @zack/sentiment-analysis@0.1.5 --input '{"text":"The text to be analyzed for sentiment"}'Schema-derived starter input. Replace sample values with your own before running.
ORLoad via SDK
Call the installed Tool through an SDK.
import { load } from '@agentpm/sdk';
const t = await load('@zack/sentiment-analysis@0.1.5');CLI version & updates
CLI 0.1.36+ reads and preserves standard declarations. New publications require an explicit supported standard; use the latest CLI for current authoring checks. Historical releases remain installable as published. This floor does not establish selected-release installation support or Harness readiness.
Check agentpm --version, then follow the CLI installation and update guide. See the publication compatibility requirements.
Interface
The contract a caller must satisfy, from the authored JSON Schema.
Input
textstringrequiredThe text to be analyzed for sentiment
No other input fields are accepted.
Complete input schema
{
"type": "object",
"required": [
"text"
],
"properties": {
"text": {
"type": "string",
"description": "The text to be analyzed for sentiment"
}
},
"additionalProperties": false
}Output
Variant 1
oktruelabelstringThe sentiment label - positive, negative, or neutral
- enum:
- ["positive","negative","neutral"]
scoresobjectInspect scores structure
negnumberrequiredneunumberrequiredposnumberrequiredcompoundnumberrequiredVariant 2
okfalseerrorobject- additionalProperties:
- true
Inspect error structure
codestringoptionalStable machine-readable error code (e.g. INPUT_INVALID, FETCH_FAILED)
detailsobjectoptionalOptional structured context
messagestringrequiredHuman-readable error message
Complete output schema
{
"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
}
]
}Runtime & execution
What AgentPM provisions and runs on your machine.
- Runtime
- python 3.11
- Entrypoint
- python -u sentiment_analysis/__main__.py
- Timeout
- 120 s
- Packaged files
- 1
Environment
No environment variables declared.
Declared by the author and read from your environment at run time. AgentPM neither supplies nor proxies credentials. Local runtime readiness is not evaluated here.
Evidence
Health & Security →Reported by the Registry, for this version. A Registry-performed check is a Registry-reported result, not independent verification.
- APDS conformance
- Legacy inference; conformance not established
- Integrity & provenance
4 recorded signals
- Not applicable: Logical release digestRegistry recomputed metadata binding; archive bytes are not re-downloaded. Historical single archives have no logical release digest.Source: canonical release document and stored manifest/resolution/artifact inventory. Observed .
- Author signature verified by RegistryRegistry namespace signer history; Ed25519 and exact statement binding. This is a Registry-performed check, not independent local verification by the reader or a safety guarantee.Source: stored provenance and Stage 1 verification contracts. Observed .
- Registry attestation verified by RegistryRoot-signed Registry key set; exact origin, validity, key history and Ed25519 statement binding. This is a Registry-performed check, not independent local verification by the reader or a safety guarantee.Source: stored provenance and Stage 1 verification contracts. Observed .
- Not evaluated: Dependency byte integrity not evaluatedUse a local verified installation to check the exact graph's downloaded bytes.Source: Registry metadata only. Observed .
- Target support
- 1 artifact · legacy · provisioning not evaluated
- License
- Unknown · none declared by the author
Source
Legacy manifest: no explicit APDS declaration. Compatibility may be inferred; this is not verified conformance.
Full agent.json · v0.1.5
{
"kind": "tool",
"name": "sentiment-analysis",
"files": [
"sentiment_analysis/"
],
"inputs": {
"type": "object",
"required": [
"text"
],
"properties": {
"text": {
"type": "string",
"description": "The text to be analyzed for sentiment"
}
},
"additionalProperties": false
},
"readme": "README.md",
"$schema": "https://raw.githubusercontent.com/agentpm-dev/cli/refs/heads/main/schemas/agentpm.manifest.schema.json",
"license": {
"file": "LICENSE"
},
"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
}
]
},
"runtime": {
"type": "python",
"version": "3.11"
},
"version": "0.1.5",
"entrypoint": {
"args": [
"-u",
"sentiment_analysis/__main__.py"
],
"command": "python",
"timeout_ms": 120000
},
"description": "Sentiment analysis using VADER."
}