@dataclouder/ngx-agent-cards 0.1.34 → 0.1.36

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.
Files changed (75) hide show
  1. package/fesm2022/dataclouder-ngx-agent-cards.mjs +269 -330
  2. package/fesm2022/dataclouder-ngx-agent-cards.mjs.map +1 -1
  3. package/index.d.ts +1080 -3
  4. package/package.json +1 -1
  5. package/lib/components/chat-container/chat-container.component.d.ts +0 -48
  6. package/lib/components/chat-container/chat-footer/chat-footer.component.d.ts +0 -57
  7. package/lib/components/chat-container/chat-header/chat-header.component.d.ts +0 -23
  8. package/lib/components/chat-container/chat-messages-list/chat-message/chat-message-orchestrator/message-content-displayer/extract-tags.d.ts +0 -4
  9. package/lib/components/chat-container/chat-messages-list/chat-message/chat-message-orchestrator/message-content-displayer/message-content-displayer.d.ts +0 -49
  10. package/lib/components/chat-container/chat-messages-list/chat-message/chat-message-orchestrator/message-orchestrator.component.d.ts +0 -15
  11. package/lib/components/chat-container/chat-messages-list/chat-message/chat-message.component.d.ts +0 -20
  12. package/lib/components/chat-container/chat-messages-list/chat-message/chat-message.utils.d.ts +0 -6
  13. package/lib/components/chat-container/chat-messages-list/chat-messages-list.component.d.ts +0 -18
  14. package/lib/components/chat-container/chat-settings/dc-conversation-userchat-settings.component.d.ts +0 -51
  15. package/lib/components/conversation-info/conversation-inspector.d.ts +0 -24
  16. package/lib/components/cost-details/cost-details.component.d.ts +0 -16
  17. package/lib/components/dc-agent-card-details/dc-agent-card-details.component.d.ts +0 -19
  18. package/lib/components/dc-agent-card-lists/agent-card-default-ui/agent-card-default-ui.component.d.ts +0 -25
  19. package/lib/components/dc-agent-card-lists/dc-agent-card-lists.component.d.ts +0 -25
  20. package/lib/components/dc-agent-form/account-platform/account-platform-form.component.d.ts +0 -20
  21. package/lib/components/dc-agent-form/agent-task-form/agent-task-form.component.d.ts +0 -20
  22. package/lib/components/dc-agent-form/dc-agent-card-form.component.d.ts +0 -81
  23. package/lib/components/dc-agent-form/dc-character-card-form/dc-character-card-form.component.d.ts +0 -28
  24. package/lib/components/dc-agent-form/dc-conversation-flow-form/dc-conversation-flow-form.component.d.ts +0 -38
  25. package/lib/components/dc-agent-form/dc-conversation-settings-form/dc-conversation-settings-form.component.d.ts +0 -16
  26. package/lib/components/dc-agent-form/dc-do-action-form/dc-do-action-form.component.d.ts +0 -29
  27. package/lib/components/dc-agent-form/dc-dynamic-conditions-form/dc-dynamic-conditions-form.component.d.ts +0 -25
  28. package/lib/components/dc-agent-form/dc-dynamic-criteria-form/dc-dynamic-criteria-form.component.d.ts +0 -19
  29. package/lib/components/dc-agent-form/dc-manageable-form/dc-manageable-form.component.d.ts +0 -11
  30. package/lib/components/dc-agent-form/dc-voice-tts-form/dc-voice-tts-form.component.d.ts +0 -12
  31. package/lib/components/dc-agent-form/form-definition.service.d.ts +0 -81
  32. package/lib/components/dc-agent-form/form-group.utils.d.ts +0 -99
  33. package/lib/components/feedback-evaluation/feedback-evaluation.component.d.ts +0 -15
  34. package/lib/components/prompt-preview-dialog/prompt-conversation-types-dialog.d.ts +0 -18
  35. package/lib/components/prompt-preview-dialog/prompt-preview-dialog.component.d.ts +0 -11
  36. package/lib/components/provider-selector/provider-selector.component.d.ts +0 -60
  37. package/lib/components/translate-dialog/translate-dialog.component.d.ts +0 -20
  38. package/lib/models/agent-card-abstract.model.d.ts +0 -5
  39. package/lib/models/agent.models.d.ts +0 -301
  40. package/lib/models/agent.utils.d.ts +0 -1
  41. package/lib/models/conversation-enums.d.ts +0 -43
  42. package/lib/models/conversation-prompts.d.ts +0 -2
  43. package/lib/models/stavernUtils.d.ts +0 -15
  44. package/lib/models/user-data-exchange.d.ts +0 -25
  45. package/lib/pipes/format-key.pipe.d.ts +0 -7
  46. package/lib/pipes/parse-card.pipe.d.ts +0 -10
  47. package/lib/pipes/safe-json.pipe.d.ts +0 -15
  48. package/lib/pipes/scenario.pipe.d.ts +0 -18
  49. package/lib/pipes/speed.pipe.d.ts +0 -14
  50. package/lib/pipes/truncate.pipe.d.ts +0 -7
  51. package/lib/prompts/dynamic-criteria.prompts.d.ts +0 -2
  52. package/lib/prompts/evaluation-performance-prompt.d.ts +0 -38
  53. package/lib/services/ai-generation.service.d.ts +0 -10
  54. package/lib/services/audio.service.d.ts +0 -27
  55. package/lib/services/chat-monitor.service.d.ts +0 -10
  56. package/lib/services/context-engine.service.d.ts +0 -16
  57. package/lib/services/conversation-cost.service.d.ts +0 -34
  58. package/lib/services/conversation-info.service.d.ts +0 -12
  59. package/lib/services/conversation.service.d.ts +0 -67
  60. package/lib/services/cost-details.service.d.ts +0 -7
  61. package/lib/services/dc-conversation-builder.service.d.ts +0 -29
  62. package/lib/services/default-agent-service.d.ts +0 -25
  63. package/lib/services/dynamic-criteria.service.d.ts +0 -13
  64. package/lib/services/dynamic-flow-task.service.d.ts +0 -16
  65. package/lib/services/dynamic-flow.service.d.ts +0 -15
  66. package/lib/services/evaluation.service.d.ts +0 -36
  67. package/lib/services/global-tools.service.d.ts +0 -7
  68. package/lib/services/message-orchestration.service.d.ts +0 -29
  69. package/lib/services/message-processing.service.d.ts +0 -15
  70. package/lib/services/messages-state.service.d.ts +0 -12
  71. package/lib/services/popup.service.d.ts +0 -41
  72. package/lib/utils/icons/extraction.regex.d.ts +0 -9
  73. package/lib/utils/icons/icon-map.d.ts +0 -6
  74. package/lib/utils/icons/icons.component.d.ts +0 -15
  75. package/public-api.d.ts +0 -32
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dataclouder/ngx-agent-cards",
3
- "version": "0.1.34",
3
+ "version": "0.1.36",
4
4
  "peerDependencies": {
5
5
  "@angular/common": ">=18.0.0",
6
6
  "@angular/core": ">=18.0.0",
@@ -1,48 +0,0 @@
1
- import { OnInit, OnDestroy } from '@angular/core';
2
- import { MicSettings } from '@dataclouder/ngx-mic';
3
- import { ChatMessage, IAgentCard, IConversationFlow, IConversationSettings } from '../../models/agent.models';
4
- import { EvaluationService } from '../../services/evaluation.service';
5
- import { ChatEvent } from '../../models/agent.models';
6
- import { ChatUserSettings } from '@dataclouder/ngx-core';
7
- import { MessagesStateService } from '../../services/messages-state.service';
8
- import * as i0 from "@angular/core";
9
- export declare class DCChatComponent implements OnInit, OnDestroy {
10
- private conversationInfoService;
11
- private conversationService;
12
- evaluationService: EvaluationService;
13
- private userDataExchange;
14
- messageStateService: MessagesStateService;
15
- private dialogService;
16
- private chatMonitorService;
17
- private chatFooterComponent;
18
- chatUserSettings: ChatUserSettings;
19
- conversationSettings: IConversationSettings;
20
- conversationFlow: IConversationFlow | null;
21
- agentCard: IAgentCard;
22
- readonly parseDict: import("@angular/core").InputSignal<{
23
- [key: string]: string;
24
- }>;
25
- readonly chatEvent: import("@angular/core").OutputEmitterRef<ChatEvent<any>>;
26
- readonly goalCompleted: import("@angular/core").OutputEmitterRef<void>;
27
- messages: import("@angular/core").WritableSignal<ChatMessage[]>;
28
- micSettings: MicSettings;
29
- isAdmin: boolean;
30
- constructor();
31
- ngOnInit(): Promise<void>;
32
- ngOnDestroy(): void;
33
- /**
34
- * Open chat settings dialog
35
- */
36
- changeUserChatSettings(): void;
37
- /**
38
- * Show debug info
39
- */
40
- showInfo(): void;
41
- /**
42
- * Restart conversation
43
- */
44
- restartConversation(conversation?: IAgentCard | null): Promise<void>;
45
- complete(): void;
46
- static ɵfac: i0.ɵɵFactoryDeclaration<DCChatComponent, never>;
47
- 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; }; }, { "chatEvent": "chatEvent"; "goalCompleted": "goalCompleted"; }, never, never, true, never>;
48
- }
@@ -1,57 +0,0 @@
1
- import { FormControl } from '@angular/forms';
2
- import { MicSettings, AudioRecording } from '@dataclouder/ngx-mic';
3
- import { ChatMessage, IConversationFlow } from '../../../models/agent.models';
4
- import * as i0 from "@angular/core";
5
- export declare class ChatFooterComponent {
6
- private conversationService;
7
- private evaluationService;
8
- private agentCardService;
9
- private micComponent;
10
- readonly isAIThinking: import("@angular/core").InputSignal<boolean>;
11
- readonly flow: import("@angular/core").InputSignal<IConversationFlow>;
12
- readonly micSettings: import("@angular/core").InputSignal<MicSettings>;
13
- readonly sendMessage: import("@angular/core").OutputEmitterRef<ChatMessage>;
14
- readonly textInputChanged: import("@angular/core").OutputEmitterRef<string>;
15
- isGettingTranscription: boolean;
16
- isUserTalking: boolean;
17
- micStatus: string;
18
- private shouldResumeMic;
19
- chatInputControl: FormControl;
20
- private lastUserMessageId;
21
- constructor();
22
- /**
23
- * Method used by the template to determine if the mic should continue listening
24
- */
25
- shouldContinueListening(): boolean;
26
- score: import("@angular/core").WritableSignal<number>;
27
- /**
28
- * Sets the input text in the textarea
29
- * @param text The text to set
30
- */
31
- setInputText(text: string): void;
32
- /**
33
- * Handles the mic finished event
34
- * @param eventBlob The blob event from the mic component
35
- */
36
- micFinished(eventBlob: any): void;
37
- /**
38
- * Sends the user message
39
- */
40
- prepareUserMsnAndSend(): Promise<void>;
41
- handleAudioRecorded(event: AudioRecording): void;
42
- /**
43
- * Handles the mic status changed event
44
- * @param event The status event from the mic component
45
- */
46
- handleMicStatusChanged(event: {
47
- status: string;
48
- description: string;
49
- }): void;
50
- onMicFinished(eventBlob: Blob | any): Promise<void>;
51
- /**
52
- * Stops the microphone recording if the component is available.
53
- */
54
- stopMic(): void;
55
- static ɵfac: i0.ɵɵFactoryDeclaration<ChatFooterComponent, never>;
56
- static ɵcmp: i0.ɵɵComponentDeclaration<ChatFooterComponent, "dc-chat-footer", never, { "isAIThinking": { "alias": "isAIThinking"; "required": false; "isSignal": true; }; "flow": { "alias": "flow"; "required": false; "isSignal": true; }; "micSettings": { "alias": "micSettings"; "required": false; "isSignal": true; }; }, { "sendMessage": "sendMessage"; "textInputChanged": "textInputChanged"; }, never, never, true, never>;
57
- }
@@ -1,23 +0,0 @@
1
- import { IAgentCard } from '../../../models/agent.models';
2
- import { ConversationCostService } from '../../../services/conversation-cost.service';
3
- import * as i0 from "@angular/core";
4
- export declare class ChatHeaderComponent {
5
- readonly isAdmin: import("@angular/core").InputSignal<boolean>;
6
- alternativeConversation: IAgentCard[];
7
- agentCard: IAgentCard;
8
- private evaluationService;
9
- conversationCostService: ConversationCostService;
10
- private costDetailsService;
11
- readonly restartConversationEvent: import("@angular/core").OutputEmitterRef<IAgentCard>;
12
- readonly showInfoEvent: import("@angular/core").OutputEmitterRef<void>;
13
- readonly settingsClickEvent: import("@angular/core").OutputEmitterRef<void>;
14
- readonly completeEvent: import("@angular/core").OutputEmitterRef<void>;
15
- restartConversation(conversation?: IAgentCard | null): void;
16
- showInfo(): void;
17
- settingsClick(): void;
18
- complete(): void;
19
- openFeedback(): void;
20
- openCostDetails(): void;
21
- static ɵfac: i0.ɵɵFactoryDeclaration<ChatHeaderComponent, never>;
22
- 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>;
23
- }
@@ -1,4 +0,0 @@
1
- export declare function extractTags(text: string): {
2
- word: string;
3
- tag: string;
4
- }[];
@@ -1,49 +0,0 @@
1
- import { OnDestroy } from '@angular/core';
2
- import { MessageContent } from '../../../../../../models/agent.models';
3
- import * as i0 from "@angular/core";
4
- export interface IWordMetadata {
5
- word: string;
6
- index: number;
7
- isHighlighted?: boolean;
8
- tag?: string;
9
- }
10
- export type AudioState = 'idle' | 'playing' | 'paused' | 'loading' | 'playable';
11
- export declare class MessageContentDisplayer implements OnDestroy {
12
- message: import("@angular/core").InputSignal<MessageContent>;
13
- readonly playAudio: import("@angular/core").OutputEmitterRef<MessageContent>;
14
- readonly audioCompleted: import("@angular/core").OutputEmitterRef<MessageContent>;
15
- readonly wordClicked: import("@angular/core").OutputEmitterRef<{
16
- word: string;
17
- index: number;
18
- messageId: string;
19
- }>;
20
- wordWithMeta: import("@angular/core").WritableSignal<IWordMetadata[]>;
21
- audioState: import("@angular/core").WritableSignal<AudioState>;
22
- alreadyPlayed: boolean;
23
- wordsWithMetaState: IWordMetadata[];
24
- iconState: import("@angular/core").Signal<"paused" | "idle" | "playing" | "loading" | "playable">;
25
- shouldPlayAudio: import("@angular/core").Signal<boolean>;
26
- messageText: import("@angular/core").Signal<string>;
27
- classTag: import("@angular/core").Signal<string>;
28
- hasTranscription: import("@angular/core").Signal<boolean>;
29
- private audioElement;
30
- private destroy$;
31
- private destroyRef;
32
- constructor();
33
- trackByIndex(index: number, item: any): number;
34
- ngOnDestroy(): void;
35
- private initializeBasedOnMessage;
36
- private initializeAudio;
37
- private subcribeToAudioSync;
38
- private subscribeToEndAudio;
39
- private cleanupAudio;
40
- onPlayMessage(): void;
41
- private initializePlainTextWords;
42
- onWordClick(wordData: {
43
- word: string;
44
- index: number;
45
- } | IWordMetadata): void;
46
- private startAudioPlayback;
47
- static ɵfac: i0.ɵɵFactoryDeclaration<MessageContentDisplayer, never>;
48
- static ɵcmp: i0.ɵɵComponentDeclaration<MessageContentDisplayer, "message-content-displayer", never, { "message": { "alias": "message"; "required": true; "isSignal": true; }; }, { "playAudio": "playAudio"; "audioCompleted": "audioCompleted"; "wordClicked": "wordClicked"; }, never, never, true, never>;
49
- }
@@ -1,15 +0,0 @@
1
- import { OnInit } from '@angular/core';
2
- import { ChatRole, MessageContent } from '../../../../../models/agent.models';
3
- import { WordData } from '../../../../../services/popup.service';
4
- import * as i0 from "@angular/core";
5
- export declare class ChatMessageOrchestratorComponent implements OnInit {
6
- private orchestrationService;
7
- messages: import("@angular/core").InputSignal<MessageContent[]>;
8
- messageRole: import("@angular/core").InputSignal<ChatRole>;
9
- messagesSignal: import("@angular/core").Signal<MessageContent[]>;
10
- ngOnInit(): void;
11
- onAudioCompleted(message: MessageContent): void;
12
- onWordClicked(wordData: WordData): void;
13
- static ɵfac: i0.ɵɵFactoryDeclaration<ChatMessageOrchestratorComponent, never>;
14
- static ɵcmp: i0.ɵɵComponentDeclaration<ChatMessageOrchestratorComponent, "dc-message-orchestrator", never, { "messages": { "alias": "messages"; "required": true; "isSignal": true; }; "messageRole": { "alias": "messageRole"; "required": true; "isSignal": true; }; }, {}, never, never, true, never>;
15
- }
@@ -1,20 +0,0 @@
1
- import { ChatUserSettings } from '@dataclouder/ngx-core';
2
- import { ChatMessage, MessageContent } from '../../../../models/agent.models';
3
- import * as i0 from "@angular/core";
4
- export declare class ChatMessageComponent {
5
- private aiGenerationService;
6
- chatMessage: import("@angular/core").InputSignal<ChatMessage>;
7
- chatUserSettings: import("@angular/core").InputSignal<ChatUserSettings>;
8
- audioMessage: import("@angular/core").WritableSignal<MessageContent>;
9
- hasMultiMessages: import("@angular/core").Signal<boolean>;
10
- multiMessages: import("@angular/core").Signal<MessageContent[]>;
11
- isUserMessage: import("@angular/core").Signal<boolean>;
12
- isAssistantMessage: import("@angular/core").Signal<boolean>;
13
- evaluationEmoji: import("@angular/core").Signal<string>;
14
- constructor();
15
- showEvaluation(): void;
16
- printData(): void;
17
- generateImage(): Promise<void>;
18
- static ɵfac: i0.ɵɵFactoryDeclaration<ChatMessageComponent, never>;
19
- static ɵcmp: i0.ɵɵComponentDeclaration<ChatMessageComponent, "dc-chat-message", never, { "chatMessage": { "alias": "chatMessage"; "required": true; "isSignal": true; }; "chatUserSettings": { "alias": "chatUserSettings"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
20
- }
@@ -1,6 +0,0 @@
1
- import { AudioGenerated, MessageContent } from '../../../../models/agent.models';
2
- import { ChatUserSettings } from '@dataclouder/ngx-core';
3
- import { TTSRequest } from '@dataclouder/ngx-vertex';
4
- export declare function matchTranscription(originalText: string, transcription: any[]): any[];
5
- export declare function extractAudioAndTranscription(message: MessageContent, audio: AudioGenerated): MessageContent;
6
- export declare function buildObjectTTSRequest(message: MessageContent, settings?: ChatUserSettings): TTSRequest;
@@ -1,18 +0,0 @@
1
- import { ChatMessage } from '../../../models/agent.models';
2
- import { ChatUserSettings } from '@dataclouder/ngx-core';
3
- import * as i0 from "@angular/core";
4
- export declare class ChatMessagesListComponent {
5
- readonly chatUserSettings: import("@angular/core").InputSignal<ChatUserSettings>;
6
- inputMessages: import("@angular/core").InputSignal<ChatMessage[]>;
7
- private conversationService;
8
- private messagesStateService;
9
- private elementRef;
10
- aiIcon: string;
11
- isThinking: import("@angular/core").Signal<boolean>;
12
- messages: import("@angular/core").Signal<ChatMessage[]>;
13
- constructor();
14
- scrollToBottom(): void;
15
- trackByMessage(index: number, message: ChatMessage): string;
16
- static ɵfac: i0.ɵɵFactoryDeclaration<ChatMessagesListComponent, never>;
17
- static ɵcmp: i0.ɵɵComponentDeclaration<ChatMessagesListComponent, "dc-chat-messages-list", never, { "chatUserSettings": { "alias": "chatUserSettings"; "required": true; "isSignal": true; }; "inputMessages": { "alias": "inputMessages"; "required": true; "isSignal": true; }; }, {}, never, never, true, never>;
18
- }
@@ -1,51 +0,0 @@
1
- import { OnInit, TemplateRef } from '@angular/core';
2
- import { TextEngines, AudioSpeed } from '../../../models/conversation-enums';
3
- import * as i0 from "@angular/core";
4
- export declare class DCConversationUserChatSettingsComponent implements OnInit {
5
- private dialogRef;
6
- private fb;
7
- private conversationCardAIService;
8
- isLoadingModels: boolean;
9
- readonly showFeature: import("@angular/core").InputSignal<any>;
10
- readonly onSettingsChange: import("@angular/core").OutputEmitterRef<any>;
11
- readonly closeClicked: import("@angular/core").OutputEmitterRef<void>;
12
- readonly settingsApplied: import("@angular/core").OutputEmitterRef<any>;
13
- textEngines: TextEngines[];
14
- voiceTTSOptions: import("@dataclouder/ngx-agent-cards").VoiceTTSOption[];
15
- textEngineOptions: {
16
- value: TextEngines;
17
- label: string;
18
- }[];
19
- speedOptions: {
20
- label: AudioSpeed;
21
- value: AudioSpeed;
22
- }[];
23
- modelnames: any[];
24
- form: import("@angular/forms").FormGroup<{
25
- synthVoice: import("@angular/forms").FormControl<boolean>;
26
- highlightWords: import("@angular/forms").FormControl<boolean>;
27
- speed: import("@angular/forms").FormControl<AudioSpeed>;
28
- realTime: import("@angular/forms").FormControl<boolean>;
29
- repeatRecording: import("@angular/forms").FormControl<boolean>;
30
- superHearing: import("@angular/forms").FormControl<boolean>;
31
- fixGrammar: import("@angular/forms").FormControl<boolean>;
32
- autoTranslate: import("@angular/forms").FormControl<boolean>;
33
- userMessageTask: import("@angular/forms").FormControl<boolean>;
34
- assistantMessageTask: import("@angular/forms").FormControl<boolean>;
35
- voice: import("@angular/forms").FormControl<string>;
36
- model: import("@angular/forms").FormGroup<{
37
- quality: import("@angular/forms").FormControl<import("@dataclouder/ngx-core").EModelQuality>;
38
- modelName: import("@angular/forms").FormControl<string>;
39
- provider: import("@angular/forms").FormControl<string>;
40
- id: import("@angular/forms").FormControl<string>;
41
- }>;
42
- }>;
43
- tooltipRef: TemplateRef<any>;
44
- isAdmin: boolean;
45
- ngOnInit(): void;
46
- private loadInitialSettings;
47
- close(): void;
48
- saveSettings(): Promise<void>;
49
- static ɵfac: i0.ɵɵFactoryDeclaration<DCConversationUserChatSettingsComponent, never>;
50
- static ɵcmp: i0.ɵɵComponentDeclaration<DCConversationUserChatSettingsComponent, "dc-chat-settings-dialog", never, { "showFeature": { "alias": "showFeature"; "required": false; "isSignal": true; }; }, { "onSettingsChange": "onSettingsChange"; "closeClicked": "closeClicked"; "settingsApplied": "settingsApplied"; }, never, never, true, never>;
51
- }
@@ -1,24 +0,0 @@
1
- import { DynamicDialogConfig } from 'primeng/dynamicdialog';
2
- import { EvaluationService } from '../../services/evaluation.service';
3
- import { MessagesStateService } from '../../services/messages-state.service';
4
- import { DynamicFlowService } from '../../services/dynamic-flow.service';
5
- import { IAgentCard } from '../../models/agent.models';
6
- import { ChatUserSettings } from '@dataclouder/ngx-core';
7
- import { GlobalToolsService } from '../../services/global-tools.service';
8
- import * as i0 from "@angular/core";
9
- export declare class ConversationInspector {
10
- evaluationService: EvaluationService;
11
- messageStateService: MessagesStateService;
12
- dynamicFlowService: DynamicFlowService;
13
- globalToolsService: GlobalToolsService;
14
- config: DynamicDialogConfig<any, any>;
15
- agentCard: IAgentCard;
16
- chatUserSettings: ChatUserSettings;
17
- value: number;
18
- constructor();
19
- setScore(): void;
20
- callAgent(): void;
21
- exportChat(type: 'all' | 'conversation'): void;
22
- static ɵfac: i0.ɵɵFactoryDeclaration<ConversationInspector, never>;
23
- static ɵcmp: i0.ɵɵComponentDeclaration<ConversationInspector, "dc-conversation-info", never, {}, {}, never, never, true, never>;
24
- }
@@ -1,16 +0,0 @@
1
- import { ConversationCostService, ITagCost } from '../../services/conversation-cost.service';
2
- import * as i0 from "@angular/core";
3
- export declare class CostDetailsComponent {
4
- conversationCostService: ConversationCostService;
5
- usageByTag: import("@angular/core").Signal<Record<string, ITagCost>>;
6
- get usageArray(): {
7
- inputCost: number;
8
- outputCost: number;
9
- totalCost: number;
10
- tokenUsage: import("../../services/conversation-cost.service").ITokenUsage;
11
- apiCalls: number;
12
- tag: string;
13
- }[];
14
- static ɵfac: i0.ɵɵFactoryDeclaration<CostDetailsComponent, never>;
15
- static ɵcmp: i0.ɵɵComponentDeclaration<CostDetailsComponent, "dc-cost-details", never, {}, {}, never, never, true, never>;
16
- }
@@ -1,19 +0,0 @@
1
- import { OnInit } from '@angular/core';
2
- import { IAgentCard } from '../../models/agent.models';
3
- import * as i0 from "@angular/core";
4
- export declare class DcAgentCardDetailsComponent implements OnInit {
5
- private agentCardService;
6
- private route;
7
- private toastService;
8
- agentCardId: string;
9
- readonly onStartConversation: import("@angular/core").OutputEmitterRef<IAgentCard>;
10
- agentCard: import("@angular/core").WritableSignal<IAgentCard>;
11
- showInfoLayer: import("@angular/core").WritableSignal<boolean>;
12
- mediaType: import("@angular/core").Signal<"image" | "video">;
13
- mediaUrl: import("@angular/core").Signal<string>;
14
- ngOnInit(): Promise<void>;
15
- startConversation(): void;
16
- toggleInfoLayer(): void;
17
- static ɵfac: i0.ɵɵFactoryDeclaration<DcAgentCardDetailsComponent, never>;
18
- static ɵcmp: i0.ɵɵComponentDeclaration<DcAgentCardDetailsComponent, "dc-agent-card-details", never, { "agentCardId": { "alias": "agentCardId"; "required": false; }; }, { "onStartConversation": "onStartConversation"; }, never, never, true, never>;
19
- }
@@ -1,25 +0,0 @@
1
- import { type OnInit } from '@angular/core';
2
- import { IAgentCard } from '../../../models/agent.models';
3
- import { MenuItem } from 'primeng/api';
4
- import { OnActionEvent } from '@dataclouder/ngx-core';
5
- import { UserService } from '@dataclouder/ngx-users';
6
- import * as i0 from "@angular/core";
7
- declare enum EventCard {
8
- Edit = "edit",
9
- Delete = "delete",
10
- Select = "select",
11
- Clone = "clone"
12
- }
13
- export declare class AgentCardUI implements OnInit {
14
- eventType: typeof EventCard;
15
- userService: UserService;
16
- speedDialModel: MenuItem[];
17
- ngOnInit(): void;
18
- readonly card: import("@angular/core").InputSignal<IAgentCard>;
19
- readonly showOptions: import("@angular/core").InputSignal<boolean>;
20
- readonly onAction: import("@angular/core").OutputEmitterRef<OnActionEvent>;
21
- eventCard(eventType: EventCard): void;
22
- static ɵfac: i0.ɵɵFactoryDeclaration<AgentCardUI, never>;
23
- static ɵcmp: i0.ɵɵComponentDeclaration<AgentCardUI, "dc-agent-card-ui", never, { "card": { "alias": "card"; "required": false; "isSignal": true; }; "showOptions": { "alias": "showOptions"; "required": false; "isSignal": true; }; }, { "onAction": "onAction"; }, never, never, true, never>;
24
- }
25
- export {};
@@ -1,25 +0,0 @@
1
- import { OnInit } from '@angular/core';
2
- import { IAgentCard, IAgentCardMeta } from '../../models/agent.models';
3
- import { EntityBaseListComponent, PColumn, OnActionEvent, ICustomFilter } from '@dataclouder/ngx-core';
4
- import { MenuItem } from 'primeng/api';
5
- import { DefaultAgentCardsService } from '../../services/default-agent-service';
6
- import * as i0 from "@angular/core";
7
- export declare class AgentCardListComponent extends EntityBaseListComponent<IAgentCard> implements OnInit {
8
- extraFilters: ICustomFilter[];
9
- readonly showOptions: import("@angular/core").InputSignal<boolean>;
10
- readonly gridLayout: import("@angular/core").InputSignal<boolean>;
11
- readonly customGetButtons: import("@angular/core").InputSignal<(card: IAgentCard) => MenuItem[]>;
12
- protected entityCommunicationService: DefaultAgentCardsService;
13
- private toastService;
14
- columns: PColumn[];
15
- customFilters: ICustomFilter[];
16
- constructor();
17
- getCustomButtons(item: IAgentCard): MenuItem[];
18
- ngOnInit(): Promise<void>;
19
- handleTableAction(actionEvent: OnActionEvent): void;
20
- getCardMeta(card: IAgentCard): IAgentCardMeta;
21
- handleAction(actionEvent: OnActionEvent): void;
22
- applyFilterBarEvent(filterEvent: OnActionEvent): void;
23
- static ɵfac: i0.ɵɵFactoryDeclaration<AgentCardListComponent, never>;
24
- static ɵcmp: i0.ɵɵComponentDeclaration<AgentCardListComponent, "dc-agent-card-lists", never, { "extraFilters": { "alias": "extraFilters"; "required": false; }; "showOptions": { "alias": "showOptions"; "required": false; "isSignal": true; }; "gridLayout": { "alias": "gridLayout"; "required": false; "isSignal": true; }; "customGetButtons": { "alias": "customGetButtons"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
25
- }
@@ -1,20 +0,0 @@
1
- import { OnInit } from '@angular/core';
2
- import { FormArray } from '@angular/forms';
3
- import { EAccountsPlatform } from '../../../models/agent.models';
4
- import * as i0 from "@angular/core";
5
- export declare class AccountPlatformForm implements OnInit {
6
- private route;
7
- private fb;
8
- private router;
9
- private toastService;
10
- formArray: FormArray;
11
- platformOptions: {
12
- label: string;
13
- value: EAccountsPlatform;
14
- }[];
15
- genericId: any;
16
- ngOnInit(): Promise<void>;
17
- save(): Promise<void>;
18
- static ɵfac: i0.ɵɵFactoryDeclaration<AccountPlatformForm, never>;
19
- static ɵcmp: i0.ɵɵComponentDeclaration<AccountPlatformForm, "account-platform-form", never, { "formArray": { "alias": "formArray"; "required": false; }; }, {}, never, never, true, never>;
20
- }
@@ -1,20 +0,0 @@
1
- import { SimpleAgentTask } from '../../../models/agent.models';
2
- import { EModelQuality } from '@dataclouder/ngx-core';
3
- import * as i0 from "@angular/core";
4
- export declare function createAgentTaskFormGroup(task?: SimpleAgentTask): import("@angular/forms").FormGroup<{
5
- systemPrompt: import("@angular/forms").FormControl<string>;
6
- task: import("@angular/forms").FormControl<string>;
7
- expectedResponseType: import("@angular/forms").FormControl<string>;
8
- model: import("@angular/forms").FormGroup<{
9
- quality: import("@angular/forms").FormControl<EModelQuality>;
10
- modelName: import("@angular/forms").FormControl<string>;
11
- provider: import("@angular/forms").FormControl<string>;
12
- }>;
13
- }>;
14
- export declare class AgentTaskFormComponent {
15
- private formGroupService;
16
- formGroup: import("@dataclouder/ngx-agent-cards").SimpleAgentTaskFormGroup;
17
- shortForm?: boolean;
18
- static ɵfac: i0.ɵɵFactoryDeclaration<AgentTaskFormComponent, never>;
19
- static ɵcmp: i0.ɵɵComponentDeclaration<AgentTaskFormComponent, "agent-task-form", never, { "formGroup": { "alias": "formGroup"; "required": false; }; "shortForm": { "alias": "shortForm"; "required": false; }; }, {}, never, never, true, never>;
20
- }
@@ -1,81 +0,0 @@
1
- import { FormArray, FormGroup } from '@angular/forms';
2
- import { StorageImageSettings, IAssetable } from '@dataclouder/ngx-cloud-storage';
3
- import { ConversationType, TextEngines } from '../../models/conversation-enums';
4
- import { EAgentType, IAgentCard } from '../../models/agent.models';
5
- import { EntityBaseFormComponent } from '@dataclouder/ngx-core';
6
- import * as i0 from "@angular/core";
7
- export declare class DCAgentCardFormComponent extends EntityBaseFormComponent<IAgentCard> {
8
- private fb;
9
- protected entityCommunicationService: import("@dataclouder/ngx-agent-cards").DefaultAgentCardsService;
10
- private dialogService;
11
- private promptBuilder;
12
- private formGroupService;
13
- conversationOptions: {
14
- value: ConversationType;
15
- label: string;
16
- }[];
17
- voiceTTSOptions: import("@dataclouder/ngx-agent-cards").VoiceTTSOption[];
18
- textEngineOptions: {
19
- value: TextEngines;
20
- label: string;
21
- }[];
22
- languageOptions: {
23
- value: string;
24
- label: string;
25
- }[];
26
- agentTypeOptions: (string | EAgentType.None)[];
27
- readonly storageSettings: import("@angular/core").InputSignal<StorageImageSettings>;
28
- readonly onSave: import("@angular/core").OutputEmitterRef<any>;
29
- readonly onGoDetails: import("@angular/core").OutputEmitterRef<string>;
30
- readonly onTranslate: import("@angular/core").OutputEmitterRef<any>;
31
- private getSettings;
32
- form: FormGroup<{
33
- version: import("@angular/forms").FormControl<string>;
34
- id: import("@angular/forms").FormControl<string>;
35
- title: import("@angular/forms").FormControl<string>;
36
- description: import("@angular/forms").FormControl<string>;
37
- lang: import("@angular/forms").FormControl<string>;
38
- agentType: import("@angular/forms").FormControl<EAgentType>;
39
- characterCard: FormGroup<any>;
40
- conversationSettings: FormGroup<{
41
- textEngine: import("@angular/forms").FormControl<TextEngines>;
42
- conversationType: import("@angular/forms").FormControl<ConversationType>;
43
- autoStart: import("@angular/forms").FormControl<boolean>;
44
- mainVoice: FormGroup<any>;
45
- secondaryVoice: FormGroup<any>;
46
- model: FormGroup<{
47
- quality: import("@angular/forms").FormControl<import("@dataclouder/ngx-core").EModelQuality>;
48
- modelName: import("@angular/forms").FormControl<string>;
49
- provider: import("@angular/forms").FormControl<string>;
50
- id: import("@angular/forms").FormControl<string>;
51
- }>;
52
- }>;
53
- metaApp: FormGroup<any>;
54
- accounts: FormArray<import("@angular/forms").FormControl<unknown>>;
55
- conversationFlow: FormGroup<{
56
- goal: import("@dataclouder/ngx-agent-cards").SimpleAgentTaskFormGroup;
57
- triggerTasks: import("@dataclouder/ngx-agent-cards").TriggerTasksFormGroup;
58
- challenges: FormArray<import("@dataclouder/ngx-agent-cards").DynamicCriteriaFormGroup>;
59
- tools: FormArray<import("@dataclouder/ngx-agent-cards").DynamicCriteriaFormGroup>;
60
- dynamicConditions: FormArray<import("@dataclouder/ngx-agent-cards").DynamicConditionFormGroup>;
61
- }>;
62
- manageable: FormGroup<any>;
63
- }>;
64
- protected patchForm(agentCard: IAgentCard): void;
65
- save(): Promise<IAgentCard | undefined>;
66
- onImageSelected(file: File): Promise<void>;
67
- checkPrompt(): void;
68
- goToDetails(): void;
69
- translate(): void;
70
- downloadConversation(): void;
71
- importConversation(): void;
72
- isGenerating: import("@angular/core").WritableSignal<boolean>;
73
- generateCharacter(): Promise<void>;
74
- generateMissingData(): Promise<void>;
75
- onUpdateAsset(event: {
76
- assets: Partial<IAssetable>;
77
- }): void;
78
- onAssetsChange(event: IAssetable): void;
79
- static ɵfac: i0.ɵɵFactoryDeclaration<DCAgentCardFormComponent, never>;
80
- static ɵcmp: i0.ɵɵComponentDeclaration<DCAgentCardFormComponent, "dc-agent-form", never, { "storageSettings": { "alias": "storageSettings"; "required": false; "isSignal": true; }; }, { "onSave": "onSave"; "onGoDetails": "onGoDetails"; "onTranslate": "onTranslate"; }, never, never, true, never>;
81
- }
@@ -1,28 +0,0 @@
1
- import { EventEmitter, OnInit } from '@angular/core';
2
- import { AbstractControl, FormArray, FormControl, FormGroup } from '@angular/forms';
3
- import * as i0 from "@angular/core";
4
- export declare class DcCharacterCardFormComponent implements OnInit {
5
- characterCardForm: FormGroup;
6
- generateMissingDataRequest: EventEmitter<void>;
7
- private fb;
8
- private cdr;
9
- private agentCardService;
10
- private toastService;
11
- private formGroupService;
12
- markdownForm: FormGroup<{
13
- seeMarkdown: FormControl<boolean>;
14
- }>;
15
- isGenerating: boolean;
16
- get dataGroup(): FormGroup;
17
- get alternateGreetingsArray(): FormArray;
18
- get tagsArray(): FormArray;
19
- ngOnInit(): void;
20
- checkCdr(): void;
21
- addArrayItem(controlPath: string): void;
22
- removeArrayItem(controlPath: string, index: number): void;
23
- updateArrayField(controlPath: string, index: number, event: Event): void;
24
- improveFirstMessage(): Promise<void>;
25
- asFormControl(control: AbstractControl): FormControl;
26
- static ɵfac: i0.ɵɵFactoryDeclaration<DcCharacterCardFormComponent, never>;
27
- static ɵcmp: i0.ɵɵComponentDeclaration<DcCharacterCardFormComponent, "dc-character-card-form", never, { "characterCardForm": { "alias": "characterCardForm"; "required": true; }; }, { "generateMissingDataRequest": "generateMissingDataRequest"; }, never, never, true, never>;
28
- }
@@ -1,38 +0,0 @@
1
- import { OnInit } from '@angular/core';
2
- import { ConversationEvents } from '../../../models/agent.models';
3
- import { EDoActionType, SystemPromptType } from '../form-group.utils';
4
- import { ConversationFlowFormGroup } from '../form-group.utils';
5
- import { IDynamicCriteria } from '../../../models/agent.models';
6
- import * as i0 from "@angular/core";
7
- export declare class DCConversationFlowFormComponent implements OnInit {
8
- private formGroupService;
9
- entityWhatOptions: {
10
- label: string;
11
- value: import("@dataclouder/ngx-agent-cards").ConditionType;
12
- }[];
13
- entityWhenOptions: {
14
- label: string;
15
- value: import("@dataclouder/ngx-agent-cards").ConditionOperator;
16
- }[];
17
- doActionTypeOptions: {
18
- label: string;
19
- value: EDoActionType;
20
- }[];
21
- systemPromptTypeOptions: {
22
- label: string;
23
- value: SystemPromptType;
24
- }[];
25
- validTools: IDynamicCriteria[];
26
- formGroup: ConversationFlowFormGroup;
27
- conversationEvents: typeof ConversationEvents;
28
- objectKeys: {
29
- (o: object): string[];
30
- (o: {}): string[];
31
- };
32
- constructor();
33
- ngOnInit(): void;
34
- removeArrayItem(controlPath: string, index: number): void;
35
- showData(): void;
36
- static ɵfac: i0.ɵɵFactoryDeclaration<DCConversationFlowFormComponent, never>;
37
- static ɵcmp: i0.ɵɵComponentDeclaration<DCConversationFlowFormComponent, "dc-conversation-flow-form", never, { "formGroup": { "alias": "formGroup"; "required": false; }; }, {}, never, never, true, never>;
38
- }