DecisionAct
Every Action Is a Decision:
Decision-Model-Driven Execution for Structured Agent Workflows
DecisionAct is an agent framework written in Python. It uses decision models to select intents, tools, inputs, and outcomes through typed questions. Your Python code performs the actions, and predefined templates produce the replies.
Decision models decide. Your code acts.
How it works
- A user sends a message.
- A decision model selects the intent from the options you define.
- The framework selects an allowed tool and resolves its inputs.
- Your Python function executes the action.
- The model evaluates the tool result and selects the next step or outcome.
- DecisionAct fills the selected reply template with the available results.
Missing required inputs lead to follow-up questions. Configured confidence thresholds let the agent ask for a rephrasing when a decision is uncertain.
Available in v0.1.0 (Latest version)
- Single-agent, single-intent workflows: one agent handles one intent per message.
- Two decision-model providers: TypeSafe Jev and Cloudflare Clef.
- Typed decisions: choice, yes/no probability (
Noul), and rubric-based score. - Python tools: declare ordinary functions with
@tooland describe their inputs. - Parameter resolution: required and optional inputs, categorical choices, and regular-expression or candidate-based extraction.
- Explicit intents and outcomes: define the available actions and reply templates.
- Conversation memory: choose no history or a configurable buffer of past messages.
- SQLite checkpoints: optionally save conversation state, missing-input pauses, and pending approvals to a file. The default SQLite database lives in memory.
- Human approval middleware: pause configured tool calls for approval or rejection.
- Execution limits and traces: bound tool calls and input retries, and inspect
decisions, tool inputs, outputs, and outcomes through
TurnResult. - Model availability errors:
DecisionModelNotFoundidentifies missing credentials or model names and provider-reported authentication or model-not-found failures.
Why use DecisionAct?
DecisionAct is designed for structured workflows with known intents, tools, and outcomes, such as order support and flight-desk operations.
The application defines the available choices and user-facing replies. The decision model selects among those choices, while execution stays in Python functions. This makes the permitted workflow and response wording easier to inspect and evaluate.
Compared with an agent that generates free-form replies, DecisionAct gives you explicit response templates and bounded tool execution. LLM-based agents can also use structured outputs, tool restrictions, and approval controls; the distinction here is DecisionAct's decision-model-driven execution approach.
Decision quality still depends on the model, descriptions, confidence thresholds, and tool implementation. Cost and latency depend on the provider and workload; no universal performance advantage is claimed.
Coming in future versions
- Single-agent, multi-intent workflows: handle several requests in one message.
- Multi-agent workflows: route requests between specialist agents and coordinate their execution.
These are planned features and are not included in v0.1.0.
Examples
The examples/ folder contains agents built using the DecisionAct framework:
- Order agent: checks order status, lists orders, and cancels eligible orders after approval.
- Flight desk agent: searches flights, books tickets, checks and changes bookings, cancels bookings, adds baggage, and selects seats.
Both examples use fictional data and demonstrate how tools, intents, outcomes, and conversation memory fit together. Jev initialization is active, with a commented Cloudflare Clef alternative.
License
DecisionAct is licensed under the MIT License.
Metadata
Release files for decisionact 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| decisionact-0.1.0.tar.gz | 36.2 kB | With provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| decisionact-0.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 67.4 kB
Release files / decisionact-0.1.0.tar.gz
| Download URL | decisionact-0.1.0.tar.gz |
|---|---|
| Size | 36.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
21f05dd75ec4557b216479e42d9a663a560a724141a4066a1e155ebe3e65bcec
|
|
BLAKE2b-256 checksum How to use checksums |
3dec727898ba4879096241088d04f63c827cf22b55b4e565cdf5978590ab38db
|
| 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 Oct 16, 2026.
Transparency logRelease files / decisionact-0.1.0-py3-none-any.whl
| Download URL | decisionact-0.1.0-py3-none-any.whl |
|---|---|
| Size | 31.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
fa1d5c3d7ad42883cd3bc1544aa307b809b44b565393fafc0d6c6e65082737d3
|
|
BLAKE2b-256 checksum How to use checksums |
094e995525bf38b49ef15f68298bbf087da72f24c74f8cd4ddec3f74169aa8f9
|
| 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 Oct 16, 2026.
Transparency logSecurity for decisionact 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.
Attestation for decisionact-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 Oct 16, 2026.
Transparency logA 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.