Skip to content
Proud to collaborate with Microsoft for Startups

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 ​

PropertyValue
Workflow typeLinear
LibraryApp-dgi
Version1.0

Input Schema ​

FieldTypeRequiredDefaultDescription
messagestringYes—Original user message
final_answerstringYes—Final answer
dag_structuresjsonNo—DAG structures
confidencejsonNo—Confidence scores
conversation_lockjsonNo—Updated conversation lock
skills_appliedjsonNo—Skills applied
working_setjsonNo—Conversation Working Set (ADR 0001) — carried through for the caller to persist
workflow_run_idstringNo—Engine-stamped DAG step run id

Output Schema ​

FieldTypeRequiredDefaultDescription
messagestringNo——
final_answerstringNo——
dag_structuresjsonNo——
confidencejsonNo——
conversation_lockjsonNo——
skills_appliedjsonNo——
working_setjsonNo——
workflow_run_idstringNo——
responsejsonNo——
failure_reasonstringNo——
failure_typestringNo——
failed_actionstringNo——
failed_at_statestringNo——
failed_stepstringNo——
failed_layerstringNo——
errorstringNo——
error_typestringNo——

States ​

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

State Diagram ​

Transitions ​

FromActionToDescription
pendingexecuteexecuting—
executingcompletecompleted—
* (any state)failfailed—

API Usage ​

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

{
  "workflow_type": "dgi.thought-processing-finalize",
  "initial_data": {
    "message": "value",
    "final_answer": "value"
  }
}