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

推荐订阅源

H
Help Net Security
大猫的无限游戏
大猫的无限游戏
雷峰网
雷峰网
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
博客园 - 聂微东
V
Visual Studio Blog
爱范儿
爱范儿
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
美团技术团队
有赞技术团队
有赞技术团队
云风的 BLOG
云风的 BLOG
Google DeepMind News
Google DeepMind News
Blog — PlanetScale
Blog — PlanetScale
The Cloudflare Blog
Engineering at Meta
Engineering at Meta
博客园 - 三生石上(FineUI控件)
WordPress大学
WordPress大学
Vercel News
Vercel News
F
Fortinet All Blogs
Last Week in AI
Last Week in AI
M
MIT News - Artificial intelligence
小众软件
小众软件
月光博客
月光博客
A
About on SuperTechFans

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
hydrateData
2026-06-12 · via Workflow SDK Documentation

Hydrate a single serialized value from workflow storage into a plain JavaScript value.

Hydrates (deserializes) a single value that was stored by the workflow runtime. This is the lower-level building block behind hydrateResourceIO() — use it when you have a raw serialized value rather than a whole resource, such as a single field from an event payload.

import { hydrateData, observabilityRevivers } from "workflow/observability"; 
declare const serialized: unknown; // @setup

const value = hydrateData(serialized, observabilityRevivers); 

Parameters

ParameterTypeDescription
valueunknownThe serialized value from workflow storage
reviversReviversReviver functions for deserialization. Use observabilityRevivers for standard use.

Returns

The hydrated plain JavaScript value. The input is handled by shape:

  • Format-prefixed binary data (Uint8Array) is decoded and parsed from the devalue format
  • Encrypted data is returned as-is (a raw Uint8Array) — see Encrypted Data
  • Already-plain values (numbers, strings, null) are returned unchanged