@dataclouder/ngx-agent-cards 0.1.6 → 0.1.7
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/fesm2022/dataclouder-ngx-agent-cards.mjs +57 -37
- package/fesm2022/dataclouder-ngx-agent-cards.mjs.map +1 -1
- package/lib/components/chat-container/chat-container.component.d.ts +1 -0
- package/lib/components/chat-container/chat-footer/chat-footer.component.d.ts +5 -0
- package/lib/components/dc-agent-card-lists/dc-agent-card-lists.component.d.ts +1 -2
- package/lib/components/dc-agent-form/dc-agent-card-form.component.d.ts +0 -1
- package/lib/models/agent.models.d.ts +1 -1
- package/package.json +1 -1
|
@@ -8,6 +8,7 @@ export declare class DCChatComponent implements OnInit, OnDestroy {
|
|
|
8
8
|
private conversationService;
|
|
9
9
|
private evaluationService;
|
|
10
10
|
private userDataExchange;
|
|
11
|
+
private chatFooterComponent;
|
|
11
12
|
chatUserSettings: ChatUserSettings;
|
|
12
13
|
conversationSettings: IConversationSettings;
|
|
13
14
|
agentCard: IAgentCard;
|
|
@@ -6,6 +6,7 @@ export declare class ChatFooterComponent {
|
|
|
6
6
|
private conversationService;
|
|
7
7
|
private evaluationService;
|
|
8
8
|
private agentCardService;
|
|
9
|
+
private micComponent;
|
|
9
10
|
readonly isAIThinking: import("@angular/core").InputSignal<boolean>;
|
|
10
11
|
readonly taskOnUserMessage: import("@angular/core").InputSignal<SimpleAgentTask>;
|
|
11
12
|
readonly taskOnAssistantMessage: import("@angular/core").InputSignal<SimpleAgentTask>;
|
|
@@ -56,6 +57,10 @@ export declare class ChatFooterComponent {
|
|
|
56
57
|
}): void;
|
|
57
58
|
onMicFinished(eventBlob: Blob | any): Promise<void>;
|
|
58
59
|
setScore(score: number): void;
|
|
60
|
+
/**
|
|
61
|
+
* Stops the microphone recording if the component is available.
|
|
62
|
+
*/
|
|
63
|
+
stopMic(): void;
|
|
59
64
|
static ɵfac: i0.ɵɵFactoryDeclaration<ChatFooterComponent, never>;
|
|
60
65
|
static ɵcmp: i0.ɵɵComponentDeclaration<ChatFooterComponent, "dc-chat-footer", never, { "isAIThinking": { "alias": "isAIThinking"; "required": false; "isSignal": true; }; "taskOnUserMessage": { "alias": "taskOnUserMessage"; "required": false; "isSignal": true; }; "taskOnAssistantMessage": { "alias": "taskOnAssistantMessage"; "required": false; "isSignal": true; }; "micSettings": { "alias": "micSettings"; "required": false; "isSignal": true; }; }, { "sendMessage": "sendMessage"; "textInputChanged": "textInputChanged"; }, never, never, true, never>;
|
|
61
66
|
}
|
|
@@ -20,8 +20,7 @@ export declare class AgentCardListComponent extends PaginationBase implements On
|
|
|
20
20
|
agentCards: IAgentCard[];
|
|
21
21
|
private cardEventSubs;
|
|
22
22
|
cardComponent: Type<DCConversationCardUIComponent>;
|
|
23
|
-
|
|
24
|
-
constructor(...args: unknown[]);
|
|
23
|
+
constructor();
|
|
25
24
|
ngOnInit(): void;
|
|
26
25
|
subscribeDinamicInstantToEvents(): void;
|
|
27
26
|
private subscribeToCardEvents;
|
|
@@ -116,7 +116,6 @@ export declare class DCAgentCardFormComponent implements OnInit {
|
|
|
116
116
|
importConversation(): void;
|
|
117
117
|
isGenerating: boolean;
|
|
118
118
|
generateCharacter(): Promise<void>;
|
|
119
|
-
private extractJsonFromResponse;
|
|
120
119
|
removeSticker(sticker: any): Promise<void>;
|
|
121
120
|
static ɵfac: i0.ɵɵFactoryDeclaration<DCAgentCardFormComponent, never>;
|
|
122
121
|
static ɵcmp: i0.ɵɵComponentDeclaration<DCAgentCardFormComponent, "dc-agent-form", never, { "storageSettings": { "alias": "storageSettings"; "required": false; "isSignal": true; }; "bannerImgSettings": { "alias": "bannerImgSettings"; "required": false; "isSignal": true; }; "imageStorageSettings": { "alias": "imageStorageSettings"; "required": false; "isSignal": true; }; }, { "onImageLoaded": "onImageLoaded"; "onSave": "onSave"; "onGoDetails": "onGoDetails"; "onTranslate": "onTranslate"; }, never, never, true, never>;
|
|
@@ -160,6 +160,7 @@ export declare class MessageAudio {
|
|
|
160
160
|
messageId?: string;
|
|
161
161
|
tag?: string;
|
|
162
162
|
imgUrl?: string;
|
|
163
|
+
ssml?: string;
|
|
163
164
|
}
|
|
164
165
|
export declare enum ChatRole {
|
|
165
166
|
System = "system",
|
|
@@ -169,7 +170,6 @@ export declare enum ChatRole {
|
|
|
169
170
|
}
|
|
170
171
|
export declare class ChatMessage extends MessageAudio {
|
|
171
172
|
role: ChatRole;
|
|
172
|
-
ssml?: string;
|
|
173
173
|
translation?: string;
|
|
174
174
|
audioHtml?: HTMLAudioElement;
|
|
175
175
|
promisePlay?: any;
|