@copilotz/chat-adapter 0.7.0 → 0.7.2
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 +6 -2
- package/dist/index.js +633 -375
- package/dist/index.js.map +1 -1
- package/package.json +3 -3
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React, { ReactNode } from 'react';
|
|
2
2
|
import { AgentOption, MediaAttachment, ChatUserContext, ChatConfig, ChatCallbacks, MemoryItem, ChatUserMenuSection, ChatMessage, ChatThread } from '@copilotz/chat-ui';
|
|
3
|
-
export { AgentOption, ChatCallbacks, ChatConfig, ChatMessage, ChatThread, ChatUserContext, CreateVoiceProvider, MediaAttachment, MemoryItem, VoiceComposerState, VoiceProvider, VoiceProviderHandlers, VoiceProviderOptions, VoiceReviewMode, VoiceSegment, VoiceTranscript, VoiceTranscriptMode } from '@copilotz/chat-ui';
|
|
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 = {
|
|
6
6
|
kind: string;
|
|
@@ -177,6 +177,10 @@ declare const CopilotzChat: React.FC<CopilotzChatProps>;
|
|
|
177
177
|
|
|
178
178
|
interface UseCopilotzOptions {
|
|
179
179
|
userId: string | null;
|
|
180
|
+
userName?: string;
|
|
181
|
+
userAvatar?: string;
|
|
182
|
+
assistantName?: string;
|
|
183
|
+
agentOptions?: AgentOption[];
|
|
180
184
|
initialContext?: ChatUserContext;
|
|
181
185
|
bootstrap?: {
|
|
182
186
|
initialMessage?: string;
|
|
@@ -196,7 +200,7 @@ interface UseCopilotzOptions {
|
|
|
196
200
|
eventInterceptor?: EventInterceptor;
|
|
197
201
|
runErrorInterceptor?: RunErrorInterceptor;
|
|
198
202
|
}
|
|
199
|
-
declare function useCopilotz({ userId, 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): {
|
|
200
204
|
messages: ChatMessage[];
|
|
201
205
|
isMessagesLoading: boolean;
|
|
202
206
|
isLoadingOlderMessages: boolean;
|