Products / Developer tools for Decision Lab

Build your workflow.
Build your application.

The Decision Lab CLI and SDK are in beta testing. We’re seeking application developers with real use cases to test the tools and help shape their development.

Discuss your use case
A terminal window and a reusable code module connected to a shared decision model.

Start with a configured review, supply the facts, and calculate the result. These examples use the same fictional shipment review: two arrangements meet its requirements, and the lowest-cost arrangement is preferred.

Beta testing

Decision Lab CLI

Start a case, check its inputs, and save the calculated result. Use the same commands in your terminal, scripts, or automated workflows.

Shell · initialize, validate, run
# Start with the app's sample shipment.
decision-lab case init \
  --app shipment.app.json \
  --output shipment.case.yaml

# Check the inputs.
decision-lab case validate \
  --app shipment.app.json \
  --case shipment.case.yaml

# Calculate and save the complete result.
decision-lab run \
  --app shipment.app.json \
  --case shipment.case.yaml \
  --output shipment.run.json

Beta testing

Decision Lab SDK

Open an app, supply a case, and request a report. Use the returned tables, checks, and schedule data in your own application.

run-shipment.mjs · Node.js
import { readFile, writeFile } from 'node:fs/promises';
import { createDecisionLab } from '@decision-lab/sdk';
import { createNodeExecutor } from '@decision-lab/sdk/node';

const executor = createNodeExecutor();
const lab = createDecisionLab({ executor });

try {
  const app = lab.apps.open(
    await readFile('shipment.app.json', 'utf8')
  );
  const inputs = lab.sources.parseCase(
    await readFile('shipment.case.yaml', 'utf8')
  );

  const { report } = await lab.run({ app, case: inputs });

  await writeFile(
    'shipment.report.json',
    lab.sources.renderJSON(report)
  );
} finally {
  await executor.close();
}

Developer beta

Bring a real use case.
Help shape the tools.

We’re looking for application developers building something people will use. Tell us about your application, the decisions it needs to support, and how the CLI or SDK could fit into your workflow.

We’ll follow up to discuss your use case and whether beta testing is a good fit.

Your developer beta inquiry