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 sourceMethods:
registerWorkflow
View sourceRegister an execution graph (workflow definition)
function registerWorkflow(graph: ExecutionGraph | Workflow): voidParameters:
| Name | Type | Description |
|---|---|---|
graph | ExecutionGraph | Workflow |
startWorkflow
View sourceStart workflow execution
function startWorkflow(graphId: string, input: Record<string, unknown> = {}): Promise<string>Parameters:
| Name | Type | Description |
|---|---|---|
graphId | string | |
input | Record<string, unknown> | (default: {}) |
resumeWorkflow
View sourceResume a paused execution (e.g. after human input)
function resumeWorkflow(contextId: string, input: Record<string, unknown>): Promise<void>Parameters:
| Name | Type | Description |
|---|---|---|
contextId | string | |
input | Record<string, unknown> |
getStatus
View sourceGet current execution status
function getStatus(contextId: string): ExecutionStatus | undefinedParameters:
| Name | Type | Description |
|---|---|---|
contextId | string |
getContext
View sourceGet execution context
function getContext(contextId: string): ExecutionContext | undefinedParameters:
| Name | Type | Description |
|---|---|---|
contextId | string |
cancelExecution
View sourceCancel an execution
function cancelExecution(contextId: string): voidParameters:
| Name | Type | Description |
|---|---|---|
contextId | string |
registerGraph
View sourcefunction registerGraph(graph: ExecutionGraph): voidParameters:
| Name | Type | Description |
|---|---|---|
graph | ExecutionGraph |
startGraph
View sourcefunction startGraph(graphId: string, input: Record<string, unknown> = {}): Promise<string>Parameters:
| Name | Type | Description |
|---|---|---|
graphId | string | |
input | Record<string, unknown> | (default: {}) |