@dataclouder/ngx-agent-cards 0.0.86 → 0.0.87

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.
@@ -8,7 +8,7 @@ import { DCConversationPromptBuilderService } from '../../services/dc-conversati
8
8
  import { ConversationService } from '../../services/conversation.service';
9
9
  import { EvaluationService } from '../../services/evaluation.service';
10
10
  import * as i0 from "@angular/core";
11
- export declare class ChatContainerComponent implements OnInit, OnDestroy {
11
+ export declare class DCChatComponent implements OnInit, OnDestroy {
12
12
  private agentCardService;
13
13
  private toastService;
14
14
  private conversationBuilder;
@@ -61,6 +61,6 @@ export declare class ChatContainerComponent implements OnInit, OnDestroy {
61
61
  * Evaluate conversation using evaluator agent
62
62
  */
63
63
  private evaluateConversation;
64
- static ɵfac: i0.ɵɵFactoryDeclaration<ChatContainerComponent, never>;
65
- static ɵcmp: i0.ɵɵComponentDeclaration<ChatContainerComponent, "dc-chat", never, { "chatUserSettings": { "alias": "chatUserSettings"; "required": false; }; "agentCard": { "alias": "agentCard"; "required": false; }; "evaluatorAgentCard": { "alias": "evaluatorAgentCard"; "required": false; }; "parseDict": { "alias": "parseDict"; "required": false; }; }, { "sendMessage": "sendMessage"; }, never, never, true, never>;
64
+ static ɵfac: i0.ɵɵFactoryDeclaration<DCChatComponent, never>;
65
+ static ɵcmp: i0.ɵɵComponentDeclaration<DCChatComponent, "dc-chat", never, { "chatUserSettings": { "alias": "chatUserSettings"; "required": false; }; "agentCard": { "alias": "agentCard"; "required": false; }; "evaluatorAgentCard": { "alias": "evaluatorAgentCard"; "required": false; }; "parseDict": { "alias": "parseDict"; "required": false; }; }, { "sendMessage": "sendMessage"; }, never, never, true, never>;
66
66
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dataclouder/ngx-agent-cards",
3
- "version": "0.0.86",
3
+ "version": "0.0.87",
4
4
  "peerDependencies": {
5
5
  "@angular/common": ">=18.0.0",
6
6
  "@angular/core": ">=18.0.0",
package/public-api.d.ts CHANGED
@@ -4,7 +4,6 @@ export * from './lib/models/conversation-enums';
4
4
  export * from './lib/services/audio.service';
5
5
  export * from './lib/services/dc-conversation-builder.service';
6
6
  export * from './lib/components/chat-container/chat-container.component';
7
- export * from './lib/components/chat/dc-chat.component';
8
7
  export * from './lib/components/dc-agent-form/dc-agent-card-form.component';
9
8
  export * from './lib/components/dc-agent-card-lists/dc-agent-card-lists.component';
10
9
  export * from './lib/components/dc-agent-card-details/dc-agent-card-details.component';
@@ -14,3 +13,4 @@ export * from './lib/components/dc-agent-card-lists/dc-agent-card-lists.componen
14
13
  export * from './lib/components/provider-selector/provider-selector.component';
15
14
  export * from './lib/models/agent.utils';
16
15
  export * from './lib/components/chat-container/chat-container.component';
16
+ export * from './lib/components/chat-container/chat.models';
@@ -1,58 +0,0 @@
1
- import { EventEmitter, OnInit, ChangeDetectorRef } from '@angular/core';
2
- import { DialogService } from 'primeng/dynamicdialog';
3
- import { ToastAlertsAbstractService } from '@dataclouder/ngx-core';
4
- import { MicSettings } from '@dataclouder/ngx-mic';
5
- import { ChatUserSettings, IConversationSettings, ChatMessage, IAgentCard, IMiniAgentCard } from '../../models/agent.models';
6
- import { AgentCardsAbstractService } from '../../models/conversation-ai.class';
7
- import { DCConversationPromptBuilderService } from '../../services/dc-conversation-builder.service';
8
- import * as i0 from "@angular/core";
9
- export declare class DCChatComponent implements OnInit {
10
- private agentCardService;
11
- private toastService;
12
- private conversationBuilder;
13
- private dialogService;
14
- private cdr;
15
- chatUserSettings: ChatUserSettings;
16
- agentCard: IAgentCard;
17
- evaluatorAgentCard: IMiniAgentCard;
18
- parseDict: {
19
- [key: string]: string;
20
- };
21
- sendMessage: EventEmitter<string>;
22
- micSettings: MicSettings;
23
- conversationSettings: IConversationSettings;
24
- messages: ChatMessage[];
25
- imageUser: string;
26
- thinkingImg: string;
27
- aiIcon: string;
28
- isDestroyed: boolean;
29
- score: number;
30
- isAdmin: boolean;
31
- isInfoVisible: boolean;
32
- isChatSettingsVisible: boolean;
33
- isAIThinking: boolean;
34
- isUserTalking: boolean;
35
- user: any;
36
- isGettingTranscription: boolean;
37
- private defaultVoice;
38
- constructor(agentCardService: AgentCardsAbstractService, toastService: ToastAlertsAbstractService, conversationBuilder: DCConversationPromptBuilderService, dialogService: DialogService, cdr: ChangeDetectorRef);
39
- alternativeConversation: IAgentCard[];
40
- ngOnInit(): Promise<void>;
41
- private buildChatMessage;
42
- changeUserChatSettings(): void;
43
- ngOnDestroy(): void;
44
- setAIthinking(): void;
45
- sendUserMessage(message?: ChatMessage): Promise<void>;
46
- sendCurrentConversation(): Promise<void>;
47
- private getVoice;
48
- setInputText(text: string): void;
49
- micFinished(eventBlob: any): Promise<void>;
50
- playMessage(message: ChatMessage): void;
51
- subsItalicsByTag(text: any, voiceId?: string, tagName?: string): any;
52
- private processMultiMessages;
53
- showInfo(): void;
54
- restartConversation(conversation?: IAgentCard): Promise<void>;
55
- private evaluateConversation;
56
- static ɵfac: i0.ɵɵFactoryDeclaration<DCChatComponent, never>;
57
- static ɵcmp: i0.ɵɵComponentDeclaration<DCChatComponent, "dc-chat", never, { "chatUserSettings": { "alias": "chatUserSettings"; "required": false; }; "agentCard": { "alias": "agentCard"; "required": false; }; "evaluatorAgentCard": { "alias": "evaluatorAgentCard"; "required": false; }; "parseDict": { "alias": "parseDict"; "required": false; }; }, { "sendMessage": "sendMessage"; }, never, never, true, never>;
58
- }