@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
@@ -1,301 +0,0 @@
1
- import { CloudStorageData, IAssetable, ImgStorageData } from '@dataclouder/ngx-cloud-storage';
2
- import { AudioSpeed, ConversationType, TextEngines } from './conversation-enums';
3
- import { IAIModel, EModelQuality, IManageable } from '@dataclouder/ngx-core';
4
- import { EDoActionType, EDynamicFlowTaskType, SystemPromptType } from '../components/dc-agent-form/form-group.utils';
5
- import { AudioEffectType } from '@dataclouder/ngx-vertex';
6
- export interface Appearance {
7
- generalDescription: string;
8
- physicalDescription: string;
9
- outfit: string;
10
- objects: string;
11
- quirks: string;
12
- }
13
- export interface CharacterCardData {
14
- name: string;
15
- description: string;
16
- scenario?: string;
17
- first_mes?: string;
18
- creator_notes?: string;
19
- mes_example?: string;
20
- alternate_greetings?: string[];
21
- tags?: string[];
22
- system_prompt?: string;
23
- post_history_instructions?: string;
24
- character_version?: string;
25
- extensions?: Record<string, any>;
26
- picture_description?: string;
27
- appearance?: Appearance;
28
- }
29
- export declare const characterCardStringDataDefinition = "\ninterface CharacterCardData {\n name: string; // Character's name\n description: string; // General character description\n scenario: string; // The setting or context where the character exists\n first_mes: string; // First message the character will say\n mes_example: string; // Example of character's typical message/dialogue\n alternate_greetings: string[]; // Array of alternative greeting messages\n tags: string[]; // Array of descriptive tags\n appearance: string; // Physical description including height, build, hair color/style, eye color, skin tone, distinctive marks, clothing style, current outfit\n}";
30
- export interface ICharacterCardDC {
31
- spec?: 'chara_card_v2';
32
- spec_version?: '2_v_dc';
33
- data: CharacterCardData;
34
- }
35
- export interface ITTS {
36
- voice: string;
37
- secondaryVoice?: string;
38
- speed?: AudioSpeed;
39
- speedRate?: number;
40
- }
41
- export interface IAgentMetadata {
42
- isPublished: boolean;
43
- isPublic: any;
44
- authorId: string;
45
- authorEmail: string;
46
- createdAt: Date;
47
- updatedAt: Date;
48
- takenCount: number;
49
- level: number;
50
- }
51
- export interface VoiceTTS {
52
- voice: string;
53
- speedRate?: number;
54
- lang?: string;
55
- effect?: string;
56
- model?: string;
57
- provider?: string;
58
- options?: Record<string, any>;
59
- }
60
- export interface IConversationSettings {
61
- modelQuality?: EModelQuality;
62
- textEngine?: TextEngines;
63
- conversationType?: ConversationType;
64
- tts?: ITTS;
65
- autoStart?: boolean;
66
- messages?: ChatMessage[];
67
- last_prompt?: string;
68
- repeatRecording?: boolean;
69
- model?: IAIModel;
70
- mainVoice?: VoiceTTS;
71
- secondaryVoice?: VoiceTTS;
72
- }
73
- export type IConversationSettingsDTO = Partial<IConversationSettings> & {
74
- returnJson?: boolean;
75
- };
76
- export interface IAgentResponseDTO {
77
- role: ChatRole;
78
- content: string | object;
79
- metadata: {
80
- tokens: {
81
- input: number;
82
- output: number;
83
- total: number;
84
- };
85
- model: string;
86
- processTime: number;
87
- recovered: boolean;
88
- };
89
- }
90
- export interface IAgentAssets {
91
- image?: ImgStorageData;
92
- motion?: CloudStorageData;
93
- bannerImg?: ImgStorageData;
94
- stickers?: Array<ImgStorageData>;
95
- }
96
- export declare enum ConditionType {
97
- Goal = "goal",
98
- Challenges = "challenges",
99
- NumMessages = "numMessages",
100
- Time = "time"
101
- }
102
- export declare const EntityWhatOptions: {
103
- label: string;
104
- value: ConditionType;
105
- }[];
106
- export declare enum ConditionOperator {
107
- LowerThan = "<",
108
- LowerThanOrEqual = "<=",
109
- Equal = "=",
110
- GreaterThanOrEqual = ">=",
111
- GreaterThan = ">"
112
- }
113
- export declare const EntityWhenOptions: {
114
- label: string;
115
- value: ConditionOperator;
116
- }[];
117
- export declare enum EntityThen {
118
- ChangePrompt = "changePrompt"
119
- }
120
- export type DoAction = {
121
- actionType: EDoActionType;
122
- systemPromptType?: SystemPromptType;
123
- dynamicFlowTaskType?: EDynamicFlowTaskType;
124
- prompt?: string;
125
- enabled?: boolean;
126
- };
127
- export interface IDynamicCondition {
128
- what: ConditionType;
129
- when: ConditionOperator;
130
- value: string | number;
131
- do?: DoAction[];
132
- }
133
- export interface IDynamicCriteria {
134
- enabled: boolean;
135
- name: string;
136
- description: string;
137
- emoji?: string;
138
- }
139
- export interface IConversationFlow {
140
- goal: IDynamicFlowTask;
141
- tools?: IDynamicCriteria[];
142
- triggerTasks: Partial<Record<ConversationEvents, IDynamicFlowTask>>;
143
- challenges?: IDynamicCriteria[];
144
- dynamicConditions: IDynamicCondition[];
145
- }
146
- export declare enum EAgentType {
147
- None,
148
- Social = "social",
149
- Character = "character"
150
- }
151
- export interface IAgentCard {
152
- version?: string;
153
- _id?: string;
154
- id?: string;
155
- title?: string;
156
- description?: string;
157
- agentType?: EAgentType;
158
- lang?: string;
159
- assets?: IAssetable;
160
- image?: ImgStorageData;
161
- characterCard?: ICharacterCardDC;
162
- conversationSettings?: IConversationSettings;
163
- metaApp?: IAgentMetadata;
164
- accounts?: Array<IAccounts>;
165
- conversationFlow?: IConversationFlow;
166
- manageable?: IManageable;
167
- }
168
- export interface IAgentCardMeta extends IAgentCard {
169
- taken: any;
170
- }
171
- export declare const EvalResultStringDefinition = "\ninterface SimpleEvalResult {\n score: number; // Score of the user's response 0 to 3\n feedback: string; // Feedback of the user's understanding of the conversation\n}";
172
- export interface SimpleEvalResult {
173
- score: number;
174
- feedback: string;
175
- }
176
- export interface ISimpleAgent {
177
- systemPrompt: string;
178
- model: IAIModel;
179
- }
180
- export interface SimpleAgentTask {
181
- task: string;
182
- modelQuality?: EModelQuality;
183
- expectedResponseType?: string;
184
- systemPrompt?: string;
185
- model?: IAIModel;
186
- enabled?: boolean;
187
- }
188
- export type IDynamicFlowTask = Pick<SimpleAgentTask, 'task' | 'model' | 'enabled'>;
189
- export declare enum EAccountsPlatform {
190
- Tiktok = "tiktok",
191
- Instagram = "instagram",
192
- Youtube = "youtube"
193
- }
194
- export interface IAccounts {
195
- platform: EAccountsPlatform;
196
- user: string;
197
- email: string;
198
- authMethod: string;
199
- pass: string;
200
- }
201
- export type TranscriptionsWhisper = {
202
- text: string;
203
- task: string;
204
- language: string;
205
- words?: any[];
206
- duration: number;
207
- segments?: any[];
208
- };
209
- export declare class WordTimestamps {
210
- word: string;
211
- start: number;
212
- end: number;
213
- highlighted: boolean;
214
- }
215
- export declare class MessageContent {
216
- audioUrl?: string;
217
- audioPromise?: any;
218
- isLoading?: boolean;
219
- transcription?: TranscriptionsWhisper;
220
- transcriptionTimestamps?: WordTimestamps[];
221
- text?: string;
222
- content?: string;
223
- voice?: string;
224
- shouldPlayAudio?: boolean;
225
- messageId?: string;
226
- tag?: string;
227
- ssml?: string;
228
- audioEffect?: AudioEffectType;
229
- }
230
- export declare enum ChatRole {
231
- System = "system",
232
- User = "user",
233
- Assistant = "assistant",
234
- AssistantHelper = "assistantHelper"
235
- }
236
- export declare class ChatMessage extends MessageContent {
237
- role: ChatRole;
238
- translation?: string;
239
- audioHtml?: HTMLAudioElement;
240
- promisePlay?: any;
241
- stats?: any;
242
- multiMessages?: MessageContent[];
243
- evaluation?: Record<string, any>;
244
- tags?: string[];
245
- imgUrl?: string;
246
- generatedImg?: string;
247
- }
248
- export declare class ConversationMessagesDTO {
249
- messages?: ChatMessage[];
250
- modelName?: string;
251
- provider?: string;
252
- type?: ConversationType;
253
- }
254
- export declare class ConversationDTO {
255
- id?: string;
256
- entityId?: string;
257
- type?: ConversationType;
258
- createdAt?: Date;
259
- messages: Array<ChatMessage>;
260
- transcription?: boolean;
261
- modelName?: string;
262
- provider?: string;
263
- returnJson?: boolean;
264
- }
265
- export interface ModelName {
266
- id: string;
267
- name: string;
268
- }
269
- export type AudioGenerated = {
270
- blobUrl: string;
271
- transcription: any;
272
- };
273
- export interface BackgroundTask {
274
- task: SimpleAgentTask;
275
- event: ConversationEvents;
276
- }
277
- export declare enum ConversationEvents {
278
- OnUserMessage = "onUserMessage",
279
- OnAssistantMessage = "onAssistantMessage",
280
- OnGoalCompleted = "onGoalCompleted",
281
- OnInitConversation = "onInitConversation",
282
- OnEndConversation = "onEndConversation"
283
- }
284
- export declare enum ChatEventType {
285
- WordClicked = "wordClicked"
286
- }
287
- export interface ChatEvent<T = any> {
288
- type: ChatEventType;
289
- payload: T;
290
- }
291
- export declare enum ContextType {
292
- CurrentMessageContent = "MessageContent",
293
- LastAssistantMessage = "LastAssistantMessage",
294
- LastUserMessage = "LastUserMessage",
295
- LastMessage = "LastMessage",// Last User + Last Assistant
296
- Last2Messages = "Last2Messages",
297
- Last3Messages = "Last3Messages",
298
- Last4Messages = "Last4Messages",
299
- LastUserAndPreviousAssistant = "LastUserAndPreviousAssistant",
300
- AllConversation = "AllConversation"
301
- }
@@ -1 +0,0 @@
1
- export declare function extractJsonFromResponse(content: string): any;
@@ -1,43 +0,0 @@
1
- import { ChatUserSettings } from '@dataclouder/ngx-core';
2
- export declare const defaultconvUserSettings: ChatUserSettings;
3
- export declare class VoiceTTSOption {
4
- provider: string;
5
- name: string;
6
- id: string;
7
- gender: 'male' | 'female';
8
- lang: string;
9
- exampleUrl: string;
10
- }
11
- export declare const VoiceTTSOptions: VoiceTTSOption[];
12
- export declare enum AudioSpeed {
13
- VerySlow = "verySlow",
14
- Slow = "slow",
15
- Regular = "regular",
16
- Fast = "fast",
17
- VeryFast = "veryFast"
18
- }
19
- export declare enum TextEngines {
20
- SimpleText = "simpleText",
21
- MarkdownMultiMessages = "markdownMultiMessages",
22
- MarkdownSSML = "markdownSSML"
23
- }
24
- export declare const TextEngineOptions: {
25
- value: TextEngines;
26
- label: string;
27
- }[];
28
- export declare enum ConversationType {
29
- Default = "default",
30
- General = "general",
31
- Reflection = "reflection",
32
- Challenge = "challenge",
33
- RolePlay = "rolePlay",
34
- RolePlayNoNarrator = "rolePlayNoNarrator",
35
- RolePlayInnerThoughts = "rolePlayInnerThoughts",
36
- LearningExample = "learningExample",
37
- Scenario = "scenario",
38
- LanguagePractice = "languagePractice"
39
- }
40
- export declare const ConversationTypeOptions: {
41
- value: ConversationType;
42
- label: string;
43
- }[];
@@ -1,2 +0,0 @@
1
- import { ConversationType } from './conversation-enums';
2
- export declare function getDefaultPromptByType(conversationType: ConversationType): string;
@@ -1,15 +0,0 @@
1
- export declare function getCharacterData(file: any): Promise<any>;
2
- /**
3
- * Extracts a JSON object from a PNG file.
4
- * Taken from https://github.com/LostRuins/lite.koboldai.net/blob/main/index.html
5
- * Adapted from png-chunks-extract under MIT license
6
- * @param {Uint8Array} data The PNG data to extract the JSON from.
7
- * @param {string} identifier The identifier to look for in the PNG tEXT data.
8
- * @returns {object} The extracted JSON object.
9
- */
10
- export declare function extractDataFromPng(data: any, identifier?: string): any;
11
- /**
12
- * Returns a promise that resolves to the file's array buffer.
13
- * @param {Blob} file The file to read.
14
- */
15
- export declare function getFileBuffer(file: any): Promise<unknown>;
@@ -1,25 +0,0 @@
1
- import { InjectionToken, Provider, Type } from '@angular/core';
2
- import { ChatUserSettings } from '@dataclouder/ngx-core';
3
- export interface UserDataExchange {
4
- imgUrl: string;
5
- name: string;
6
- gender: string;
7
- age: number;
8
- baseLang?: string;
9
- targetLang?: string;
10
- }
11
- export declare const USER_DATA_EXCHANGE: InjectionToken<UserDataExchangeAbstractService>;
12
- export declare function provideUserDataExchange(serviceImplementation: Type<UserDataExchangeAbstractService>): Provider[];
13
- export declare abstract class UserDataExchangeAbstractService {
14
- abstract getUserDataExchange(): UserDataExchange;
15
- abstract getUserDataDescriptions(): {
16
- key: string;
17
- value: any;
18
- description: string;
19
- }[];
20
- abstract getParseDict(): {
21
- [key: string]: string;
22
- };
23
- abstract getUserChatSettings(): ChatUserSettings;
24
- abstract getUserDataInformation(): string;
25
- }
@@ -1,7 +0,0 @@
1
- import { PipeTransform } from '@angular/core';
2
- import * as i0 from "@angular/core";
3
- export declare class FormatKeyPipe implements PipeTransform {
4
- transform(value: string): string;
5
- static ɵfac: i0.ɵɵFactoryDeclaration<FormatKeyPipe, never>;
6
- static ɵpipe: i0.ɵɵPipeDeclaration<FormatKeyPipe, "formatKey", true>;
7
- }
@@ -1,10 +0,0 @@
1
- import { PipeTransform } from '@angular/core';
2
- import { IAgentCard } from '../models/agent.models';
3
- import * as i0 from "@angular/core";
4
- export declare class ParseCardPipe implements PipeTransform {
5
- private userDataExchange;
6
- private builderConversation;
7
- transform(text: string, card?: IAgentCard): string;
8
- static ɵfac: i0.ɵɵFactoryDeclaration<ParseCardPipe, never>;
9
- static ɵpipe: i0.ɵɵPipeDeclaration<ParseCardPipe, "parseCard", true>;
10
- }
@@ -1,15 +0,0 @@
1
- import { PipeTransform } from '@angular/core';
2
- import * as i0 from "@angular/core";
3
- /**
4
- * SafeJsonPipe - A pipe that safely stringifies objects with circular references
5
- * This pipe handles circular references and DOM objects that can't be serialized
6
- */
7
- export declare class SafeJsonPipe implements PipeTransform {
8
- transform(value: any): string;
9
- /**
10
- * Safely stringify an object, handling circular references
11
- */
12
- private stringifySafely;
13
- static ɵfac: i0.ɵɵFactoryDeclaration<SafeJsonPipe, never>;
14
- static ɵpipe: i0.ɵɵPipeDeclaration<SafeJsonPipe, "safeJson", true>;
15
- }
@@ -1,18 +0,0 @@
1
- import { PipeTransform } from '@angular/core';
2
- import * as i0 from "@angular/core";
3
- export declare function markdownToHTML(markdownText: any): any;
4
- export declare class SimpleMdToHtmlPipe implements PipeTransform {
5
- transform(text: string): string;
6
- static ɵfac: i0.ɵɵFactoryDeclaration<SimpleMdToHtmlPipe, never>;
7
- static ɵpipe: i0.ɵɵPipeDeclaration<SimpleMdToHtmlPipe, "simpleMdToHtml", true>;
8
- }
9
- export declare class StartDivToHtmlPipe implements PipeTransform {
10
- transform(text: string): string;
11
- static ɵfac: i0.ɵɵFactoryDeclaration<StartDivToHtmlPipe, never>;
12
- static ɵpipe: i0.ɵɵPipeDeclaration<StartDivToHtmlPipe, "startDividerToHtml", true>;
13
- }
14
- export declare class MdToHtmlArrayPipe implements PipeTransform {
15
- transform(text: string): string;
16
- static ɵfac: i0.ɵɵFactoryDeclaration<MdToHtmlArrayPipe, never>;
17
- static ɵpipe: i0.ɵɵPipeDeclaration<MdToHtmlArrayPipe, "mdToHtmlArray", true>;
18
- }
@@ -1,14 +0,0 @@
1
- import { PipeTransform } from '@angular/core';
2
- import * as i0 from "@angular/core";
3
- export declare const SpeedDescription: {
4
- 1: string;
5
- 2: string;
6
- 3: string;
7
- 4: string;
8
- 5: string;
9
- };
10
- export declare class SpeedDescPipe implements PipeTransform {
11
- transform(speed: any): string;
12
- static ɵfac: i0.ɵɵFactoryDeclaration<SpeedDescPipe, never>;
13
- static ɵpipe: i0.ɵɵPipeDeclaration<SpeedDescPipe, "speedDisplay", true>;
14
- }
@@ -1,7 +0,0 @@
1
- import { PipeTransform } from '@angular/core';
2
- import * as i0 from "@angular/core";
3
- export declare class TruncatePipe implements PipeTransform {
4
- transform(value: string, length?: number, suffix?: string): string;
5
- static ɵfac: i0.ɵɵFactoryDeclaration<TruncatePipe, never>;
6
- static ɵpipe: i0.ɵɵPipeDeclaration<TruncatePipe, "truncate", true>;
7
- }
@@ -1,2 +0,0 @@
1
- export declare const getMoodStateLabelsAsString: () => string;
2
- export declare const MOOD_STATE_PROMPT: string;
@@ -1,38 +0,0 @@
1
- export type EvaluationLevel = 1 | 2 | 3 | 4 | 5;
2
- export type CommunicationLevel = 'Beginner' | 'Intermediate' | 'Advanced' | 'Native-like';
3
- export type DominantRegister = 'formal' | 'informal' | 'mixed';
4
- export type ConversationType = 'casual' | 'academic' | 'professional' | 'social';
5
- export interface OverallScore {
6
- rating: number;
7
- level: EvaluationLevel;
8
- }
9
- export interface Assessment {
10
- score: number;
11
- level: EvaluationLevel | CommunicationLevel;
12
- feedback: string;
13
- suggestions: string[];
14
- }
15
- export interface Assessments {
16
- grammar: Assessment;
17
- vocabulary: Assessment;
18
- communication_effectiveness: Assessment;
19
- pragmatic_competence: Assessment;
20
- }
21
- export interface ConversationAnalysis {
22
- dominant_register: DominantRegister;
23
- conversation_type: ConversationType;
24
- key_observations: string[];
25
- notable_patterns: string[];
26
- }
27
- export interface ActionableFeedback {
28
- immediate_focus_areas: string[];
29
- practice_recommendations: string[];
30
- next_steps: string[];
31
- }
32
- export interface PerformanceEvaluation {
33
- overall_score: OverallScore;
34
- assessments: Assessments;
35
- conversation_analysis: ConversationAnalysis;
36
- actionable_feedback: ActionableFeedback;
37
- }
38
- export declare const performanceAnalysisPromptTemplate: (language: string) => string;
@@ -1,10 +0,0 @@
1
- import { ChatMessage } from '../models/agent.models';
2
- import * as i0 from "@angular/core";
3
- export declare class AIGenerationService {
4
- private vertexService;
5
- private messagesStateService;
6
- private conversationService;
7
- generateImage(chatMessage: ChatMessage, chatText: string): Promise<string>;
8
- static ɵfac: i0.ɵɵFactoryDeclaration<AIGenerationService, never>;
9
- static ɵprov: i0.ɵɵInjectableDeclaration<AIGenerationService>;
10
- }
@@ -1,27 +0,0 @@
1
- import * as i0 from "@angular/core";
2
- export declare class AudioService {
3
- private currentAudio;
4
- playFinishRecordingAudio(): void;
5
- playFinishRecordingAudio2(): void;
6
- playReflectionAudio(): void;
7
- playAudio(audioUrl: string): HTMLAudioElement;
8
- stopAudio(): void;
9
- private successAudio;
10
- private mistakeAudio;
11
- private writtngAudio;
12
- private coinAudio;
13
- private noValid;
14
- constructor();
15
- playSuccess(): void;
16
- playNoValid(): void;
17
- playMistake(): Promise<void>;
18
- playWriting(): void;
19
- playCoins(n: number): void;
20
- play2Coins(): Promise<void>;
21
- play3Coins(): Promise<void>;
22
- playWithSrc(source: any): Promise<void>;
23
- getSpeedRate(speed: any): number;
24
- playAudioWithStoragePath(path: string): Promise<void>;
25
- static ɵfac: i0.ɵɵFactoryDeclaration<AudioService, never>;
26
- static ɵprov: i0.ɵɵInjectableDeclaration<AudioService>;
27
- }
@@ -1,10 +0,0 @@
1
- import { MessageContent } from '../models/agent.models';
2
- import * as i0 from "@angular/core";
3
- export declare class ChatMonitorService {
4
- constructor();
5
- private readonly messageAudioWillPlay;
6
- readonly messageAudioWillPlay$: import("@angular/core").Signal<MessageContent>;
7
- logMessageAudioWillPlay(message: MessageContent): void;
8
- static ɵfac: i0.ɵɵFactoryDeclaration<ChatMonitorService, never>;
9
- static ɵprov: i0.ɵɵInjectableDeclaration<ChatMonitorService>;
10
- }
@@ -1,16 +0,0 @@
1
- import { ContextType, ChatMessage } from '../models/agent.models';
2
- import * as i0 from "@angular/core";
3
- export declare class ContextEngineService {
4
- private messagesStateSvc;
5
- private userService;
6
- getUserData(): string;
7
- getEntityContext<T extends {
8
- id: string;
9
- name: string;
10
- description?: string;
11
- }>(entity: T): any;
12
- getConversationContext(contextType: ContextType): string;
13
- getContextMessages(contextType: ContextType): ChatMessage[];
14
- static ɵfac: i0.ɵɵFactoryDeclaration<ContextEngineService, never>;
15
- static ɵprov: i0.ɵɵInjectableDeclaration<ContextEngineService>;
16
- }
@@ -1,34 +0,0 @@
1
- import * as i0 from "@angular/core";
2
- export interface ITokenUsage {
3
- input: number;
4
- output: number;
5
- total: number;
6
- }
7
- export interface ITagCost {
8
- tokenUsage: ITokenUsage;
9
- apiCalls: number;
10
- }
11
- export declare class ConversationCostService {
12
- private usageByTagSignal;
13
- totalInputTokens: import("@angular/core").Signal<number>;
14
- totalOutputTokens: import("@angular/core").Signal<number>;
15
- totalTokens: import("@angular/core").Signal<number>;
16
- totalApiCalls: import("@angular/core").Signal<number>;
17
- totalInputCost: import("@angular/core").Signal<number>;
18
- totalOutputCost: import("@angular/core").Signal<number>;
19
- totalCost: import("@angular/core").Signal<number>;
20
- usageByTag: import("@angular/core").Signal<Record<string, ITagCost>>;
21
- updateTokenUsage(tokens: ITokenUsage, tag: string): void;
22
- getCostForTag(tag: string): import("@angular/core").Signal<{
23
- inputTokens: number;
24
- outputTokens: number;
25
- totalTokens: number;
26
- apiCalls: number;
27
- inputCost: number;
28
- outputCost: number;
29
- totalCost: number;
30
- }>;
31
- reset(): void;
32
- static ɵfac: i0.ɵɵFactoryDeclaration<ConversationCostService, never>;
33
- static ɵprov: i0.ɵɵInjectableDeclaration<ConversationCostService>;
34
- }
@@ -1,12 +0,0 @@
1
- import { IAgentCard } from '../models/agent.models';
2
- import { ChatUserSettings } from '@dataclouder/ngx-core';
3
- import * as i0 from "@angular/core";
4
- export declare class ConversationInfoService {
5
- private dialogService;
6
- openConversationInfo(data: {
7
- agentCard: IAgentCard;
8
- chatUserSettings: ChatUserSettings;
9
- }): void;
10
- static ɵfac: i0.ɵɵFactoryDeclaration<ConversationInfoService, never>;
11
- static ɵprov: i0.ɵɵInjectableDeclaration<ConversationInfoService>;
12
- }