Skip to main content

Kedi Decisions

Provider-neutral typed decisions, with independent Jev and Laya integrations.

Requires Python 3.11 or newer. Pydantic AI integrations target version 2.57.

The root kedi-decisions package contains schema planning, criteria, validation, decision evidence and optional framework bridges. It imports neither TypeSafe SDK nor MLX/PyTorch. Provider packages live in packages/ and can be installed independently. Kedi itself is not required to use them.

Install Includes
kedi-decisions Shared contracts and validation only
kedi-decisions[typesafe] Jev and its native Pydantic AI integration
kedi-decisions[laya] Laya, upstream PyTorch runtime, Pydantic AI
kedi-decisions[laya-mlx] Laya, Apple Silicon MLX runtime, Pydantic AI
kedi-decisions[langchain] Optional shared LangChain integration

Jev's LangChain transport is installed with kedi-typesafe[langchain]. The shared langchain extra alone does not install provider-specific SDKs.

These package versions are not yet published to PyPI. Clone the monorepo to work from source:

git clone https://github.com/kedi-lang/kedi-decisions.git
cd kedi-decisions
uv sync --locked --group dev

Add --extra laya-mlx or --extra laya only on a host where that runtime is needed. Installation does not download model weights.

Layout

  • src/kedi_decisions/: shared contract, schema, evidence and integrations.
  • packages/kedi-typesafe/: TypeSafe SDK conversion and Jev transport.
  • packages/kedi-laya/: local inference, MLX/Torch loading and model wrappers.
  • tests/: package isolation and cross-provider contracts.

Kedi programs import the shared criteria with > import: decisions; Python callers embedded in Kedi use kedi.decisions. These replace the former provider-specific Kedi type-import modules. Neither surface selects a model, loads weights, or imports a provider SDK. Standalone Python callers can import directly from kedi_decisions. Provider packages retain their public API.

Compatibility

kedi_typesafe retains its public exports, evaluator/client ownership rules, strict default boolean threshold of 0.85, SDK-native question plans and metadata envelope. Criteria are aliases of the shared objects, not duplicate classes. Existing serialized x-typesafe schema annotations and route identifiers are retained for compatibility; they do not imply a dependency on the TypeSafe SDK.

Jev and Laya can return similar decision shapes without having interchangeable confidence calibration. A finite-choice interface is not free-form extraction. Unsupported schema types fail before model invocation.

Checks

make check, make tests and make build validate the workspace. Live validation programs reside with their provider packages and are excluded from normal CI. make coverage enforces a 98% combined line/branch coverage floor.

Metadata

Release files for kedi-decisions 0.1.1

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

Source distribution (sdist)

Source distribution for kedi-decisions 0.1.1
File Size Uploaded Provenance Actions
kedi_decisions-0.1.1.tar.gz 262.6 kB Without provenance Details for kedi_decisions-0.1.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for kedi-decisions 0.1.1
File Interpreter ABI Platform Actions
kedi_decisions-0.1.1-py3-none-any.whl Python 3 none any Details for kedi_decisions-0.1.1-py3-none-any.whl

Total release size: 289.4 kB

Release files / kedi_decisions-0.1.1.tar.gz

Download URL kedi_decisions-0.1.1.tar.gz
Size 262.6 kB
Tags Source
SHA-256 checksum
How to use checksums
eb62ba63bd6a5833f248f699e627a94c5058e796fec8e997ff47f6433ff02d32
BLAKE2b-256 checksum
How to use checksums
8d6747d8352fc4acbdd9b02bd165f6e0ced5b5bdf30bd4f10d2d1821fa5a4c51
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.6

Release files / kedi_decisions-0.1.1-py3-none-any.whl

Download URL kedi_decisions-0.1.1-py3-none-any.whl
Size 26.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
5ec3f44ff16b8be691ac4884d91ca4e807f06fa31f0612e73555fd42230a34ff
BLAKE2b-256 checksum
How to use checksums
ccd71db89d399368b12a282c6664c4b6aadc3eecca04692761d222baac57f79a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.6

Security for kedi-decisions 0.1.1

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.

No provenance found

None of the files in this release were uploaded with provenance metadata.

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.1 This release

2 release files No 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