Skip to main content

Agent Chat Transcript

A chat transcript for displaying conversational history.

Usage

Hi, how are you?

I'm good, thank you!

This is a longer message that should wrap to the next line.

Great I'm responding with an even longer message to see how it wraps.

Features

  • Display the session's chat history in a styled list
  • Renders the AgentChatIndicator when the agentState is "thinking"
  • Supports both plain text and markdown formatting
  • Automatically scrolls to the latest message
  • Handles message updates and deletions

Installation

pnpm dlx shadcn@latest add @agents-ui/agent-chat-transcript

Props

Prop nameTypeDefault
agentState?
enum
messages?
ReceivedMessage[]
[]
className?
string
ref?
Ref<HTMLDivElement>
...props?
ComponentProps<'div'>