Skip to main content
Create specialized UI components for different AI tools like image generation, video generation, and audio.
See the React Native example for a complete implementation with a dynamic tool UI registry pattern.

Architecture

Instead of displaying all tool results the same way, we render different components based on the displayType:

Image Generation UI

Video Generation UI

Audio Generation UI

Image Processing UI

For tools like background removal and upscaling:

Default Tool UI

Fallback for unknown tools:

Usage in Conversation

Key Concepts

  1. displayType: Determines which component to render
  2. parsedInput: Access tool input parameters
  3. parsedResult: Access tool output data
  4. mediaUrls: Quick access to generated media
  5. toolDefinition: Tool metadata (category, icon, etc.)