workflow/runtime
Runtime functions for accessing the World instance and wiring up workflow infrastructure.
API reference for runtime functions from the workflow/runtime package.
The runtime package provides low-level access to the workflow runtime — resolving the World instance that backs storage, queuing, and streaming, and wiring up workflow infrastructure in custom server environments.
Functions
getWorld()
Async: resolve the World instance for storage, queuing, and streaming backends.
World SDK
Low-level API for inspecting runs, steps, events, hooks, streams, and queues.
Infrastructure Functions
These functions are primarily used by framework adapters and custom world setups, and are rarely needed in application code:
createWorld()
Create a World instance from environment configuration.
setWorld()
Override the cached World instance with a custom World.
getWorldHandlers()
Build-time-safe access to the World's queue handlers.
workflowEntrypoint()
Create the HTTP route handler that executes workflow runs.
stepEntrypoint
The HTTP route handler that executes step functions.
healthCheck()
Check the health of a deployment's workflow infrastructure.