Member Junction
    Preparing search index...

    Input for TaskGraph.Submit.

    interface TaskGraphSubmitInput {
        conversationDetailID?: string;
        environmentID: string;
        invocation?: { context?: unknown; data?: unknown };
        reinvokeDepth?: number;
        spec: {
            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 }
                    | {
                        promptName?: string;
                        questions: Record<
                            string,
                            | { instructions: string; kind: "Likelihood"; minConfidence?: number }
                            | {
                                instructions: string;
                                kind: "Choice";
                                minConfidence?: number;
                                options: { description: string; value: string }[];
                            }
                            | {
                                instructions: string;
                                kind: "Score";
                                levels: string[];
                                minConfidence?: number;
                            },
                        >;
                        state?: 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"
                    | "Decision"
                    | "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;
        };
    }
    Index

    Properties

    conversationDetailID?: string

    Conversation this graph answers, when submitted from a conversational channel.

    environmentID: string

    Environment the tasks belong to.

    invocation?: { context?: unknown; data?: unknown }

    The invocation's runtime parameters, resolved by the flow dialect's data.* and context.* condition roots. Without it those documented conditions evaluate against nothing.

    reinvokeDepth?: number

    Continuation hops that produced this graph. Counts toward the runaway-loop reinvoke cap exactly as in-process submissions do; omit for a fresh submission.

    spec: {
        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 }
                | {
                    promptName?: string;
                    questions: Record<
                        string,
                        | { instructions: string; kind: "Likelihood"; minConfidence?: number }
                        | {
                            instructions: string;
                            kind: "Choice";
                            minConfidence?: number;
                            options: { description: string; value: string }[];
                        }
                        | {
                            instructions: string;
                            kind: "Score";
                            levels: string[];
                            minConfidence?: number;
                        },
                    >;
                    state?: 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"
                | "Decision"
                | "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 graph to submit, as a TaskGraphSpec.

    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 }
              | {
                  promptName?: string;
                  questions: Record<
                      string,
                      | { instructions: string; kind: "Likelihood"; minConfidence?: number }
                      | {
                          instructions: string;
                          kind: "Choice";
                          minConfidence?: number;
                          options: { description: string; value: string }[];
                      }
                      | {
                          instructions: string;
                          kind: "Score";
                          levels: string[];
                          minConfidence?: number;
                      },
                  >;
                  state?: 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"
              | "Decision"
              | "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