IngaDB 0.1 · Product documentation
IngaDB/AI agent integration
AI AGENT INTEGRATION

Use IngaDB from an AI agent

AI agents can run causal analyses through IngaDB's OpenAPI. The agent interprets natural language and selects an operation; IngaDB performs the probability and What-if computations. Results retain the data and revision used for the calculation.

01

How an agent runs an analysis

The agent selects the operation and inputs. IngaDB computes the same result from the same inputs.

ingadb / agent session connected
AI AGENT

If we halve the seal-leak probability, how does line-stop risk change?

  1. 01
    DISCOVERworkspace_pipeline_what_if_post
    OpenAPI
  2. 02
    CHECKinput and permission checked
    dry-run ✓
  3. 03
    COMPUTEdeterministic computation
    rev 42
CURRENT4.94%
→
AFTER CHANGE4.07%
same input→same resultrevision 42
  1. 1
    AI AGENT

    Interpret the request

    Read the natural-language goal and select an operation and its inputs.

  2. 2
    OPENAPI / INGACTL

    Validate the request

    Check the input schema and required permission, then preview the request with dry-run.

  3. 3
    INGADB ENGINE

    Compute with IngaDB

    Compute from the causal model and evidence, and record the revision with the result.

02

Available analysis operations

Agents and ingactl use the same OpenAPI contract. Input schemas and required permissions come from the connected instance's catalog.

RETRIEVE

Trace causes and evidence

Retrieve search results, causal paths, evidence, importance, and cut sets.

workspace_data_causal_path_get
ANALYZE

Compare changed conditions

Run deterministic What-if analysis without changing stored data.

workspace_pipeline_what_if_post
VERIFY

Check whether a result is still valid

Read the calculation revision and freshness, along with changes that affected the result.

workspace_data_analysis_get
03

Connect with ingactl

Generate SKILL.md or AGENTS.md for an agent from the connected instance's catalog. The guide includes available routes, input examples, and required permissions.

terminalbash
$ ingactl sync
$ ingactl skill --format agents-md --out .
  wrote ./AGENTS.md

$ ingactl api show workspace_data_causal_path_get
  permission  analysis.read  ✓

$ ingactl api call workspace_data_causal_path_get \
    --project packaging-line --dry-run