@dataclouder/ngx-agent-cards 0.1.45 → 0.1.47

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.
@@ -2293,8 +2293,8 @@ This is the conversation history:
2293
2293
  }
2294
2294
  const conversationContext = this.contextEngineService.getConversationContext(ContextType.AllConversation);
2295
2295
  // TODO change the english!
2296
- const baseLangDesc = getLangDesc(this.userService.user()?.settings.baseLanguage, 'en');
2297
- const targetLangDesc = getLangDesc(this.userService.user()?.settings.targetLanguage, 'en');
2296
+ const baseLangDesc = getLangDesc(this.userService.user()?.settings?.baseLanguage, 'en');
2297
+ const targetLangDesc = getLangDesc(this.userService.user()?.settings?.targetLanguage, 'en');
2298
2298
  let prompt = performanceAnalysisPromptTemplate(baseLangDesc, targetLangDesc);
2299
2299
  prompt += `\n\nHere the user conversation: <Context>${conversationContext}</Context>`;
2300
2300
  this.loadingBarService.showIndeterminate();
@@ -2334,7 +2334,7 @@ class DynamicFlowTaskService {
2334
2334
  this.userService = inject(UserService);
2335
2335
  }
2336
2336
  async evaluateAssistantTaskTrigger(message) {
2337
- const userChatSettings = this.userService.user().settings.conversation?.assistantMessageTask;
2337
+ const userChatSettings = this.userService.user()?.settings?.conversation?.assistantMessageTask;
2338
2338
  if (!userChatSettings) {
2339
2339
  return;
2340
2340
  }
@@ -2363,7 +2363,7 @@ class DynamicFlowTaskService {
2363
2363
  // TODO probably i need a different method for the goal.
2364
2364
  this.evaluationService.evaluateGoal(goal);
2365
2365
  // 2) Run User Trigger Evaluation only if user allows it
2366
- const chatUserSettings = this.userService.user().settings.conversation;
2366
+ const chatUserSettings = this.userService.user()?.settings?.conversation;
2367
2367
  if (chatUserSettings?.userMessageTask) {
2368
2368
  const userTriggerTask = conversationFlow.triggerTasks.onUserMessage;
2369
2369
  // TODO: Siento MUY Forzado el utilizar evaluateConversation, ese es del goal, pero lo quize hacer general!
@@ -2442,7 +2442,7 @@ class ConversationService {
2442
2442
  this.isDestroyedSignal.set(value);
2443
2443
  }
2444
2444
  overrideSettingsByUserSettings(conversationSettings) {
2445
- const userSettings = this.userService.user().settings.conversation;
2445
+ const userSettings = this.userService.user()?.settings?.conversation;
2446
2446
  if (userSettings?.model?.provider) {
2447
2447
  conversationSettings.model = userSettings.model;
2448
2448
  }
@@ -2633,7 +2633,7 @@ class ConversationService {
2633
2633
  this.messagesStateService.clearMessages();
2634
2634
  }
2635
2635
  async getTTSFile(message) {
2636
- const userChatSettings = await this.userService.user().settings.conversation;
2636
+ const userChatSettings = await this.userService.user()?.settings?.conversation;
2637
2637
  const ttsRequest = buildObjectTTSRequest(message, userChatSettings);
2638
2638
  return this.ttsService.getTextAudioFile(ttsRequest);
2639
2639
  }
@@ -3297,8 +3297,8 @@ class MessageOrchestrationService {
3297
3297
  this.messages.set([...messages]);
3298
3298
  this.messageRole.set(role);
3299
3299
  if (role === ChatRole.Assistant) {
3300
- const chatSettings = this.userService.user().settings.conversation;
3301
- if (chatSettings.synthVoice) {
3300
+ const chatSettings = this.userService.user()?.settings?.conversation;
3301
+ if (chatSettings?.synthVoice) {
3302
3302
  this.initializeAudioQueue();
3303
3303
  this.processNextInQueue();
3304
3304
  }
@@ -3855,7 +3855,7 @@ class DCChatComponent {
3855
3855
  this.chatMonitorService = inject(ChatMonitorService);
3856
3856
  this.userService = inject(UserService);
3857
3857
  // 📥 Inputs
3858
- this.chatUserSettings = this.userService.user().settings.conversation; // Default to user data exchange
3858
+ this.chatUserSettings = this.userService.user()?.settings?.conversation; // Default to user data exchange
3859
3859
  this.conversationFlow = null;
3860
3860
  // 📤 Input Signals
3861
3861
  this.parseDict = input({}, ...(ngDevMode ? [{ debugName: "parseDict" }] : []));
@@ -5398,6 +5398,7 @@ class AgentCardListComponent extends EntityBaseListComponent {
5398
5398
  this.customFilters = [];
5399
5399
  this.filterConfig.returnProps = {
5400
5400
  _id: 1,
5401
+ name: 1,
5401
5402
  title: 1,
5402
5403
  assets: 1,
5403
5404
  description: 1,