Data Display

ChatSubSession

Renders a reduced nested conversation transcript inside a parent chat turn.

import { ChatSubSession } from '@lostgradient/chat/sub-session';
chattranscript
01

Overview

Render a reduced, bounded child-session transcript inline without adding another composer or full Chat layout.

Usage

svelte
<script lang="ts">
  import ChatSubSession from '@lostgradient/chat/sub-session';
</script>

<ChatSubSession conversation={childConversation} live={childSessionRunning} />
Live preview
You

Inspect the deployment logs.

Assistant

The deployment completed without errors.

02

When to use

Use when
  • A tool or delegated session needs to expose its child transcript inline.
Avoid when
  • The child conversation should be a separate full-size Chat surface.
03

Examples

Nested session transcript

A reduced child conversation rendered inside its parent workflow.

04

Props

Props for chat-sub-session
Name
Type
Default
Description
conversation required ConversationHistory
live boolean false Keeps the child transcript visually active while its owner is running.
label text 'Nested session transcript' Optional label for the nested transcript landmark.
row snippet Render a custom row while retaining the child transcript shell.