Streaming Zod: How Tambo Actually Works

Looks like they've hacked Zod to do validation on partial/streaming data. Very clever. by Colin Hacks (@colinhacks), creator of Zod. Colin tweeted about Tambo , a React toolkit for generative UIs that streams structured data from LLMs into React components. He claims they found a way to use Zod for validating partial, streaming data. My first thought was: how does that work? Streaming schema…