@apteva/apteva-kit 0.1.9 → 0.1.11

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 CHANGED
@@ -167,6 +167,8 @@ interface ChatProps {
167
167
  threadId?: string | null;
168
168
  initialMessages?: Message[];
169
169
  context?: string;
170
+ apiUrl?: string;
171
+ apiKey?: string;
170
172
  useMock?: boolean;
171
173
  onThreadChange?: (threadId: string) => void;
172
174
  onMessageSent?: (message: Message) => void;
@@ -281,7 +283,7 @@ interface UseAptevaKitReturn {
281
283
  error: Error | null;
282
284
  }
283
285
 
284
- declare function Chat({ agentId, threadId, initialMessages, context, onThreadChange, onMessageSent, onAction, onFileUpload, placeholder, showHeader, headerTitle, className, }: ChatProps): react_jsx_runtime.JSX.Element;
286
+ declare function Chat({ agentId, threadId, initialMessages, context, apiUrl, apiKey, useMock, onThreadChange, onMessageSent, onAction, onFileUpload, placeholder, showHeader, headerTitle, className, }: ChatProps): react_jsx_runtime.JSX.Element;
285
287
 
286
288
  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
289
 
@@ -342,10 +344,14 @@ interface ChatResponse {
342
344
  widgets?: any[];
343
345
  }
344
346
  interface StreamChunk {
345
- type: 'token' | 'widget' | 'complete';
347
+ type: 'start' | 'thread_id' | 'content' | 'token' | 'tool_call' | 'tool_input_delta' | 'tool_use' | 'tool_result' | 'stop' | 'widget' | 'complete' | 'done' | 'error';
346
348
  content?: string;
347
349
  widget?: any;
348
350
  thread_id?: string;
351
+ tool_id?: string;
352
+ tool_name?: string;
353
+ error?: string;
354
+ message?: string;
349
355
  }
350
356
  declare class AptevaClient {
351
357
  private config;
package/dist/index.d.ts CHANGED
@@ -167,6 +167,8 @@ interface ChatProps {
167
167
  threadId?: string | null;
168
168
  initialMessages?: Message[];
169
169
  context?: string;
170
+ apiUrl?: string;
171
+ apiKey?: string;
170
172
  useMock?: boolean;
171
173
  onThreadChange?: (threadId: string) => void;
172
174
  onMessageSent?: (message: Message) => void;
@@ -281,7 +283,7 @@ interface UseAptevaKitReturn {
281
283
  error: Error | null;
282
284
  }
283
285
 
284
- declare function Chat({ agentId, threadId, initialMessages, context, onThreadChange, onMessageSent, onAction, onFileUpload, placeholder, showHeader, headerTitle, className, }: ChatProps): react_jsx_runtime.JSX.Element;
286
+ declare function Chat({ agentId, threadId, initialMessages, context, apiUrl, apiKey, useMock, onThreadChange, onMessageSent, onAction, onFileUpload, placeholder, showHeader, headerTitle, className, }: ChatProps): react_jsx_runtime.JSX.Element;
285
287
 
286
288
  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
289
 
@@ -342,10 +344,14 @@ interface ChatResponse {
342
344
  widgets?: any[];
343
345
  }
344
346
  interface StreamChunk {
345
- type: 'token' | 'widget' | 'complete';
347
+ type: 'start' | 'thread_id' | 'content' | 'token' | 'tool_call' | 'tool_input_delta' | 'tool_use' | 'tool_result' | 'stop' | 'widget' | 'complete' | 'done' | 'error';
346
348
  content?: string;
347
349
  widget?: any;
348
350
  thread_id?: string;
351
+ tool_id?: string;
352
+ tool_name?: string;
353
+ error?: string;
354
+ message?: string;
349
355
  }
350
356
  declare class AptevaClient {
351
357
  private config;