s-m-r-t
Open the s-m-r-t source on GitHub Switch to dark color scheme
← All UI components

Chat · Components

AgentChat

Full agent conversation interface

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.44.0

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