@jutech-devs/agent-sdk
Version:
Modern embeddable AI agent chat widget with voice support and payment integration
40 lines (36 loc) • 957 B
TypeScript
import * as react_jsx_runtime from 'react/jsx-runtime';
interface User {
id?: string;
name?: string;
email?: string;
}
interface AgentWidgetProps {
apiKey: string;
agentId: string;
baseUrl?: string;
user?: User;
theme?: "light" | "dark" | "auto";
position?: "bottom-right" | "bottom-left" | "top-right" | "top-left";
primaryColor?: string;
allowFileUpload?: boolean;
placeholder?: string;
title?: string;
subtitle?: string;
className?: string;
disableAutoConfig?: boolean;
}
interface Message {
id: string;
content: string;
role: "user" | "assistant";
timestamp: Date;
isStreaming?: boolean;
}
declare global {
interface Window {
SpeechRecognition: any;
webkitSpeechRecognition: any;
}
}
declare function AgentWidget(props: AgentWidgetProps): react_jsx_runtime.JSX.Element;
export { AgentWidget, type AgentWidgetProps, type Message, type User };