UNPKG

@voxket-ai/voxket-live

Version:

A React widget for embedding Voxket-powered audio/video/chat experiences.

40 lines (39 loc) 1.88 kB
import { ThemeType } from '../../../styles'; import { VoxketClient } from '../../../core/client'; import { DisplayType } from '../../widget'; import * as React from 'react'; interface ChatViewProps { client: VoxketClient; theme?: ThemeType; onBack?: () => void; disabled?: boolean; displayType?: DisplayType; onEndChat?: () => void; showTimer?: boolean; isTranscriptionMode?: boolean; showToolExecMessage?: boolean; showLogo?: boolean; popupTriggerLogoUrl?: string; headerLogo?: string; orgLogoWidth?: number; orgLogoHeight?: number; showOrgLogo?: boolean; /** Quick action buttons shown after the first agent message. Each has a display label and a message to send. */ quickActions?: Array<{ label: string; message: string; }>; /** Custom inline styles applied to each quick action button, allowing client-side CSS overrides. */ quickActionButtonStyle?: React.CSSProperties; /** Callback to reset/restart the chat session */ onResetChat?: () => void; /** When true, shows an Agent Assist toggle in the header. * Toggling on broadcasts AGENT_ASSIST_START to LiveKit topic 'assist.event' * and listens for suggestions on 'assist.suggestion'. */ agentAssistEnabled?: boolean; /** When true (backend returned is_human_handled=true), a camera toggle is shown * in the control bar so the user can enable/disable their camera. */ isHumanHandled?: boolean; } export declare function ChatView({ client, theme, onBack, disabled, displayType, onEndChat, showTimer, showLogo, isTranscriptionMode, showToolExecMessage, popupTriggerLogoUrl, headerLogo, orgLogoWidth, orgLogoHeight, showOrgLogo, quickActions, quickActionButtonStyle, onResetChat, agentAssistEnabled, isHumanHandled, }: ChatViewProps): import("react/jsx-runtime").JSX.Element; export {};