@apteva/apteva-kit 0.1.9 → 0.1.10
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 +6 -2
- package/dist/index.d.ts +6 -2
- package/dist/index.js +417 -112
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +573 -268
- package/dist/index.mjs.map +1 -1
- package/package.json +2 -2
package/dist/index.d.mts
CHANGED
|
@@ -281,7 +281,7 @@ interface UseAptevaKitReturn {
|
|
|
281
281
|
error: Error | null;
|
|
282
282
|
}
|
|
283
283
|
|
|
284
|
-
declare function Chat({ agentId, threadId, initialMessages, context, onThreadChange, onMessageSent, onAction, onFileUpload, placeholder, showHeader, headerTitle, className, }: ChatProps): react_jsx_runtime.JSX.Element;
|
|
284
|
+
declare function Chat({ agentId, threadId, initialMessages, context, useMock, onThreadChange, onMessageSent, onAction, onFileUpload, placeholder, showHeader, headerTitle, className, }: ChatProps): react_jsx_runtime.JSX.Element;
|
|
285
285
|
|
|
286
286
|
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;
|
|
287
287
|
|
|
@@ -342,10 +342,14 @@ interface ChatResponse {
|
|
|
342
342
|
widgets?: any[];
|
|
343
343
|
}
|
|
344
344
|
interface StreamChunk {
|
|
345
|
-
type: 'token' | 'widget' | 'complete';
|
|
345
|
+
type: 'start' | 'thread_id' | 'content' | 'token' | 'tool_call' | 'tool_input_delta' | 'tool_use' | 'tool_result' | 'stop' | 'widget' | 'complete' | 'done' | 'error';
|
|
346
346
|
content?: string;
|
|
347
347
|
widget?: any;
|
|
348
348
|
thread_id?: string;
|
|
349
|
+
tool_id?: string;
|
|
350
|
+
tool_name?: string;
|
|
351
|
+
error?: string;
|
|
352
|
+
message?: string;
|
|
349
353
|
}
|
|
350
354
|
declare class AptevaClient {
|
|
351
355
|
private config;
|
package/dist/index.d.ts
CHANGED
|
@@ -281,7 +281,7 @@ interface UseAptevaKitReturn {
|
|
|
281
281
|
error: Error | null;
|
|
282
282
|
}
|
|
283
283
|
|
|
284
|
-
declare function Chat({ agentId, threadId, initialMessages, context, onThreadChange, onMessageSent, onAction, onFileUpload, placeholder, showHeader, headerTitle, className, }: ChatProps): react_jsx_runtime.JSX.Element;
|
|
284
|
+
declare function Chat({ agentId, threadId, initialMessages, context, useMock, onThreadChange, onMessageSent, onAction, onFileUpload, placeholder, showHeader, headerTitle, className, }: ChatProps): react_jsx_runtime.JSX.Element;
|
|
285
285
|
|
|
286
286
|
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;
|
|
287
287
|
|
|
@@ -342,10 +342,14 @@ interface ChatResponse {
|
|
|
342
342
|
widgets?: any[];
|
|
343
343
|
}
|
|
344
344
|
interface StreamChunk {
|
|
345
|
-
type: 'token' | 'widget' | 'complete';
|
|
345
|
+
type: 'start' | 'thread_id' | 'content' | 'token' | 'tool_call' | 'tool_input_delta' | 'tool_use' | 'tool_result' | 'stop' | 'widget' | 'complete' | 'done' | 'error';
|
|
346
346
|
content?: string;
|
|
347
347
|
widget?: any;
|
|
348
348
|
thread_id?: string;
|
|
349
|
+
tool_id?: string;
|
|
350
|
+
tool_name?: string;
|
|
351
|
+
error?: string;
|
|
352
|
+
message?: string;
|
|
349
353
|
}
|
|
350
354
|
declare class AptevaClient {
|
|
351
355
|
private config;
|