Chat SDK agents can stream generative UI with json-render

·2026.11.06 09:00

Key point

The feature uses a typed component catalog to convert JSON specs into native platform cards, with updates streamed at 500 ms intervals.

Details

  • Chat SDK agents can now stream generative UI using json-render, which converts a JSON spec written by the agent into a Chat SDK card.
  • The system uses a typed catalog covering tables, charts, and buttons, eliminating the need for separate tools to build and maintain each message shape.
  • streamCard posts the card once the root element has content and updates the message as new elements stream in, with edits sent at most once every 500 ms by default.
  • toCard validates every element's props against its component schema, throwing a CardSpecError for invalid specs and providing readable issues to send back to the model for correction.
  • Platform adapters degrade content that exceeds message limits, such as the Slack adapter turning a second table into a code block, though limits can be passed to reject such specs instead.

This summary was generated automatically by AI. Check the original for the author's claims and context. Copyright belongs to the original author.

Our guide explains how the AI works. Report summary errors, attribution issues, or removal requests via Contact.