pkg/

directory
v0.2.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 27, 2026 License: MIT

Directories

Path Synopsis
Package agent defines the boundary between Verdict's deterministic evaluator and whatever answers an agentDecision node.
Package agent defines the boundary between Verdict's deterministic evaluator and whatever answers an agentDecision node.
http
Package http provides a generic HTTP/JSON agent bridge, so an agentDecision can be answered by any service that speaks a small, documented envelope — an internal classifier, a model gateway, or a colleague's Python service.
Package http provides a generic HTTP/JSON agent bridge, so an agentDecision can be answered by any service that speaks a small, documented envelope — an internal classifier, a model gateway, or a colleague's Python service.
mock
Package mock provides a deterministic in-memory agent bridge for tests and for running agent-bearing models in CI without an LLM.
Package mock provides a deterministic in-memory agent bridge for tests and for running agent-bearing models in CI without an LLM.
Package analyze is Verdict's static analysis over a prepared model: it finds decision-table gaps (input combinations no rule covers) and overlaps (input combinations several rules cover), plus the structural problems that make a table suspect regardless of its data.
Package analyze is Verdict's static analysis over a prepared model: it finds decision-table gaps (input combinations no rule covers) and overlaps (input combinations several rules cover), plus the structural problems that make a table suspect regardless of its data.
Package config loads Verdict's YAML configuration and turns it into engine options.
Package config loads Verdict's YAML configuration and turns it into engine options.
Package diag carries the diagnostic surface shared by the loader, the static analyzer and the evaluator.
Package diag carries the diagnostic surface shared by the loader, the static analyzer and the evaluator.
dmn
model
Package model holds the parsed, in-memory representation of a DMN definitions document: the Decision Requirements Graph (DRG), its elements, and the boxed expressions that carry each decision's logic.
Package model holds the parsed, in-memory representation of a DMN definitions document: the Decision Requirements Graph (DRG), its elements, and the boxed expressions that carry each decision's logic.
vdj
Package vdj implements Verdict Decision JSON: a lossless JSON projection of the DMN model, for tooling that would rather not touch XML.
Package vdj implements Verdict Decision JSON: a lossless JSON projection of the DMN model, for tooling that would rather not touch XML.
xml
Package xml reads and writes DMN documents in their standard XML serialisation, projecting them onto the version-neutral types in pkg/dmn/model.
Package xml reads and writes DMN documents in their standard XML serialisation, projecting them onto the version-neutral types in pkg/dmn/model.
Package eval is Verdict's evaluator: it turns a parsed DMN model into a prepared program and then executes decisions, decision services and boxed expressions against caller inputs, recording a trace as it goes.
Package eval is Verdict's evaluator: it turns a parsed DMN model into a prepared program and then executes decisions, decision services and boxed expressions against caller inputs, recording a trace as it goes.
Package explain renders a decision in human-readable form: what it depends on, how it decides, and what its rules say.
Package explain renders a decision in human-readable form: what it depends on, how it decides, and what its rules say.
Package feel adapts the FEEL implementation Verdict embeds (github.com/pbinitiative/feel) to the shape the DMN evaluator needs: a compile cache, unary-test evaluation with `?` bound, dialect gating between S-FEEL and full FEEL, a namespaced extension point for application function libraries, and lossless conversion between FEEL values and plain Go values.
Package feel adapts the FEEL implementation Verdict embeds (github.com/pbinitiative/feel) to the shape the DMN evaluator needs: a compile cache, unary-test evaluation with `?` bound, dialect gating between S-FEEL and full FEEL, a namespaced extension point for application function libraries, and lossless conversion between FEEL values and plain Go values.
Package trace holds Verdict's execution trace: the record of which decisions fired, what they were given, what they produced, and how they decided.
Package trace holds Verdict's execution trace: the record of which decisions fired, what they were given, what they produced, and how they decided.
Package verdict is the public API of the Verdict decision engine: a DMN-aligned evaluator for Go with an agent-backed node kind.
Package verdict is the public API of the Verdict decision engine: a DMN-aligned evaluator for Go with an agent-backed node kind.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL