Skip to Content
SDKvibexEngine

engine

Module: vibex/engine

Execution Engine (Internal)

Runtime for executing complex agentic workflows. This is an internal component - users work with Mission → Plan → Task.

The engine handles:

  • Execution graph traversal
  • Parallel execution
  • Conditional branching
  • Human-in-the-loop pausing

Classes

WorkflowEngine

View source

Methods:

registerWorkflow

View source

Register an execution graph (workflow definition)

function registerWorkflow(graph: ExecutionGraph | Workflow): void

Parameters:

NameTypeDescription
graphExecutionGraph | Workflow

startWorkflow

View source

Start workflow execution

function startWorkflow(graphId: string, input: Record<string, unknown> = {}): Promise<string>

Parameters:

NameTypeDescription
graphIdstring
inputRecord<string, unknown>(default: {})

resumeWorkflow

View source

Resume a paused execution (e.g. after human input)

function resumeWorkflow(contextId: string, input: Record<string, unknown>): Promise<void>

Parameters:

NameTypeDescription
contextIdstring
inputRecord<string, unknown>

getStatus

View source

Get current execution status

function getStatus(contextId: string): ExecutionStatus | undefined

Parameters:

NameTypeDescription
contextIdstring

getContext

View source

Get execution context

function getContext(contextId: string): ExecutionContext | undefined

Parameters:

NameTypeDescription
contextIdstring

cancelExecution

View source

Cancel an execution

function cancelExecution(contextId: string): void

Parameters:

NameTypeDescription
contextIdstring

registerGraph

View source
function registerGraph(graph: ExecutionGraph): void

Parameters:

NameTypeDescription
graphExecutionGraph

startGraph

View source
function startGraph(graphId: string, input: Record<string, unknown> = {}): Promise<string>

Parameters:

NameTypeDescription
graphIdstring
inputRecord<string, unknown>(default: {})