Agent Observability
UI componentsComponents

Turn Transcript

Two-column conversation transcript with per-turn metadata. Agent and user messages are paired; each pair links back to the corresponding timeline segment.

Preview

Loading turn transcript preview…

Installation

pnpm dlx agent-observability-ui@latest add turn-transcript
npx agent-observability-ui@latest add turn-transcript
yarn dlx agent-observability-ui@latest add turn-transcript
bunx --bun agent-observability-ui@latest add turn-transcript

Usage

import { TurnTranscriptSection } from '@/components/turn-transcript'

// Default — chat-paired, context-driven
<TurnTranscriptSection />

// Embedded under a parent card, left-aligned log view
<TurnTranscriptSection embedded alignment="left" />

Props

PropTypeDefaultDescription
chatHistoryChatItem[] | nullOverride the raw chat history resolved from provider context. Falls back to structured turn data from metrics when omitted.
metricsSessionMetrics | nullOverride the per-turn metrics resolved from provider context.
highlightedTurnnumber | nullScrolls the matching turn into view when set. The provider updates this when users click turn chips in the timeline.
embeddedbooleanfalseStrips the outer card/header when embedding the transcript under another container (e.g. inside the session detail Session tab).
alignment'chat' | 'left''chat'"chat" pairs user/agent messages across the column; "left" stacks both sides on the left for a log-style view.

On this page