EveryDev.ai
Subscribe
Home
Tools

5,681+ AI tools

  • Featured
  • Gems
  • Trending
  • New
  • Rate tools
  • Compare
  • Arena
Categories
  • Agents2872
  • Coding2155
  • Infrastructure1015
  • Projects796
  • MCP743
  • Research708
  • Analytics549
  • Marketing519
  • Design463
  • Testing460
  • Data430
  • Security393
  • Integration281
  • Communication274
  • Prompts270
  • Extensions234
  • Voice198
  • DevOps187
  • Commerce180
  • Web127
  • Learning116
  • Finance41
AI Tools by Topic
  • AI Coding Assistants
  • Agent Frameworks
  • MCP Servers
  • AI Prompt Tools
  • Vibe Coding Tools
  • AI Design Tools
  • AI Database Tools
  • AI Website Builders
  • AI Testing Tools
  • LLM Evaluations
Follow Us
  • X / Twitter
  • LinkedIn
  • Reddit
  • Discord
  • Threads
  • Bluesky
  • Mastodon
  • YouTube
  • GitHub
  • Instagram
Get Started
  • Users
  • Rate Tools
  • About
  • Editorial Standards
  • Corrections & Disclosures
  • Community Guidelines
  • Advertise
  • Contact Us
  • Newsletter
  • Submit a Tool
  • Start a Discussion
  • Write A Blog
  • Share A Build
  • Terms of Service
  • Privacy Policy
Explore with AI
  • ChatGPT
  • Gemini
  • Claude
  • Grok
  • Perplexity
Agent Experience
  • llms.txt
Theme
With AI, Everyone is a Dev. EveryDev.ai ©
    1. Home
    2. Tools
    3. AnyDecisionModel
    AnyDecisionModel icon

    AnyDecisionModel

    AI Development Libraries

    A Swift package that returns typed probabilities, choices, and ordinal scores from language models, with local and API backends.

    Visit Website

    At a Glance

    Pricing
    Open Source

    Swift package for typed decisions (probabilities, choices, scores) licensed under Apache License 2.0.

    Engagement

    Available On

    macOS
    Linux
    iOS
    API
    SDK

    Resources

    WebsiteDocsGitHubllms.txt

    Topics

    AI Development LibrariesLocal InferenceAI Decision Models

    Alternatives

    AnySpeechRecognizerdeciderVon
    Developer
    matttPortland, OR

    Listed Nov 2026

    About AnyDecisionModel

    AnyDecisionModel is an open-source Swift package by mattt for getting typed decisions from language models: yes-or-no probabilities, choices among options, and scores on ordinal scales. Its API follows the model-and-session pattern of Apple's Foundation Models framework and AnyLanguageModel. The latest release listed is 0.7.0, under the Apache 2.0 license.

    What It Is

    AnyDecisionModel is a Swift library for asking questions about a piece of text or JSON state and receiving structured answers instead of free text. A DecisionSession holds one immutable state, and each question is independent of the others. Binary questions return a Double probability. Choice questions return a Choice with a value, a probability for each option, and a confidence value. Score questions return a Score with the expected level, per-level probabilities, and a confidence value.

    Choices can be defined by conforming an enum to Choosable, optionally with option descriptions that tell the model when to select each one. Options can also be supplied at run time. Several questions can be sent in one batch call, which also returns token usage and local diagnostics.

    Backends

    Six backends are documented:

    • MLX runs a small language model on Apple silicon and reads each decision from next-token probabilities in one forward pass.
    • MLX decision heads run models with a trained decision head, such as Cloudflare's Clef.
    • Core AI runs a Core AI model on macOS 27 and iOS 27.
    • llama.cpp runs a GGUF model.
    • Jev calls TypeSafe's Jev through the System One API, or any server implementing it.
    • Ollama calls a System One model locally or in Ollama's cloud.

    Without traits the package has no third-party dependencies and provides the core types plus the Jev and Ollama backends. The MLX, CoreAI, and Llama traits enable the local backends.

    Calibration and confidence

    Local backends accept a Calibration that applies a temperature to all answers and a bias to binary answers. Local confidence is the normalized complement of the entropy of the answer probabilities, which measures how concentrated the distribution is rather than whether the answer is correct. The MLX backend offers rotation debiasing to reduce position bias in choices, and optional prefix caching. Diagnostics report the share of next-token probability that fell on the answer labels.

    Documented limitations

    The README states that Jev and Ollama wire compatibility is tested against fixtures rather than live services, that calibration was fitted on two tasks with unknown transfer, and that typed output alone should not be relied on to resist injected instructions.

    AnyDecisionModel - 1

    Community Discussions

    Be the first to start a conversation about AnyDecisionModel

    Share your experience with AnyDecisionModel, ask questions, or help others learn from your insights.

    Pricing

    OPEN SOURCE

    Open Source

    Swift package for typed decisions (probabilities, choices, scores) licensed under Apache License 2.0.

    • Apache License 2.0 (OSI-approved)
    • Core types plus Jev and Ollama backends without third-party dependencies
    • Optional MLX, CoreAI and Llama traits for local backends
    • Third-party services such as the Jev/System One API or Ollama cloud are separate external offerings

    Capabilities

    Key Features

    • Typed binary probabilities, choices, and ordinal scores
    • Model-and-session API patterned on Apple's Foundation Models framework
    • Choosable enums with option descriptions
    • Batch decisions in a single call with usage and diagnostics
    • Six backends: MLX, MLX decision heads, Core AI, llama.cpp, Jev, Ollama
    • Rotation debiasing for choice position bias
    • Optional prefix caching
    • Configurable calibration with temperature and binary bias
    • Entropy-based confidence values and allowed-answer mass diagnostics
    • Text and JSON session states

    Integrations

    MLX
    Core AI
    llama.cpp
    Ollama
    TypeSafe Jev
    Cloudflare Clef
    Hugging Face Hub
    Swift Package Manager
    API Available
    View Docs

    Ratings & Reviews

    No ratings yet

    Be the first to rate AnyDecisionModel and help others make informed decisions.

    Rate other tools you’ve used

    Developer

    mattt

    Mattt is an independent developer best known for creating widely-used open-source Swift and Objective-C libraries. He builds tools that connect Apple platform capabilities with modern developer workflows, including the official Swift SDK for the Model Context Protocol. His projects emphasize clean APIs, structured data, and deep integration with Apple frameworks.

    Portland, OR
    Read more about mattt
    WebsiteGitHub
    3 tools in directory

    Similar Tools

    AnySpeechRecognizer icon

    AnySpeechRecognizer

    A Swift package that implements Apple's modern Speech API with a choice of recognition engine, including Parakeet and Qwen3-ASR on Core ML.

    decider icon

    decider

    Open-source family of language models that return calibrated probability distributions for typed questions in a single forward pass.

    Von icon

    Von

    An open-source, non-autoregressive System One decision model delivering calibrated discrete, probabilistic, and ordinal inference in sub-25ms, running locally without autoregressive text generation.

    Browse all tools

    Related Topics

    AI Development Libraries

    Programming libraries and frameworks that provide machine learning capabilities, model integration, and AI functionality for developers.

    556 tools

    Local Inference

    Tools and platforms for running AI inference locally without cloud dependence.

    329 tools

    AI Decision Models

    Models that make decisions instead of generating text. Given context and predefined options, they return choices, scores, or probabilities that applications can act on.

    21 tools
    Browse all topics
    Back to all toolsSuggest an edit
    ratings
    discussions