Jev.aitools.fyi

Command Palette

Search for a command to run...

SDK
Product profile
Swift56 starsUpdated 2026-11-09

AnyDecisionModel

Swift 6.2 package: DecisionSession over six backends including hosted Jev, Ollama, MLX, Core AI, and llama.cpp.

Overview

AnyDecisionModel (github.com/mattt/AnyDecisionModel?ref=jev.aitools.fyi, Apache-2.0) is mattt's Swift package that unifies typed decisions behind DecisionSession. README documents probability draws, choice over Choosable enums, score with ordered levels, batch decide(_:) with usage and diagnostics, and prewarm(). Six backends ship behind Swift package traits: MLX next-token probabilities in one forward pass, MLX decision heads such as mlx-community/clef-flash-4bit for Cloudflare Clef style text or JSON only, Core AI on macOS 27 and iOS 27, llama.cpp GGUF, Jev through any System One compatible server, and Ollama local or cloud at v0.35.0 plus with cloud at v0.40.5 plus. Requirements list Swift 6.2 plus, macOS 26 plus, iOS 26 plus, and Linux for core with Jev and Ollama backends only. SPM depends on from 0.7.0 with MLX, CoreAI, and Llama traits and no third-party dependencies unless a trait is enabled. mattt also maintains AnyLanguageModel on Hugging Face. This package is independent of TypeSafe beyond optional Jev backend calls.

Problem: Swift apps need one session type for probability, choice, and score decisions, but teams split across Apple Core AI, local MLX, llama.cpp GGUF, hosted Jev, and Ollama daemons with different HTTP shapes.

Built for: Swift 6 developers building macOS 26, iOS 26, or Linux server tools who want DecisionSession ergonomics like AnyLanguageModel, with optional MLX and Core AI traits.

First indexed on Jev Directory: 2026-11-09

Creator and team

Name
mattt
Handle
@mattt
“A unified Swift interface for decision models across MLX, Core AI, llama.cpp, Jev, and Ollama backends.”
AnyDecisionModel README, source

How Jev is used

Role in the product flow
Jev backend: DecisionSession forwards text or JSON state to a System One compatible HTTP server and maps probabilities back into Swift types
Primitives
ChoiceNoulScore
State in
Text prompts or JSON encoded application state passed into DecisionSession, matching README DecisionSession examples
Decision out
Typed probability, discrete choice with Choosable enums, or score levels with diagnostics and batch usage structs from decide(_:)
  1. Add package dependency from 0.7.0 and enable traits for the backends you need
  2. Configure Jev backend with your System One base URL and model id
  3. Open DecisionSession with the selected model implementation
  4. Call decide for single questions or batch decide(_:) for parallel scoring
  5. Optionally prewarm() before latency sensitive UI paths

AnyDecisionModel is the Swift multi-backend cousin of peterfriese-system-one-foundation-models: both wrap System One shaped calls for Apple platform developers, but AnyDecisionModel also ships MLX, llama.cpp, and Ollama paths in one package. Point the Jev trait at api.typesafe.ai or at self-hosted POST /v1/systemone servers such as jaredpalmer-kev, strands-labs-strands-decider serve, or vev on localhost (see /alternatives/vev). Clef MLX heads align with /alternatives/cloudflare-clef weights philosophy but run on device through MLX, not Workers AI meters. For MLX on Mac without this package, see /learn/laya-vs-jev/laya-mlx-apple-silicon. Cite github.com/mattt/AnyDecisionModel README only.

Sourced performance claims

  • README backend table: MLX uses next-token probabilities in one forward pass; MLX decision heads load checkpoints such as mlx-community/clef-flash-4bit for text and JSON; Core AI targets macOS 27 and iOS 27; llama.cpp serves GGUF; Jev speaks POST /v1/systemone; Ollama needs v0.35.0 plus locally and v0.40.5 plus for cloud.Source: github.com/mattt/AnyDecisionModel README backends section
  • README requirements: Swift 6.2 plus, macOS 26 plus, iOS 26 plus, Linux supported for core with Jev and Ollama backends only. SPM uses traits MLX, CoreAI, and Llama without third-party deps unless traits are on.Source: github.com/mattt/AnyDecisionModel README requirements
  • Public GitHub repository mattt/AnyDecisionModel had 56 stars and 4 forks on 2026-11-09. Created 2026-09-21. Last push 2026-11-05. Apache-2.0. Topics include jev and mlx-lm.Source: GitHub API, 2026-11-09

Features and stack

Features

  • DecisionSession with probability, choice, and score entry points
  • Choosable enum driven choice API plus batch decide(_:)
  • Six backends behind SPM traits including Jev and Ollama
  • MLX Clef style decision head path for clef-flash-4bit weights
  • prewarm() and usage plus diagnostics on batch calls
  • Swift 6.2 plus with macOS 26, iOS 26, and partial Linux support

Stack

  • Swift 6.2
  • Swift Package Manager
  • MLX
  • Apple Core AI
  • llama.cpp GGUF
  • TypeSafe System One HTTP
  • Ollama

Pricing: Apache-2.0 code. Hosted Jev spends TypeSafe API usage. Ollama cloud and local costs depend on your Ollama account and hardware. MLX and Core AI use on-device compute.

FAQ

How is this different from System One for Apple Foundation Models?
Peter Friese's package targets LanguageModelSession and @Generable types on Foundation Models OS versions. AnyDecisionModel centers DecisionSession with six explicit backends including Ollama and llama.cpp.
Can I point the Jev backend at a local open server?
README describes Jev through any System One compatible server. Configure your base URL and model id the same way you would for Kev or Vev self-host guides on /alternatives/kev and /alternatives/vev.
Does Clef MLX require Cloudflare Workers?
The MLX decision head path loads weights such as mlx-community/clef-flash-4bit locally. Workers AI clef pricing on /alternatives/cloudflare-clef is separate from on-device MLX inference.

Related learn guides

Original Jev guidance that pairs with this product pattern.

  • System One model

    The model family behind Jev: parallel typed questions, one forward pass, probabilities you can threshold.

  • Where to run Jev

    Compare official TypeSafe, Vercel AI Gateway, OpenRouter, Cloudflare Workers AI, and classifier.dev with a fact table.

Related products

Hand-picked neighbors with rich profiles or overlapping tags.

SDKs and clientsSwift63
SDK
Native Swift 6 bridge that plugs hosted Jev, laya-serve, or on-device Laya into Apple Foundation Models LanguageModelSession.
sdksswiftapple
IntegrationsPython
Featured
Apache-2.0 clef and clef-flash decision models on Workers AI with open weights on Hugging Face.
integrationsopen-sourcecloudflare
IntegrationsPython8,952
Demo
Kev is for engineers who want open Jev-style decisions on GPUs they run. Jared Palmer's Apache-2.0 family (github.com/jaredpalmer/kev) serves Choice, Score, and Noul from Qwen checkpoints at 0.8B, 4B, 9B, and 27B, with README eval tables against hosted Jev.
integrationsopen-sourceself-hosted
IntegrationsPython765
Demo
Apache 2.0 pointer-head decision checkpoints: strands-decider CLI, POST /v1/systemone, Qwen3.5 and Gemma 4 families on Hugging Face.
integrationsopen-sourcedecision-model
By Rishit