smrt
Open the smrt source on GitHub Switch to dark color scheme
← All UI components

Chat · Components

AgentChat

Full agent conversation interface. Shows agent info header, message list with tool call displays, and input bar. Agent messages are styled differently from user messages.

Public export

typescript
import { AgentChat } from '@happyvertical/smrt-chat/svelte';
Import path
@happyvertical/smrt-chat/svelte
Props
7
Props described
7 of 7
Bindable state
0
Callback events
3
Verified release
0.62.10

Props

NameTypeRequiredDescription
sessionAgentSessionDataYesAgent session data
messagesChatMessageData[]YesMessages in this conversation
currentProfileIdstringYesCurrent user's profile ID
loadingbooleanNoWhether the AI is currently processing
onsend(content: string) => voidYesSend a message to the agent
onapplychange(content: string) => voidNoApply suggested markdown edit to host
onclose() => voidNoClose the agent chat

Bindable state

This component has no bindable public state.

Callback events

  • onsend(content: string) => void
  • onapplychange(content: string) => void
  • onclose() => void

Examples and explanation