dgi.thought-processing-finalize ​
Finalize thought processing - generate final answer and update lock
Finalize step for thought processing DAG.
Generates final answer and updates conversation lock if workflow created resource.
Overview ​
| Property | Value |
|---|---|
| Workflow type | Linear |
| Library | App-dgi |
| Version | 1.0 |
Input Schema ​
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
message | string | Yes | — | Original user message |
final_answer | string | Yes | — | Final answer |
dag_structures | json | No | — | DAG structures |
confidence | json | No | — | Confidence scores |
conversation_lock | json | No | — | Updated conversation lock |
skills_applied | json | No | — | Skills applied |
working_set | json | No | — | Conversation Working Set (ADR 0001) — carried through for the caller to persist |
workflow_run_id | string | No | — | Engine-stamped DAG step run id |
Output Schema ​
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
message | string | No | — | — |
final_answer | string | No | — | — |
dag_structures | json | No | — | — |
confidence | json | No | — | — |
conversation_lock | json | No | — | — |
skills_applied | json | No | — | — |
working_set | json | No | — | — |
workflow_run_id | string | No | — | — |
response | json | No | — | — |
failure_reason | string | No | — | — |
failure_type | string | No | — | — |
failed_action | string | No | — | — |
failed_at_state | string | No | — | — |
failed_step | string | No | — | — |
failed_layer | string | No | — | — |
error | string | No | — | — |
error_type | string | No | — | — |
States ​
| State | Initial | Terminal | Success | Auto-advance | Description |
|---|---|---|---|---|---|
pending | Yes | No | — | execute | — |
executing | No | No | — | complete | — |
completed | No | Yes | Yes | — | — |
failed | No | Yes | No | — | — |
State Diagram ​
Transitions ​
| From | Action | To | Description |
|---|---|---|---|
pending | execute | executing | — |
executing | complete | completed | — |
* (any state) | fail | failed | — |
API Usage ​
bash
POST /api/workflows/start
Content-Type: application/json
{
"workflow_type": "dgi.thought-processing-finalize",
"initial_data": {
"message": "value",
"final_answer": "value"
}
}