{
 "schema_version": 1,
 "generated": "2026-10-20",
 "id": "strands-labs-strands-decider--score-tone-over-http",
 "repo": "strands-labs/strands-decider",
 "repo_url": "https://github.com/strands-labs/strands-decider",
 "repo_slug": "strands-labs-strands-decider",
 "title": "Serve a scorer that other services can call",
 "page_title": "How to serve a scorer that other services can call with Strands Decider",
 "summary": "Run the decision model as a local HTTP server and send it questions with curl.",
 "who": "A developer whose agent or other service needs to call a decision model over HTTP for tone or sentiment scores on each request.",
 "problem": "Every service that needs a score would otherwise load its own model or call a slower general LLM for a narrow question.",
 "outcome": "A local server on port 8000 returns JSON with a score and token usage for each question, ready for another service to use.",
 "steps": [
  "`pip install strands-decider`",
  "`strands-decider serve StrandsAgents/strands-decider-2B-qwen3.5-v1-2610 --port 8000`",
  "`curl -s localhost:8000/v1/systemone -H 'content-type: application/json' -d '{\"state\": \"Help! My payouts have been failing for 3 days!\", \"questions\": {\"is_urgent\": {\"type\": \"noul\", \"instructions\": \"Does this convey urgency?\"}}}'` (inferred, check the README)",
  "Read the answers object in the JSON response and parse the noul value for your caller."
 ],
 "agent_prompt": "Using the strands-decider repo, start the server with the 2B model on port 8000, then POST a state of <text> and a score question to /v1/systemone. Return the score and confidence from the JSON response. Verify that the response contains an answers object and a latency_ms field.",
 "agents": [
  "any"
 ],
 "difficulty": "Intermediate",
 "time": "45 minutes",
 "basis": "readme",
 "caveat": "The README describes running the server locally, and says to see its deployment guide before letting other people or services call it from elsewhere.",
 "category": "Work and operations",
 "tags": [
  "Work and operations"
 ],
 "lang": "python",
 "requirements": [
  "Python with pip to install the strands-decider package",
  "A machine that can run a 2B model: a CUDA GPU, an Apple-silicon Mac, or CPU",
  "Text inputs you want to classify, route, or score"
 ],
 "risk": "none",
 "seen_in_the_wild": false,
 "mentioned_publicly": false,
 "risks": [],
 "best": false,
 "score": 0.8,
 "evidence": [],
 "url": "https://dedupedai.com/use-cases/strands-labs-strands-decider/score-tone-over-http/",
 "md": "https://dedupedai.com/use-cases/strands-labs-strands-decider/score-tone-over-http/index.md",
 "disclaimer": "Deduped lists open-source repositories that belong to other people. We do not own, maintain, audit, or vouch for any of them, and a repo appearing here is not an endorsement or a safety check. The use cases, steps, and prompts are written by AI and may be incomplete, outdated, or just wrong. Where a use case is marked \"Seen in the wild\", we link to public posts where someone described something similar, but we have not verified those posts and the use case itself is still our AI's own write-up. Use all of this at your own risk. Only run code, commands, or agents on systems and accounts you are authorized to use, and read the code and every command before you run it, especially anything that touches credentials, files, or the network. Nothing here is professional, security, legal, or financial advice. All trademarks and project names belong to their respective owners, and their use here does not imply affiliation. Content is provided as is, without warranties of any kind. Found a mistake, a safety problem, or something you want removed? Email hello@dedupedai.com and we will look at it promptly.",
 "api": "https://dedupedai.com/api/v1/usecases/strands-labs-strands-decider--score-tone-over-http.json",
 "api_version": "v1"
}
