---
title: workflow/runtime
description: Runtime functions for accessing the World instance and wiring up workflow infrastructure.
docs_index: /llms.txt
lastUpdated: 2026-10-21
type: overview
summary: Explore runtime functions for resolving the World instance and configuring workflow infrastructure.
---

> For an index of all documentation, see [/llms.txt](/llms.txt).

The `workflow/runtime` package provides low-level access to the workflow runtime. Use it to resolve the [World](/docs/api-reference/workflow-runtime/world) instance that backs storage, queuing, and streaming or to wire up workflow infrastructure in custom server environments.

## Functions

#### [getWorld()](/docs/api-reference/workflow-runtime/get-world)

Async: resolve the World instance for storage, queuing, and streaming backends.

#### [World SDK](/docs/api-reference/workflow-runtime/world)

Low-level API for inspecting runs, steps, events, hooks, streams, and queues, plus metadata-only analytics with attribute search.

## Infrastructure functions

These functions are primarily used by framework adapters and custom world setups, and are rarely needed in application code:

#### [createWorld()](/docs/api-reference/workflow-runtime/create-world)

Create a World instance from environment configuration.

#### [setWorld()](/docs/api-reference/workflow-runtime/set-world)

Override the cached World instance with a custom World.

#### [getWorldHandlers()](/docs/api-reference/workflow-runtime/get-world-handlers)

Build-time-safe access to the World's queue handlers.

#### [workflowEntrypoint()](/docs/api-reference/workflow-runtime/workflow-entrypoint)

Create the HTTP route handler that executes workflow runs.

#### [healthCheck()](/docs/api-reference/workflow-runtime/health-check)

Check the health of a deployment's workflow infrastructure.

---

For a semantic overview of all documentation, see [/sitemap.md](/sitemap.md)

For an index of all available documentation, see [/llms.txt](/llms.txt)

For agent-facing discovery, including API and MCP surfaces, see [/agents.md](/agents.md)