{
 "schema_version": 1,
 "generated": "2026-10-20",
 "id": "nokia-applied-research-anyjev--share-decision-endpoint-with-escalation-cap",
 "repo": "nokia-applied-research/AnyJev",
 "repo_url": "https://github.com/nokia-applied-research/AnyJev",
 "repo_slug": "nokia-applied-research-anyjev",
 "title": "Share one decision endpoint with a capped reasoning budget",
 "page_title": "How to share one decision endpoint with a capped reasoning budget with Any Jev",
 "summary": "Run a local HTTP gateway so several clients get decisions and share one cap on reasoning escalations.",
 "who": "A platform engineer who wants several internal tools to call the same decision model and needs a single limit on how often the expensive reasoning path runs.",
 "problem": "Each client calling the model directly would escalate hard decisions to reasoning without any shared limit, which makes cost and latency unpredictable.",
 "outcome": "A local gateway answers POST /v1/decide requests and GET /v1/stats reports the escalation share, with at most the configured share of recent decisions sent to reasoning.",
 "steps": [
  "Run `pip install \"anyjev[client]\"` and start the model server with `vllm serve morriszjm/Tacit-9B --host 127.0.0.1 --port 8000`. (inferred, check the README)",
  "Start the gateway with `python -m anyjev.serve --model morriszjm/Tacit-9B --upstream http://127.0.0.1:8000 --adaptive --port 8100`.",
  "Send one decision with `curl -s 127.0.0.1:8100/v1/decide -H 'Content-Type: application/json' -d '{\"state\": \"Customer: my package has not arrived.\", \"question\": \"What does the customer want?\", \"options\": [\"track_order\", \"refund\"]}'`. (inferred, check the README)",
  "Check the escalation share through `GET /v1/stats` and adjust `max_cot_share` and `cot_window` if the share is too high.",
  "Keep the gateway on 127.0.0.1 or put it behind your own authentication, because the gateway has none of its own."
 ],
 "agent_prompt": "Using the repo AnyJev (nokia-applied-research/AnyJev), start the vLLM server for morriszjm/Tacit-9B and the anyjev.serve gateway on port 8100, then POST the decision <state text> with options <option list> to /v1/decide. Expected output: a JSON decision with answer, probs and route fields. Verify that GET /v1/stats returns an escalation share at or below the configured cap.",
 "agents": [
  "any"
 ],
 "difficulty": "Advanced",
 "time": "1 hour 30 minutes",
 "basis": "readme",
 "caveat": "The gateway has no authentication of its own and listens on 127.0.0.1, so exposing it to other machines needs your own access control.",
 "category": "Work and operations",
 "tags": [
  "Work and operations"
 ],
 "lang": "python",
 "requirements": [
  "Python with pip",
  "A GPU or a vLLM server for the 9B-class models, or a smaller open causal LM for the training-free path",
  "Access to the Hugging Face model you choose, for example morriszjm/Tacit-9B or Qwen/Qwen3-8B"
 ],
 "risk": "none",
 "seen_in_the_wild": false,
 "mentioned_publicly": false,
 "risks": [],
 "best": false,
 "score": 0.8,
 "evidence": [],
 "url": "https://dedupedai.com/use-cases/nokia-applied-research-anyjev/share-decision-endpoint-with-escalation-cap/",
 "md": "https://dedupedai.com/use-cases/nokia-applied-research-anyjev/share-decision-endpoint-with-escalation-cap/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/nokia-applied-research-anyjev--share-decision-endpoint-with-escalation-cap.json",
 "api_version": "v1"
}
