惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

D
DataBreaches.Net
IT之家
IT之家
博客园_首页
博客园 - 【当耐特】
V
V2EX
Apple Machine Learning Research
Apple Machine Learning Research
G
Google Developers Blog
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
Recent Announcements
Recent Announcements
F
Fortinet All Blogs
GbyAI
GbyAI
腾讯CDC
H
Hackread – Cybersecurity News, Data Breaches, AI and More
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
I
InfoQ
H
Help Net Security
T
Tailwind CSS Blog
B
Blog RSS Feed
Martin Fowler
Martin Fowler
人人都是产品经理
人人都是产品经理
The Cloudflare Blog
博客园 - 叶小钗
雷峰网
雷峰网
量子位

Workflow SDK Documentation

Patterns for Defining Tools Human-in-the-Loop Building Durable AI Agents Queueing User Messages Resumable Streams Sleep, Suspense, and Scheduling Streaming Updates from Tools API Reference Workflow Globals Changelog Resilient run start Cookbook Building a World Deploying Astro Express Fastify Hono Getting Started NestJS Next.js Nitro Nuxt Python SvelteKit Vite corrupted-event-log fetch-in-workflow hook-conflict Errors
getWorldHandlers
2026-06-12 · via Workflow SDK Documentation

Build-time-safe access to the World's queue handlers without binding to runtime environment variables.

Returns a restricted view of the World exposing only the members that are safe to use at build time: createQueueHandler and specVersion. Framework adapters use it while generating workflow route handlers, before the deployment's runtime environment variables exist.

Unlike getWorld(), this function does not cache a fully configured World instance — caching at build time would lock in incomplete environment configuration.

import { getWorldHandlers } from "workflow/runtime";

const handlers = await getWorldHandlers(); 
console.log(handlers.specVersion);

Parameters

This function does not accept any parameters.

Returns

Returns a WorldHandlers object (synchronously in workflow 4.x; async in 5.x), where:

import type { World } from "@workflow/world";

type WorldHandlers = Pick<World, "createQueueHandler" | "specVersion">;

This is SDK infrastructure used by framework adapters and the workflow entrypoint. Application code should use getWorld() instead.