dgi.active-turn.find ​
Atomic adapter for dgi.active-turn.find; required by parent workflow specs: dgi.session.restore-active-turn.
Overview ​
| Property | Value |
|---|---|
| Workflow type | Atomic |
| Library | App-dgi |
| Version | 1.0 |
Input Schema ​
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
workflow_run_id | string | No | — | DAG-stamped parent run id. |
organization_uuid | uuid | Yes | — | Organization UUID for tenant isolation. |
actor | string | No | — | User or service actor initiating the workflow. |
dry_run | boolean | No | — | Validate and plan without mutating external resources. |
session_uuid | uuid | Yes | — | DGI session UUID. |
conversation_uuid | uuid | No | — | Conversation UUID. |
last_seen_event_id | string | No | — | Last event cursor seen by client. |
include_reasoning | boolean | No | — | Include reasoning trace/history. |
dependency_context | json | No | — | Prior DAG step output used by this adapter. |
Output Schema ​
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
status | string | No | — | Adapter terminal status. |
summary | json | No | — | Adapter output summary. |
resource_refs | json | No | — | Provider/app resource references produced by adapter. |
warnings | list | No | — | Non-fatal adapter warnings. |
failure_reason | string | No | — | Adapter failure reason. |
failed_step | json | No | — | Failed step. |
failed_layer | json | No | — | Failed layer. |
failed_at_state | string | No | — | Failed at state. |
error | string | No | — | Error message. |
error_type | string | No | — | Error class. |
failed_at | string | No | — | Failure timestamp. |
States ​
| State | Initial | Terminal | Success | Auto-advance | Description |
|---|---|---|---|---|---|
PENDING | Yes | No | — | execute | — |
COMPLETED | No | Yes | Yes | — | — |
FAILED | No | Yes | No | — | — |
State Diagram ​
Transitions ​
| From | Action | To | Description |
|---|---|---|---|
PENDING | execute | COMPLETED | — |
* (any state) | fail | FAILED | — |
API Usage ​
bash
POST /api/workflows/start
Content-Type: application/json
{
"workflow_type": "dgi.active-turn.find",
"initial_data": {
"organization_uuid": "value",
"session_uuid": "value"
}
}