Skip to content
Proud to collaborate with Microsoft for Startups

dgi.synapse.decompose ​

Break goal into atomic operations with dependencies

Break a user's goal into atomic operations with dependency relationships.

The second synapse in the DGI reasoning chain. Takes the understanding from synapse.understand and decomposes it into individual operations.

Inputs:

  • understanding: Output from dgi.synapse.understand (required)
  • available_workflows: List of workflow descriptors from the catalog (required)

Outputs (terminal state_data):

  • operations: list of operation dicts with id, action, service, depends_on, etc.
  • parameter_flow: dict mapping downstream params to upstream outputs
  • reasoning: str explaining the decomposition
  • input_tokens: int
  • output_tokens: int

Plugin required: context.get_plugin("ai")

Overview ​

PropertyValue
Workflow typeAtomic
LibraryApp-dgi
Version1.0

Input Schema ​

FieldTypeRequiredDefaultDescription
connection_uuiduuidNo—Explicit AI CloudConnection UUID — threaded to ai.chat.complete so synapse uses the org's resolved connection (org-context-free)
modelstringNo—Optional model override threaded to ai.chat.complete
understandingjsonYes—Output from dgi.synapse.understand
available_workflowsjsonYes—List of workflow descriptors from catalog

Output Schema ​

FieldTypeRequiredDefaultDescription
input_tokensintegerNo——
operationslistNo——
output_tokensintegerNo——
parameter_flowdictNo——
reasoningstringNo——
available_workflowsjsonNo——
connection_uuiduuidNo——
modelstringNo——
understandingjsonNo——
failure_reasonstringNo——
failure_typestringNo——
failed_actionstringNo——
failed_at_statestringNo——
failed_stepstringNo——
failed_layerstringNo——
errorstringNo——
error_typestringNo——

States ​

StateInitialTerminalSuccessAuto-advanceDescription
pendingYesNo—execute—
completedNoYesYes——
failedNoYesNo——

State Diagram ​

Transitions ​

FromActionToDescription
pendingexecutecompleted—
* (any state)failfailed—

API Usage ​

bash
POST /api/workflows/start
Content-Type: application/json

{
  "workflow_type": "dgi.synapse.decompose",
  "initial_data": {
    "understanding": "value",
    "available_workflows": "value"
  }
}