@apteva/apteva-kit 0.1.15 → 0.1.17
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.mts +3 -1
- package/dist/index.d.ts +3 -1
- package/dist/index.js +229 -228
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +164 -163
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -195,6 +195,7 @@ interface ChatProps {
|
|
|
195
195
|
onFileUpload?: (files: FileList) => void;
|
|
196
196
|
onComplete?: (result: CommandResult) => void;
|
|
197
197
|
onError?: (error: Error) => void;
|
|
198
|
+
onToolResult?: (toolName: string, result?: any) => void;
|
|
198
199
|
theme?: 'light' | 'dark' | 'auto';
|
|
199
200
|
placeholder?: string;
|
|
200
201
|
showHeader?: boolean;
|
|
@@ -223,6 +224,7 @@ interface CommandProps {
|
|
|
223
224
|
onError?: (error: Error) => void;
|
|
224
225
|
onFileUpload?: (files: FileList) => void;
|
|
225
226
|
onAction?: (action: ActionEvent) => void;
|
|
227
|
+
onToolResult?: (toolName: string, result?: any) => void;
|
|
226
228
|
loadingText?: string;
|
|
227
229
|
showProgress?: boolean;
|
|
228
230
|
enableStreaming?: boolean;
|
|
@@ -304,7 +306,7 @@ interface UseAptevaKitReturn {
|
|
|
304
306
|
error: Error | null;
|
|
305
307
|
}
|
|
306
308
|
|
|
307
|
-
declare function Chat({ agentId, threadId, initialMessages, context, apiUrl, apiKey, useMock, initialMode, showModeToggle, onModeChange, commandVariant, planMode, onPlanModeChange, enableStreaming, showProgress, loadingText, welcomeTitle, welcomeSubtitle, welcomeIcon, suggestedPrompts, welcomeVariant, onThreadChange, onMessageSent, onAction, onFileUpload, onComplete, onError, placeholder, showHeader, headerTitle, className, }: ChatProps): react_jsx_runtime.JSX.Element;
|
|
309
|
+
declare function Chat({ agentId, threadId, initialMessages, context, apiUrl, apiKey, useMock, initialMode, showModeToggle, onModeChange, commandVariant, planMode, onPlanModeChange, enableStreaming, showProgress, loadingText, welcomeTitle, welcomeSubtitle, welcomeIcon, suggestedPrompts, welcomeVariant, onThreadChange, onMessageSent, onAction, onFileUpload, onComplete, onError, onToolResult, placeholder, showHeader, headerTitle, className, }: ChatProps): react_jsx_runtime.JSX.Element;
|
|
308
310
|
|
|
309
311
|
declare function Command({ agentId, command: initialCommand, context, autoExecute, allowInput, placeholder, submitButtonText, variant, useMock, planMode, onPlanModeChange, enableFileUpload, onStart, onProgress, onChunk, onComplete, onError, onFileUpload, onAction, loadingText, showProgress, enableStreaming, resultRenderer, className, }: CommandProps): react_jsx_runtime.JSX.Element;
|
|
310
312
|
|
package/dist/index.d.ts
CHANGED
|
@@ -195,6 +195,7 @@ interface ChatProps {
|
|
|
195
195
|
onFileUpload?: (files: FileList) => void;
|
|
196
196
|
onComplete?: (result: CommandResult) => void;
|
|
197
197
|
onError?: (error: Error) => void;
|
|
198
|
+
onToolResult?: (toolName: string, result?: any) => void;
|
|
198
199
|
theme?: 'light' | 'dark' | 'auto';
|
|
199
200
|
placeholder?: string;
|
|
200
201
|
showHeader?: boolean;
|
|
@@ -223,6 +224,7 @@ interface CommandProps {
|
|
|
223
224
|
onError?: (error: Error) => void;
|
|
224
225
|
onFileUpload?: (files: FileList) => void;
|
|
225
226
|
onAction?: (action: ActionEvent) => void;
|
|
227
|
+
onToolResult?: (toolName: string, result?: any) => void;
|
|
226
228
|
loadingText?: string;
|
|
227
229
|
showProgress?: boolean;
|
|
228
230
|
enableStreaming?: boolean;
|
|
@@ -304,7 +306,7 @@ interface UseAptevaKitReturn {
|
|
|
304
306
|
error: Error | null;
|
|
305
307
|
}
|
|
306
308
|
|
|
307
|
-
declare function Chat({ agentId, threadId, initialMessages, context, apiUrl, apiKey, useMock, initialMode, showModeToggle, onModeChange, commandVariant, planMode, onPlanModeChange, enableStreaming, showProgress, loadingText, welcomeTitle, welcomeSubtitle, welcomeIcon, suggestedPrompts, welcomeVariant, onThreadChange, onMessageSent, onAction, onFileUpload, onComplete, onError, placeholder, showHeader, headerTitle, className, }: ChatProps): react_jsx_runtime.JSX.Element;
|
|
309
|
+
declare function Chat({ agentId, threadId, initialMessages, context, apiUrl, apiKey, useMock, initialMode, showModeToggle, onModeChange, commandVariant, planMode, onPlanModeChange, enableStreaming, showProgress, loadingText, welcomeTitle, welcomeSubtitle, welcomeIcon, suggestedPrompts, welcomeVariant, onThreadChange, onMessageSent, onAction, onFileUpload, onComplete, onError, onToolResult, placeholder, showHeader, headerTitle, className, }: ChatProps): react_jsx_runtime.JSX.Element;
|
|
308
310
|
|
|
309
311
|
declare function Command({ agentId, command: initialCommand, context, autoExecute, allowInput, placeholder, submitButtonText, variant, useMock, planMode, onPlanModeChange, enableFileUpload, onStart, onProgress, onChunk, onComplete, onError, onFileUpload, onAction, loadingText, showProgress, enableStreaming, resultRenderer, className, }: CommandProps): react_jsx_runtime.JSX.Element;
|
|
310
312
|
|