Inputs
Choose the package source, import path, and modules that match your app, service, or notebook environment.
SDK code usage docs
These public docs focus on practical code usage: install, graph generation, discrete reasoning, layout, continuous causal workflows, influence-diagram utility and policy solving, sensitivity and VOI analysis patterns, and package manifests. Full licensed API reference is provided with purchased SDK packages.
Install and import
These public pages are code usage documentation for evaluation and adoption, including the influence-diagram and analysis patterns that mirror the new Studio workflows. Licensed SDK packages include the deeper API reference after purchase.
Choose the package source, import path, and modules that match your app, service, or notebook environment.
You get the concrete constructors and helper functions used by the later samples, so installation is tied directly to usage.
Package / module
Go
Use the Go module included in your licensed SDK artifact or approved private module proxy, then keep a context handy for the query and helper surfaces.
Discrete BBN graph generation
Use the generator helpers when you want deterministic seed-driven graph creation for demos, tests, and benchmarking before you hand-tune a production model.
Pass graph-size controls such as node count, edge density, state count, and a seed so the generated shape is reproducible.
The generator returns a graph plus starter parameters that can flow directly into model construction and benchmark fixtures.
Package / module
Go
Discrete BBN
Every language now starts from explicit graph structure and CPT definitions so the first model is created in code instead of being waved in from a file.
Provide a directed graph and one CPT per node, including root distributions and any parent-conditioned rows.
The constructor returns a reasoning model that can answer exact associational, interventional, and counterfactual queries.
Package / module
Go
Discrete BBN evidence
Darkstar uses pquery as the short alias for a probability query: it returns posterior distributions after conditioning on evidence. Start with an observed state, then move to weighted finding and virtual evidence when you want softer beliefs.
Choose the queried nodes, then provide either a hard observed value, a weighted finding over the node states, or a virtual evidence vector over the same states.
Each pquery call returns the posterior distribution for the requested nodes, making it easy to compare how different evidence styles shift the result.
Package / module
Go
Use the discrete model built above; the Query payload accepts observation, finding, and virtual evidence objects for pquery.
Discrete BBN
The discrete quickstart now covers marginals, joints, conditionals, evidence probabilities, interventions, and counterfactual mirrors instead of stopping at a single posterior call.
Choose the nodes or target you want, then add factual evidence, optional given variables, and hypothetical interventions when you move into counterfactual analysis.
Associational calls return potentials or scalar evidence probabilities, iquery returns causal effects, and the counterfactual helpers mirror the same marginal, joint, conditional, and evidence forms.
Package / module
Go
Graph layout
Layout helpers give you deterministic node coordinates for customer-facing graph views without forcing you into one front-end framework.
Pass the graph you already built plus a named layout algorithm supported by the wrapper or runtime.
You get stable node coordinates that can be fed into canvases, SVGs, editors, and dashboard components.
Package / module
Go
Continuous Gaussian SCM
The continuous examples mirror the discrete ones: define the graph, provide ordered parameters, and construct the model in code.
Define the graph, the ordered variable list, and the Gaussian parameters such as means and covariance terms expected by the wrapper.
You get a continuous reasoning model ready for posterior, intervention, and counterfactual workflows.
Package / module
Go
Continuous Gaussian SCM
For continuous SCMs, pquery is the probability-query alias for conditioning on observed numeric values. Use iquery for interventions and cquery for abduction-action-prediction workflows.
Use observed numeric values for conditioning, then provide interventions or counterfactual scenarios when you want to compare worlds.
The calls return posterior moments, interventional summaries, and counterfactual estimates that you can chart or feed into downstream analysis.
Package / module
Go
Influence diagrams
Use an influence-diagram JSON payload when one finite decision chooses between actions under chance-model uncertainty. The single-decision surface evaluates a fixed action with expectedUtility and selects the best action with maximumExpectedUtility.
Native influence-diagram JSON containing the discrete BBN chance model, decision specs, decisionOrder, informationSets, and complete finite utility tables; optional evidence known before choosing the action.
Expected utility for a fixed action, plus maximum expected utility, selected action, action-level feasibility, and diagnostics for MEU.
Package / module
Go
diagramJSON is the native influence-diagram JSON: a discrete BBN plus decisions, decisionOrder, informationSets, and complete finite utility tables.
Influence diagrams
Use solvePolicy for ordered finite decisions with explicit information sets. The default auto solver currently uses exact variable elimination; bruteforce remains available for small oracle checks.
Same influence-diagram payload, contextEvidence known before the first decision, optional solver limits, and optional solver selection auto, variableElimination, or bruteforce.
Global maximum expected utility, complete policy tables for each decision, unreachable-row diagnostics, solver name, evaluated row counts, and variable-elimination diagnostics.
Package / module
Go
solvePolicy defaults to exact variable elimination; pass bruteforce only for small oracle checks.
Analysis patterns
Sensitivity and value-of-information are repeatable analysis patterns over the runtime: copy a model, perturb CPTs, compare pquery results, then rerun influence-policy solves under candidate observations.
A discrete BBN model, a target probability, candidate CPT parameters, an influence diagram when VOI is needed, and the current evidence or intervention context.
Ranked probability deltas for sensitivity and expected value lift from observing candidate variables before choosing a policy.
Package / module
Go
Sensitivity and VOI are SDK composition patterns: copy or perturb the model, rerun probability queries, and rerun influence policy solves under candidate observations.
Download manifest
Every SDK archive includes a manifest at the zip root, and the account page provides the same manifest as a separate download for that archive.
Choose a language, platform, and SDK version from your account page, then download the archive and its matching manifest.
The manifest identifies the release, platform, package descriptor snapshots, included docs, native runtime files, and per-file SHA-256 hashes.
Package / module
Go
The account page also provides the same manifest as a separate download so you can review file names, sizes, and hashes before installing the archive.