@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.
@@ -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
- /** Inserted by Angular inject() migration for backwards compatibility */
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 loadConversationCards;
29
+ private findAgentCards;
30
30
  getAllConversationCards(): Promise<IAgentCard[]>;
31
31
  goToDetails(action: {
32
32
  action: string;
@@ -44,6 +44,7 @@ export interface IAgentMetadata {
44
44
  createdAt: Date;
45
45
  updatedAt: Date;
46
46
  takenCount: number;
47
+ level: number;
47
48
  }
48
49
  export interface IConversationSettings {
49
50
  textEngine?: TextEngines;
@@ -1,10 +1,10 @@
1
- import { AgentCardsAbstractService } from '../models/conversation-ai.class';
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dataclouder/ngx-agent-cards",
3
- "version": "0.1.23",
3
+ "version": "0.1.24",
4
4
  "peerDependencies": {
5
5
  "@angular/common": ">=18.0.0",
6
6
  "@angular/core": ">=18.0.0",
package/public-api.d.ts CHANGED
@@ -1,11 +1,12 @@
1
1
  export * from './lib/models/agent.models';
2
- export * from './lib/models/conversation-ai.class';
2
+ export * from './lib/models/agent-card-abstract.model';
3
3
  export * from './lib/models/conversation-enums';
4
- export * from './lib/models/conversation-ai.class';
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';