dgi.reasoning-process-synapse-step ​
Process synapse - prepare, call LLM, return output
Process synapse step for reasoning DAG workflow.
Uses services to:
- Get synapse from state
- Build memory from state
- Call LLM via LLMService
- Return output and interaction log
Overview ​
| Property | Value |
|---|---|
| Workflow type | Linear |
| Library | App-dgi |
| Version | 1.0 |
Input Schema ​
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
skip | boolean | No | — | If True, skip processing this synapse |
synapse_uuid | string | No | — | Synapse UUID to process (required if not skipping) |
synapses | json | No | — | Synapses dict (from state) |
memory | json | No | — | Memory state |
organization_uuid | string | No | — | Public org UUID; the internal int is resolved transiently for LLM config |
workflow_run_id | string | No | — | Engine-stamped DAG step run id |
Output Schema ​
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
message | string | No | — | User message to reason about |
context | json | No | — | Reasoning context (history, organization_uuid, ...) |
max_depth | integer | No | — | Maximum reasoning depth |
workflow_run_uuid | string | No | — | Engine-injected DAG run id |
workflow_run_id | string | No | — | Engine-stamped DAG step run id (E1) |
organization_uuid | string | No | — | Org UUID (public surface) |
parent_state_data | json | No | — | Parent workflow state_data |
reasoning | json | No | — | — |
queue | json | No | — | — |
synapses | json | No | — | — |
memory | json | No | — | — |
confidence | json | No | — | — |
conversation_lock | json | No | — | — |
skills | json | No | — | — |
branches | json | No | — | — |
virtual_workflow | json | No | — | — |
compiled_config | json | No | — | — |
init | json | No | — | — |
handle_output | json | No | — | — |
finalize | json | No | — | — |
llm_interaction | json | No | — | — |
synapse_uuid | string | No | — | — |
output | json | No | — | — |
skip | boolean | No | — | — |
reason | string | No | — | — |
final_answer | string | No | — | Final reasoning answer |
skills_applied | list | No | — | — |
pending_skills | list | No | — | — |
error | string | No | — | — |
error_type | string | No | — | — |
failure_reason | string | No | — | — |
failure_type | string | No | — | — |
failed_action | string | No | — | — |
compensation_trigger | string | No | — | — |
failed_step | string | No | — | — |
failed_at_state | string | No | — | — |
failed_layer | integer | No | — | — |
comp_queue | json | No | — | — |
comp_current_layer | json | No | — | — |
comp_retry_count | integer | No | — | — |
process_synapse_1 | json | No | — | — |
handle_output_1 | json | No | — | — |
process_synapse_2 | json | No | — | — |
handle_output_2 | json | No | — | — |
process_synapse_3 | json | No | — | — |
handle_output_3 | json | No | — | — |
process_synapse_4 | json | No | — | — |
handle_output_4 | json | No | — | — |
process_synapse_5 | json | No | — | — |
handle_output_5 | json | No | — | — |
process_synapse_6 | json | No | — | — |
handle_output_6 | json | No | — | — |
process_synapse_7 | json | No | — | — |
handle_output_7 | json | No | — | — |
process_synapse_8 | json | No | — | — |
handle_output_8 | json | No | — | — |
process_synapse_9 | json | No | — | — |
handle_output_9 | json | No | — | — |
process_synapse_10 | json | No | — | — |
handle_output_10 | json | No | — | — |
process_synapse_11 | json | No | — | — |
handle_output_11 | json | No | — | — |
process_synapse_12 | json | No | — | — |
handle_output_12 | json | No | — | — |
States ​
| State | Initial | Terminal | Success | Auto-advance | Description |
|---|---|---|---|---|---|
pending | Yes | No | — | run | — |
run | No | No | — | complete | — |
completed | No | Yes | Yes | — | — |
failed | No | Yes | No | — | — |
State Diagram ​
Transitions ​
| From | Action | To | Description |
|---|---|---|---|
pending | run | run | — |
run | complete | completed | — |
* (any state) | fail | failed | — |
API Usage ​
bash
POST /api/workflows/start
Content-Type: application/json
{
"workflow_type": "dgi.reasoning-process-synapse-step",
"initial_data": {
"skip": true,
"synapse_uuid": "value",
"synapses": "value",
"memory": "value"
}
}