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

推荐订阅源

J
Java Code Geeks
博客园 - 司徒正美
博客园 - 【当耐特】
爱范儿
爱范儿
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
IT之家
IT之家
人人都是产品经理
人人都是产品经理
雷峰网
雷峰网
酷 壳 – CoolShell
酷 壳 – CoolShell
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
大猫的无限游戏
大猫的无限游戏
月光博客
月光博客
宝玉的分享
宝玉的分享
V
V2EX
S
SegmentFault 最新的问题
V
Visual Studio Blog
阮一峰的网络日志
阮一峰的网络日志
Martin Fowler
Martin Fowler
Jina AI
Jina AI
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
博客园_首页
L
LangChain Blog
D
Docker
腾讯CDC

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