@dataclouder/ngx-agent-cards 0.1.23 → 0.1.24
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 +150 -155
- 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-header/chat-header.component.d.ts +3 -4
- package/lib/components/dc-agent-card-lists/dc-agent-card-lists.component.d.ts +1 -1
- package/lib/models/agent.models.d.ts +1 -0
- package/lib/services/default-agent-service.d.ts +3 -3
- package/package.json +1 -1
- package/public-api.d.ts +3 -2
- /package/lib/models/{conversation-ai.class.d.ts → agent-card-abstract.model.d.ts} +0 -0
|
@@ -43,6 +43,7 @@ export declare class DCChatComponent implements OnInit, OnDestroy {
|
|
|
43
43
|
* Restart conversation
|
|
44
44
|
*/
|
|
45
45
|
restartConversation(conversation?: IAgentCard | null): Promise<void>;
|
|
46
|
+
complete(): void;
|
|
46
47
|
static ɵfac: i0.ɵɵFactoryDeclaration<DCChatComponent, never>;
|
|
47
48
|
static ɵcmp: i0.ɵɵComponentDeclaration<DCChatComponent, "dc-chat", never, { "chatUserSettings": { "alias": "chatUserSettings"; "required": false; }; "conversationSettings": { "alias": "conversationSettings"; "required": false; }; "conversationFlow": { "alias": "conversationFlow"; "required": false; }; "agentCard": { "alias": "agentCard"; "required": false; }; "parseDict": { "alias": "parseDict"; "required": false; "isSignal": true; }; }, { "sendMessage": "sendMessage"; "goalCompleted": "goalCompleted"; }, never, never, true, never>;
|
|
48
49
|
}
|
|
@@ -1,18 +1,17 @@
|
|
|
1
1
|
import { IAgentCard } from '../../../models/agent.models';
|
|
2
2
|
import * as i0 from "@angular/core";
|
|
3
3
|
export declare class ChatHeaderComponent {
|
|
4
|
-
private agentCardService;
|
|
5
4
|
readonly isAdmin: import("@angular/core").InputSignal<boolean>;
|
|
6
5
|
alternativeConversation: IAgentCard[];
|
|
7
6
|
agentCard: IAgentCard;
|
|
8
7
|
readonly restartConversationEvent: import("@angular/core").OutputEmitterRef<IAgentCard>;
|
|
9
8
|
readonly showInfoEvent: import("@angular/core").OutputEmitterRef<void>;
|
|
10
9
|
readonly settingsClickEvent: import("@angular/core").OutputEmitterRef<void>;
|
|
11
|
-
|
|
12
|
-
constructor(...args: unknown[]);
|
|
10
|
+
readonly completeEvent: import("@angular/core").OutputEmitterRef<void>;
|
|
13
11
|
restartConversation(conversation?: IAgentCard | null): void;
|
|
14
12
|
showInfo(): void;
|
|
15
13
|
settingsClick(): void;
|
|
14
|
+
complete(): void;
|
|
16
15
|
static ɵfac: i0.ɵɵFactoryDeclaration<ChatHeaderComponent, never>;
|
|
17
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<ChatHeaderComponent, "dc-chat-header", never, { "isAdmin": { "alias": "isAdmin"; "required": false; "isSignal": true; }; "alternativeConversation": { "alias": "alternativeConversation"; "required": false; }; "agentCard": { "alias": "agentCard"; "required": false; }; }, { "restartConversationEvent": "restartConversationEvent"; "showInfoEvent": "showInfoEvent"; "settingsClickEvent": "settingsClickEvent"; }, never, never, true, never>;
|
|
16
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ChatHeaderComponent, "dc-chat-header", never, { "isAdmin": { "alias": "isAdmin"; "required": false; "isSignal": true; }; "alternativeConversation": { "alias": "alternativeConversation"; "required": false; }; "agentCard": { "alias": "agentCard"; "required": false; }; }, { "restartConversationEvent": "restartConversationEvent"; "showInfoEvent": "showInfoEvent"; "settingsClickEvent": "settingsClickEvent"; "completeEvent": "completeEvent"; }, never, never, true, never>;
|
|
18
17
|
}
|
|
@@ -26,7 +26,7 @@ export declare class AgentCardListComponent extends PaginationBase implements On
|
|
|
26
26
|
private subscribeToCardEvents;
|
|
27
27
|
private clearCardEventSubs;
|
|
28
28
|
ngOnDestroy(): void;
|
|
29
|
-
private
|
|
29
|
+
private findAgentCards;
|
|
30
30
|
getAllConversationCards(): Promise<IAgentCard[]>;
|
|
31
31
|
goToDetails(action: {
|
|
32
32
|
action: string;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { AgentCardsAbstractService } from '../models/
|
|
1
|
+
import { AgentCardsAbstractService } from '../models/agent-card-abstract.model';
|
|
2
2
|
import { IConversationSettingsDTO, IAgentResponseDTO, IAgentCard, TTSRequest, AudioGenerated, ModelName, TranscriptionsWhisper } from '../models/agent.models';
|
|
3
|
-
import { FiltersConfig, IFilterQueryResponse, ChatUserSettings, IAIModel } from '@dataclouder/ngx-core';
|
|
3
|
+
import { FiltersConfig, IFilterQueryResponse, HttpCoreService, ChatUserSettings, IAIModel } from '@dataclouder/ngx-core';
|
|
4
4
|
import * as i0 from "@angular/core";
|
|
5
5
|
export declare class DefaultAgentCardsService implements AgentCardsAbstractService {
|
|
6
|
+
protected httpService: HttpCoreService;
|
|
6
7
|
partialUpdateAgentCard(agentCard: IAgentCard): Promise<IAgentCard>;
|
|
7
|
-
private httpService;
|
|
8
8
|
generateMainImage(idCard: string): Promise<any>;
|
|
9
9
|
completeAgentCard(idCard: string): Promise<any>;
|
|
10
10
|
callChatCompletion(conversation: IConversationSettingsDTO): Promise<IAgentResponseDTO>;
|
package/package.json
CHANGED
package/public-api.d.ts
CHANGED
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
export * from './lib/models/agent.models';
|
|
2
|
-
export * from './lib/models/
|
|
2
|
+
export * from './lib/models/agent-card-abstract.model';
|
|
3
3
|
export * from './lib/models/conversation-enums';
|
|
4
|
-
export * from './lib/models/
|
|
4
|
+
export * from './lib/models/agent-card-abstract.model';
|
|
5
5
|
export * from './lib/models/agent.utils';
|
|
6
6
|
export * from './lib/components/dc-agent-form/form-group.utils';
|
|
7
7
|
export * from './lib/services/audio.service';
|
|
8
8
|
export * from './lib/services/dc-conversation-builder.service';
|
|
9
|
+
export * from './lib/services/default-agent-service';
|
|
9
10
|
export * from './lib/services/popup.service';
|
|
10
11
|
export * from './lib/services/agent-user-progress.service';
|
|
11
12
|
export * from './lib/services/dynamic-flow.service';
|
|
File without changes
|