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

Chat · Components

AgentSessionPanel

Session management sidebar. Lists past agent sessions with status, message count, and allowed tools. Allows selecting an existing session or creating a new one.

Public export

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

Props

NameTypeRequiredDescription
sessionsAgentSessionData[]YesAvailable sessions
currentSessionIdstringNoCurrently active session ID
onselectsession(sessionId: string) => voidYesSelect a session
onnewsession() => voidNoCreate a new session

Bindable state

This component has no bindable public state.

Callback events

  • onselectsession(sessionId: string) => void
  • onnewsession() => void

Examples and explanation