@copilotz/chat-adapter 0.8.5 → 0.9.0

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.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import React, { ReactNode } from 'react';
2
- import { AgentOption, MediaAttachment, ChatUserContext, ChatConfig, ChatCallbacks, MemoryItem, ChatUserMenuSection, ChatMessage, ChatThread } from '@copilotz/chat-ui';
2
+ import { AgentOption, MediaAttachment, ChatUserContext, ChatConfig, ChatCallbacks, MemoryItem, ChatUserMenuSection, ChatMessage, ChatThread, ChatThreadTag } from '@copilotz/chat-ui';
3
3
  export { AgentOption, ChatCallbacks, ChatConfig, ChatMessage, ChatSender, ChatThread, ChatUserContext, CreateVoiceProvider, MediaAttachment, MemoryItem, VoiceComposerState, VoiceProvider, VoiceProviderHandlers, VoiceProviderOptions, VoiceReviewMode, VoiceSegment, VoiceTranscript, VoiceTranscriptMode } from '@copilotz/chat-ui';
4
4
 
5
5
  type SpecialChatState = {
@@ -146,7 +146,7 @@ interface CopilotzChatProps {
146
146
  /** Called when user clicks "View Profile" in the user menu */
147
147
  onViewProfile?: () => void;
148
148
  /** Called when user adds a memory */
149
- onAddMemory?: (content: string, category?: MemoryItem["category"]) => void;
149
+ onAddMemory?: (content: string, category?: MemoryItem['category']) => void;
150
150
  /** Called when user updates a memory */
151
151
  onUpdateMemory?: (memoryId: string, content: string) => void;
152
152
  /** Called when user deletes a memory */
@@ -200,7 +200,7 @@ interface UseCopilotzOptions {
200
200
  eventInterceptor?: EventInterceptor;
201
201
  runErrorInterceptor?: RunErrorInterceptor;
202
202
  }
203
- declare function useCopilotz({ userId, userName, userAvatar, assistantName, agentOptions, initialContext, bootstrap, defaultThreadName, onToolOutput, preferredAgentName, participants, targetAgentName, getRequestHeaders, eventInterceptor, runErrorInterceptor, }: UseCopilotzOptions): {
203
+ declare function useCopilotz({ userId, userName, userAvatar, assistantName, agentOptions, initialContext, bootstrap, defaultThreadName, onToolOutput, preferredAgentName, participants, targetAgentName, getRequestHeaders, eventInterceptor, runErrorInterceptor }: UseCopilotzOptions): {
204
204
  messages: ChatMessage[];
205
205
  isMessagesLoading: boolean;
206
206
  isLoadingOlderMessages: boolean;
@@ -216,6 +216,7 @@ declare function useCopilotz({ userId, userName, userAvatar, assistantName, agen
216
216
  selectThread: (threadId: string) => Promise<void>;
217
217
  renameThread: (threadId: string, newTitle: string) => Promise<void>;
218
218
  archiveThread: (threadId: string) => Promise<void>;
219
+ updateThreadTags: (threadId: string, tags: ChatThreadTag[]) => Promise<void>;
219
220
  deleteThread: (threadId: string) => Promise<void>;
220
221
  stopGeneration: () => void;
221
222
  fetchAndSetThreadsState: (uid: string, preferredExternalId?: string | null) => Promise<string | null | undefined>;