Skip to Content

types

Module: vibex/types

Execution Types (Internal)

These types support the internal execution engine. They are NOT part of the user-facing API. Users work with Mission → Plan → Task.

The execution engine uses these types to:

  • Track execution state
  • Support complex execution patterns (parallel, conditional)
  • Enable pause/resume of long-running operations

Note: “steps” in AI SDK refers to multi-turn tool execution loops. Our “ExecutionNode” is different - it’s an internal graph node.

Interfaces

ExecutionContext

View source

Execution context - runtime state for an execution

Properties:

NameTypeDescription
idstring
missionIdstring
taskIdstring(optional)
variablesRecord<string, unknown>
historyunknown[]
currentNodeIdstring(optional)
statusExecutionStatus
inputunknown
outputunknown(optional)
errorunknown(optional)

ExecutionNode

View source

Base execution node (internal)

Properties:

NameTypeDescription
idstring
typeExecutionNodeType
namestring
descriptionstring(optional)
nextstring | string[](optional)
configunknown(optional)
metadataRecord<string, unknown>(optional)

AgentExecutionNode

View source

Agent execution node

Properties:

NameTypeDescription
type"agent"
configobject

ToolExecutionNode

View source

Tool execution node

Properties:

NameTypeDescription
type"tool"
config\{ toolName: string; arguments: Record<string, unknown>; \}

ConditionNode

View source

Condition node for branching

Properties:

NameTypeDescription
type"condition"
config\{ expression: string; yes: string; no: string; \}

HumanInputNode

View source

Human input node (pause for user)

Properties:

NameTypeDescription
type"human_input"
configobject

ParallelNode

View source

Parallel execution node

Properties:

NameTypeDescription
type"parallel"
config\{ branches: string[]; mode: "wait_all" | "race"; \}

ExecutionGraph

View source

Execution graph (internal representation)

Properties:

NameTypeDescription
idstring
namestring
descriptionstring(optional)
nodesExecutionNode[]
variablesRecord<string, unknown>(optional)
metadataRecord<string, unknown>(optional)

ExecutionNodeResult

View source

Result of executing a single node

Properties:

NameTypeDescription
nodeIdstring
status"completed" | "failed" | "skipped"
outputunknown(optional)
errorunknown(optional)
startTimeDate
endTimeDate
logsstring[](optional)

Types

ExecutionStatus

View source
type ExecutionStatus = | "pending" | "running" | "paused" | "completed" | "failed" | "cancelled"

ExecutionNodeType

View source

Node types in the execution graph

type ExecutionNodeType = | "start" | "end" | "agent" | "tool" | "condition" | "human_input" | "parallel"

WorkflowStatus

View source
type WorkflowStatus = ExecutionStatus

WorkflowContext

View source
type WorkflowContext = ExecutionContext

WorkflowStep

View source
type WorkflowStep = ExecutionNode

Workflow

View source
type Workflow = ExecutionGraph

ExecutionStepResult

View source
type ExecutionStepResult = ExecutionNodeResult