Skip to main content

jebadiah-decide

Typed decisions from a Jebadiah model on the runtime you already run. You send a state and typed questions (choice, yes or no, score) and get a calibrated probability for every option. Nothing is generated.

pip install jebadiah-decide
jeb serve                  # Ollama by default: pulls Jebadiah 9B v2 the first time

jeb serve puts AINode's decision API on http://localhost:8100, in front of Ollama, LM Studio, llama.cpp's llama-server, vLLM, MLX or AINode:

  • POST /v1/systemone: the Jev wire (what JDE's jevJudge and TypeSafe clients send)
  • POST /v1/decide: AINode's decide shape
  • GET /health
curl -s localhost:8100/v1/systemone -H 'Content-Type: application/json' -d '{
  "state": {"ticket": "Customer says the invoice total does not match the quote."},
  "questions": {"route": {"type": "choice", "instructions": "Which team should take this ticket?",
    "criteria": {"billing": "an invoice, a charge or a refund", "support": "a product question",
                 "sales": "a quote or a renewal"}}}}'

The step-by-step setup for each runtime, five scenario recipes, snippets in curl, Python, TypeScript and Go, JDE, and a prompt for your coding agent are in the Run Jeb locally guide.

Commands

Command What it does
jeb serve [--backend X] [--size 4b|9b|27b] [--port 8100] /v1/systemone and /v1/decide on localhost
jeb doctor [--backend X] checks the runtime, the model, the tokenizer, the prompt and a known answer
jeb ask "question" --text file.txt [--options a,b,c | --levels low,mid,high] one answer, one line, plus JSON
jeb request file.json answers a {state, questions} file

Backends: ollama (default), lmstudio, llama-server, vllm, mlx (pip install "jebadiah-decide[mlx]"), ainode. With Ollama, jeb pulls the model the first time; with LM Studio, it finds the loaded Jebadiah or tells you what to click. On Ollama, LM Studio, AINode and default vLLM a question can have at most 20 options, and jeb refuses a wider one rather than guess.

From Python

from jebadiah_decide import Jeb

jeb = Jeb("ollama")      # or "lmstudio", "llama-server", "vllm", "mlx", "ainode"
jeb.prepare()            # checks the runtime; Ollama pulls the model the first time
out = jeb.decide({"message": "I was charged twice for March."},
                 {"team": {"type": "choice", "instructions": "Which team should handle this?",
                           "criteria": {"billing": "charges, refunds", "technical": "bugs, errors"}}})
print(out["answers"]["team"])

The prompt is rendered here, exactly as AINode renders it, with the model's own tokenizer and chat template (a few MB from its Hugging Face repository, cached), and the model's temperatures.json is applied. Every call checks that the runtime counted the same prompt tokens. No torch, no transformers.

Tests

pip install -e ".[dev]" && pytest        # offline: fake runtimes on localhost, no model, no network

Apache-2.0. Made in Texas.

Metadata

Release files for jebadiah-decide 0.2.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for jebadiah-decide 0.2.0
File Size Uploaded
jebadiah_decide-0.2.0.tar.gz 35.0 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for jebadiah-decide 0.2.0
File Interpreter ABI Platform
jebadiah_decide-0.2.0-py3-none-any.whl Python 3 none any Details

Total release size: 70.9 kB

Release files / jebadiah_decide-0.2.0.tar.gz

Download URL jebadiah_decide-0.2.0.tar.gz
Size 35.0 kB
Tags Source
SHA-256 checksum
How to use checksums
f746fa15aba4a337ca9261a34949a42d821378f5aaad0a58c03984bfd83eef59
BLAKE2b-256 checksum
How to use checksums
32ef8ede9fbabc8a4fdc816c494ad51599a8388c62f351e9323b92d01c41a3ee
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.8.4

Release files / jebadiah_decide-0.2.0-py3-none-any.whl

Download URL jebadiah_decide-0.2.0-py3-none-any.whl
Size 35.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
7d805c25fbd49771b5e8dab9421d835b425546b9eded7883c87c51d4095c7f5d
BLAKE2b-256 checksum
How to use checksums
0b767a4ef5ddbb9f07b0f37c986a15ae9b9ead74f8f7e64eda5f7861d87504e4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.8.4

Release history Release notifications | RSS feed

0.3.0

2 release files

This release

0.2.0 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page