@axiom-lattice/react-sdk 2.1.71 → 2.1.73

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
@@ -523,12 +523,14 @@ interface AgentThreadProviderProps<T extends UseChatOptions> {
523
523
  assistantId?: string;
524
524
  options?: T;
525
525
  children: ReactNode;
526
+ onToolCompleted?: (toolName: string) => void;
527
+ onStreamCompleted?: () => void;
526
528
  }
527
529
  /**
528
530
  * Provider component for AgentThreadContext
529
531
  * Manages all agent thread state and operations
530
532
  */
531
- declare function AgentThreadProvider<T extends UseChatOptions>({ threadId, assistantId, options, children, }: AgentThreadProviderProps<T>): react_jsx_runtime.JSX.Element | null;
533
+ declare function AgentThreadProvider<T extends UseChatOptions>({ threadId, assistantId, options, children, onToolCompleted, onStreamCompleted, }: AgentThreadProviderProps<T>): react_jsx_runtime.JSX.Element | null;
532
534
  /**
533
535
  * Hook to access AgentThreadContext
534
536
  * @returns Agent thread context value
package/dist/index.d.ts CHANGED
@@ -523,12 +523,14 @@ interface AgentThreadProviderProps<T extends UseChatOptions> {
523
523
  assistantId?: string;
524
524
  options?: T;
525
525
  children: ReactNode;
526
+ onToolCompleted?: (toolName: string) => void;
527
+ onStreamCompleted?: () => void;
526
528
  }
527
529
  /**
528
530
  * Provider component for AgentThreadContext
529
531
  * Manages all agent thread state and operations
530
532
  */
531
- declare function AgentThreadProvider<T extends UseChatOptions>({ threadId, assistantId, options, children, }: AgentThreadProviderProps<T>): react_jsx_runtime.JSX.Element | null;
533
+ declare function AgentThreadProvider<T extends UseChatOptions>({ threadId, assistantId, options, children, onToolCompleted, onStreamCompleted, }: AgentThreadProviderProps<T>): react_jsx_runtime.JSX.Element | null;
532
534
  /**
533
535
  * Hook to access AgentThreadContext
534
536
  * @returns Agent thread context value