Skip to main content

Decido

Ask typed questions about evidence, keep every probability, and use the results in ordinary Python. Start with Jev or supply your own decision provider.

Decido adds validated distributions, batching, request budgets, ranking, and exportable decision records around a small provider contract. It also includes optional web crawling and local MCP tools.

Install

Python 3.11+:

pip install "decido[typesafe]"
export TYPESAFE_API_KEY="your-api-key"

Get a key from the TypeSafe console. Jev requests use your account and may incur charges. Environment setup

Make a decision

from decido import Choice, SyncSession
from decido.providers.typesafe import TypeSafeProvider

session = SyncSession(TypeSafeProvider()).start()
result = session.decide(
    state="Every API call fails after our signing-key rotation.",
    questions={
        "team": Choice(
            "Which team should handle this? Use unknown if the evidence is unclear.",
            ("billing", "technical", "unknown"),
            descriptions={
                "billing": "Charges, invoices, or subscriptions",
                "technical": "Broken software or integrations",
                "unknown": "The evidence does not establish a team",
            },
        ),
    },
)
answer = result.choice("team")
print(answer.choice)
print(dict(answer.distribution.probabilities))
session.close()

Add questions to the same call; the runtime batches them within the provider's limits. Use result.binary("id"), result.choice("id"), or result.ordinal("id") for typed answers. A context manager is also available for scripts.

Keep missing evidence separate from neutral evidence. “Margins were not reported” is unknown; “margins were unchanged” supports a neutral answer. Model probabilities are not automatically calibrated, and independent questions do not form a joint distribution.

Try it without a key

pip install decido
decido rank

This runs a bundled token-overlap example. The lexical provider exercises the API without network access; its scores are heuristics, not semantic judgments.

Use your own inputs

The CLI accepts JSON files or stdin:

decido decide --input request.json --provider typesafe
decido rank --input candidates.json --provider typesafe

JSON format · Local MCP setup

Examples to edit

Clone the repository to run these scripts:

  • Support routing: classify a request and send uncertain cases to review.
  • Document ranking: select useful documents with independent relevance probabilities.
  • Evidence factors: distinguish reported changes, unchanged conditions, and missing information.

Run the examples · Crawl toward a goal · Evaluate six labeled examples

Extend it

Implement the provider protocol, then pass your object to SyncSession or DecisionModel. Browser backends are separate and optional.

Custom provider example · Provider contract · API usage and records · Contributing

Alpha release under the MIT license. The API may change before 1.0. Tests verify contracts and mechanics; no model-quality or financial-performance advantage is claimed.

Metadata

Release files for decido 0.1.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 decido 0.1.0
File Size Uploaded Provenance
decido-0.1.0.tar.gz 160.5 kB With provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for decido 0.1.0
File Interpreter ABI Platform
decido-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 196.1 kB

Release files / decido-0.1.0.tar.gz

Download URL decido-0.1.0.tar.gz
Size 160.5 kB
Tags Source
SHA-256 checksum
How to use checksums
0d3cc9e07f1294af650713bf56d3dbeaeb4ff64444b458230124b61a10534f11
BLAKE2b-256 checksum
How to use checksums
7193811600a988803f8a9040a5af9502a1cb8fd798364aad2e6f0f567cd4507a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 17, 2026.

Transparency log

Release files / decido-0.1.0-py3-none-any.whl

Download URL decido-0.1.0-py3-none-any.whl
Size 35.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
15bc3b678c0767af2fed98b0d7581e956a42c2e9f2dca90f5a6bfdb4239a0584
BLAKE2b-256 checksum
How to use checksums
eb6e97fbb11a44cc06fd5d1f7e12dd3a00dfe59f71e7d9a9d927ab6e3ddf48dc
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 17, 2026.

Transparency log

Security for decido 0.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

All 2 files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for decido-0.1.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 17, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files Full provenance

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