Chat · Components
AgentChat
Full agent conversation interfacePublic 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 datamessagesChatMessageData[]YesMessages in this conversationcurrentProfileIdstringYesCurrent user's profile IDloadingbooleanNoWhether the AI is currently processingonsend(content: string) => voidYesSend a message to the agentonapplychange(content: string) => voidNoApply suggested markdown edit to hostonclose() => voidNoClose the agent chatBindable state
This component has no bindable public state.
Callback events
onsend(content: string) => voidonapplychange(content: string) => voidonclose() => void