Member Junction
    Preparing search index...

    Output of Workflow.Draft.

    interface WorkflowDraftOutput {
        errorMessage?: string;
        graph?: {
            continuation?: "message" | "none" | "reinvoke";
            durable?: boolean;
            failureSemantics?: "block" | "edges";
            reasoning?: string;
            tasks: {
                configuration:
                    | {
                        agentName: string;
                        message?: string;
                        templateParameters?: Record<string, string>;
                    }
                    | { actionName: string; inputMapping?: string; outputMapping?: string }
                    | { assignToUserID?: string; instructions?: string }
                    | { promptName: string; templateParameters?: Record<string, string> }
                    | {
                        collectionPath: string;
                        executionMode?: "sequential" | "parallel";
                        itemVariable?: string;
                        maxIterations?: number;
                    }
                    | { condition: string; itemVariable?: string; maxIterations?: number }
                    | { domain: string; ref?: string };
                dependsOn: (
                    | string
                    | {
                        condition?: string;
                        dependencyType?: "Corequisite"
                        | "Optional"
                        | "Prerequisite";
                        exclusiveGroup?: string;
                        pathPoints?: string;
                        priority?: number;
                        sequence?: number;
                        tempId: string;
                    }
                )[];
                description: string;
                inputPayload?: Record<string, unknown>;
                kind:
                    | "Agent"
                    | "Action"
                    | "Prompt"
                    | "ForEach"
                    | "While"
                    | "Human"
                    | "External";
                layout?: { height?: number; width?: number; x?: number; y?: number };
                name: string;
                policy?: {
                    onError?: "continue" | "fail";
                    retryCount?: number;
                    timeoutSeconds?: number;
                };
                tempId: string;
            }[];
            workflowName: string;
        };
        success: boolean;
    }
    Index

    Properties

    errorMessage?: string

    Why drafting failed, or why the model's output was rejected.

    graph?: {
        continuation?: "message" | "none" | "reinvoke";
        durable?: boolean;
        failureSemantics?: "block" | "edges";
        reasoning?: string;
        tasks: {
            configuration:
                | {
                    agentName: string;
                    message?: string;
                    templateParameters?: Record<string, string>;
                }
                | { actionName: string; inputMapping?: string; outputMapping?: string }
                | { assignToUserID?: string; instructions?: string }
                | { promptName: string; templateParameters?: Record<string, string> }
                | {
                    collectionPath: string;
                    executionMode?: "sequential" | "parallel";
                    itemVariable?: string;
                    maxIterations?: number;
                }
                | { condition: string; itemVariable?: string; maxIterations?: number }
                | { domain: string; ref?: string };
            dependsOn: (
                | string
                | {
                    condition?: string;
                    dependencyType?: "Corequisite"
                    | "Optional"
                    | "Prerequisite";
                    exclusiveGroup?: string;
                    pathPoints?: string;
                    priority?: number;
                    sequence?: number;
                    tempId: string;
                }
            )[];
            description: string;
            inputPayload?: Record<string, unknown>;
            kind:
                | "Agent"
                | "Action"
                | "Prompt"
                | "ForEach"
                | "While"
                | "Human"
                | "External";
            layout?: { height?: number; width?: number; x?: number; y?: number };
            name: string;
            policy?: {
                onError?: "continue" | "fail";
                retryCount?: number;
                timeoutSeconds?: number;
            };
            tempId: string;
        }[];
        workflowName: string;
    }

    The drafted graph, in the same TaskGraphSpec shape the canvas and Workflow.Save use.

    A DRAFT — nothing is persisted. The author reviews it on the canvas and commits with Workflow.Save, which is what makes "nothing is saved until you approve it" true rather than merely promised.

    Type Declaration

    • Optionalcontinuation?: "message" | "none" | "reinvoke"
    • Optionaldurable?: boolean
    • OptionalfailureSemantics?: "block" | "edges"

      'edges' (flow-compiled) evaluates a failed step's outgoing edges; 'block' (default) is terminal for dependents.

    • Optionalreasoning?: string
    • tasks: {
          configuration:
              | {
                  agentName: string;
                  message?: string;
                  templateParameters?: Record<string, string>;
              }
              | { actionName: string; inputMapping?: string; outputMapping?: string }
              | { assignToUserID?: string; instructions?: string }
              | { promptName: string; templateParameters?: Record<string, string> }
              | {
                  collectionPath: string;
                  executionMode?: "sequential" | "parallel";
                  itemVariable?: string;
                  maxIterations?: number;
              }
              | { condition: string; itemVariable?: string; maxIterations?: number }
              | { domain: string; ref?: string };
          dependsOn: (
              | string
              | {
                  condition?: string;
                  dependencyType?: "Corequisite"
                  | "Optional"
                  | "Prerequisite";
                  exclusiveGroup?: string;
                  pathPoints?: string;
                  priority?: number;
                  sequence?: number;
                  tempId: string;
              }
          )[];
          description: string;
          inputPayload?: Record<string, unknown>;
          kind:
              | "Agent"
              | "Action"
              | "Prompt"
              | "ForEach"
              | "While"
              | "Human"
              | "External";
          layout?: { height?: number; width?: number; x?: number; y?: number };
          name: string;
          policy?: {
              onError?: "continue" | "fail";
              retryCount?: number;
              timeoutSeconds?: number;
          };
          tempId: string;
      }[]
    • workflowName: string
    success: boolean

    True when a structurally valid draft came back.