@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.
- package/fesm2022/dataclouder-ngx-agent-cards.mjs +269 -330
- package/fesm2022/dataclouder-ngx-agent-cards.mjs.map +1 -1
- package/index.d.ts +1080 -3
- package/package.json +1 -1
- package/lib/components/chat-container/chat-container.component.d.ts +0 -48
- package/lib/components/chat-container/chat-footer/chat-footer.component.d.ts +0 -57
- package/lib/components/chat-container/chat-header/chat-header.component.d.ts +0 -23
- package/lib/components/chat-container/chat-messages-list/chat-message/chat-message-orchestrator/message-content-displayer/extract-tags.d.ts +0 -4
- package/lib/components/chat-container/chat-messages-list/chat-message/chat-message-orchestrator/message-content-displayer/message-content-displayer.d.ts +0 -49
- package/lib/components/chat-container/chat-messages-list/chat-message/chat-message-orchestrator/message-orchestrator.component.d.ts +0 -15
- package/lib/components/chat-container/chat-messages-list/chat-message/chat-message.component.d.ts +0 -20
- package/lib/components/chat-container/chat-messages-list/chat-message/chat-message.utils.d.ts +0 -6
- package/lib/components/chat-container/chat-messages-list/chat-messages-list.component.d.ts +0 -18
- package/lib/components/chat-container/chat-settings/dc-conversation-userchat-settings.component.d.ts +0 -51
- package/lib/components/conversation-info/conversation-inspector.d.ts +0 -24
- package/lib/components/cost-details/cost-details.component.d.ts +0 -16
- package/lib/components/dc-agent-card-details/dc-agent-card-details.component.d.ts +0 -19
- package/lib/components/dc-agent-card-lists/agent-card-default-ui/agent-card-default-ui.component.d.ts +0 -25
- package/lib/components/dc-agent-card-lists/dc-agent-card-lists.component.d.ts +0 -25
- package/lib/components/dc-agent-form/account-platform/account-platform-form.component.d.ts +0 -20
- package/lib/components/dc-agent-form/agent-task-form/agent-task-form.component.d.ts +0 -20
- package/lib/components/dc-agent-form/dc-agent-card-form.component.d.ts +0 -81
- package/lib/components/dc-agent-form/dc-character-card-form/dc-character-card-form.component.d.ts +0 -28
- package/lib/components/dc-agent-form/dc-conversation-flow-form/dc-conversation-flow-form.component.d.ts +0 -38
- package/lib/components/dc-agent-form/dc-conversation-settings-form/dc-conversation-settings-form.component.d.ts +0 -16
- package/lib/components/dc-agent-form/dc-do-action-form/dc-do-action-form.component.d.ts +0 -29
- package/lib/components/dc-agent-form/dc-dynamic-conditions-form/dc-dynamic-conditions-form.component.d.ts +0 -25
- package/lib/components/dc-agent-form/dc-dynamic-criteria-form/dc-dynamic-criteria-form.component.d.ts +0 -19
- package/lib/components/dc-agent-form/dc-manageable-form/dc-manageable-form.component.d.ts +0 -11
- package/lib/components/dc-agent-form/dc-voice-tts-form/dc-voice-tts-form.component.d.ts +0 -12
- package/lib/components/dc-agent-form/form-definition.service.d.ts +0 -81
- package/lib/components/dc-agent-form/form-group.utils.d.ts +0 -99
- package/lib/components/feedback-evaluation/feedback-evaluation.component.d.ts +0 -15
- package/lib/components/prompt-preview-dialog/prompt-conversation-types-dialog.d.ts +0 -18
- package/lib/components/prompt-preview-dialog/prompt-preview-dialog.component.d.ts +0 -11
- package/lib/components/provider-selector/provider-selector.component.d.ts +0 -60
- package/lib/components/translate-dialog/translate-dialog.component.d.ts +0 -20
- package/lib/models/agent-card-abstract.model.d.ts +0 -5
- package/lib/models/agent.models.d.ts +0 -301
- package/lib/models/agent.utils.d.ts +0 -1
- package/lib/models/conversation-enums.d.ts +0 -43
- package/lib/models/conversation-prompts.d.ts +0 -2
- package/lib/models/stavernUtils.d.ts +0 -15
- package/lib/models/user-data-exchange.d.ts +0 -25
- package/lib/pipes/format-key.pipe.d.ts +0 -7
- package/lib/pipes/parse-card.pipe.d.ts +0 -10
- package/lib/pipes/safe-json.pipe.d.ts +0 -15
- package/lib/pipes/scenario.pipe.d.ts +0 -18
- package/lib/pipes/speed.pipe.d.ts +0 -14
- package/lib/pipes/truncate.pipe.d.ts +0 -7
- package/lib/prompts/dynamic-criteria.prompts.d.ts +0 -2
- package/lib/prompts/evaluation-performance-prompt.d.ts +0 -38
- package/lib/services/ai-generation.service.d.ts +0 -10
- package/lib/services/audio.service.d.ts +0 -27
- package/lib/services/chat-monitor.service.d.ts +0 -10
- package/lib/services/context-engine.service.d.ts +0 -16
- package/lib/services/conversation-cost.service.d.ts +0 -34
- package/lib/services/conversation-info.service.d.ts +0 -12
- package/lib/services/conversation.service.d.ts +0 -67
- package/lib/services/cost-details.service.d.ts +0 -7
- package/lib/services/dc-conversation-builder.service.d.ts +0 -29
- package/lib/services/default-agent-service.d.ts +0 -25
- package/lib/services/dynamic-criteria.service.d.ts +0 -13
- package/lib/services/dynamic-flow-task.service.d.ts +0 -16
- package/lib/services/dynamic-flow.service.d.ts +0 -15
- package/lib/services/evaluation.service.d.ts +0 -36
- package/lib/services/global-tools.service.d.ts +0 -7
- package/lib/services/message-orchestration.service.d.ts +0 -29
- package/lib/services/message-processing.service.d.ts +0 -15
- package/lib/services/messages-state.service.d.ts +0 -12
- package/lib/services/popup.service.d.ts +0 -41
- package/lib/utils/icons/extraction.regex.d.ts +0 -9
- package/lib/utils/icons/icon-map.d.ts +0 -6
- package/lib/utils/icons/icons.component.d.ts +0 -15
- package/public-api.d.ts +0 -32
|
@@ -1,67 +0,0 @@
|
|
|
1
|
-
import { Signal } from '@angular/core';
|
|
2
|
-
import { WordData } from '../services/popup.service';
|
|
3
|
-
import { AudioGenerated, ChatMessage, IAgentCard, IConversationFlow, IConversationSettings, MessageContent } from '../models/agent.models';
|
|
4
|
-
import * as i0 from "@angular/core";
|
|
5
|
-
export declare class ConversationService {
|
|
6
|
-
private defaultAgentCardService;
|
|
7
|
-
private ttsService;
|
|
8
|
-
private toastAlerts;
|
|
9
|
-
private messageProcessingService;
|
|
10
|
-
private conversationBuilder;
|
|
11
|
-
private userDataExchange;
|
|
12
|
-
private messagesStateService;
|
|
13
|
-
private dynamicFlowService;
|
|
14
|
-
private dynamicCriteriaService;
|
|
15
|
-
private dynamicFlowTaskService;
|
|
16
|
-
private isThinkingSignal;
|
|
17
|
-
private conversationSettingsState;
|
|
18
|
-
private isDestroyedSignal;
|
|
19
|
-
micStatusSignal: import("@angular/core").WritableSignal<"ready" | "recording" | "listening" | "initializing" | "inactive" | "error" | "paused">;
|
|
20
|
-
currentAudioStatus: import("@angular/core").WritableSignal<{
|
|
21
|
-
message: MessageContent;
|
|
22
|
-
completed: boolean;
|
|
23
|
-
}>;
|
|
24
|
-
private wordClickedSignal;
|
|
25
|
-
private agentCardSignal;
|
|
26
|
-
agentCard$: Signal<IAgentCard>;
|
|
27
|
-
private avatarImages;
|
|
28
|
-
/**
|
|
29
|
-
* Notifies subscribers that a word has been clicked in a message.
|
|
30
|
-
* @param wordData The data associated with the clicked word.
|
|
31
|
-
*/
|
|
32
|
-
notifyWordClicked(wordData: WordData): void;
|
|
33
|
-
/**
|
|
34
|
-
* Gets the signal that emits when a word is clicked.
|
|
35
|
-
* @returns A signal emitting WordData or null.
|
|
36
|
-
*/
|
|
37
|
-
getWordClickedSignal(): Signal<WordData | null>;
|
|
38
|
-
createNewUserMessage(): string;
|
|
39
|
-
isThinking(): Signal<boolean>;
|
|
40
|
-
setDestroyed(value: boolean): void;
|
|
41
|
-
private overrideSettingsByUserSettings;
|
|
42
|
-
setupConversationWithAgentCard(agentCard: IAgentCard, parseDict?: {
|
|
43
|
-
[key: string]: string;
|
|
44
|
-
}, appConversationFlow?: IConversationFlow): void;
|
|
45
|
-
initConversationWithSettings(conversationSettings: IConversationSettings, conversationFlow: IConversationFlow): Promise<void>;
|
|
46
|
-
private initConversation;
|
|
47
|
-
initConversationWithAgentCard(agentCard: IAgentCard, parseDict?: {
|
|
48
|
-
[key: string]: string;
|
|
49
|
-
}, appConversationFlow?: IConversationFlow): Promise<void>;
|
|
50
|
-
/**
|
|
51
|
-
* Sends a user message, processes it, adds it to the conversation,
|
|
52
|
-
* and triggers the AI response flow.
|
|
53
|
-
* @param message The initial ChatMessage object from the user.
|
|
54
|
-
* @param updateId Optional ID if this message should update an existing one (e.g., transcription added).
|
|
55
|
-
* @param updateId Optional ID if this message should update an existing one (e.g., transcription added).
|
|
56
|
-
* @returns A promise resolving to an object containing the user message ID and the assistant message ID (or null if an error occurred).
|
|
57
|
-
*/
|
|
58
|
-
prepareUserMsnAndSend(message: ChatMessage, updateId?: string | null): Promise<{
|
|
59
|
-
userMessageId: string;
|
|
60
|
-
assistantMessageId: string | null;
|
|
61
|
-
} | null>;
|
|
62
|
-
requestAssistantConversationResponse(): Promise<string | null>;
|
|
63
|
-
resetConversation(agentCard?: IAgentCard): Promise<void>;
|
|
64
|
-
getTTSFile(message: MessageContent): Promise<AudioGenerated>;
|
|
65
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<ConversationService, never>;
|
|
66
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<ConversationService>;
|
|
67
|
-
}
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import { ChatMessage, IConversationSettings, IAgentCard } from '../models/agent.models';
|
|
2
|
-
import * as i0 from "@angular/core";
|
|
3
|
-
export declare class ConversationPromptBuilderService {
|
|
4
|
-
private userDataExchange;
|
|
5
|
-
buildConversationSettings(agentCard: IAgentCard, parseDict?: {
|
|
6
|
-
[key: string]: string;
|
|
7
|
-
}): IConversationSettings;
|
|
8
|
-
buildConversationMessages(agentCard: IAgentCard, parseDict?: {
|
|
9
|
-
[key: string]: string;
|
|
10
|
-
}): ChatMessage[];
|
|
11
|
-
private getDefaultParseDict;
|
|
12
|
-
getDefaultCardParseDict(card: IAgentCard): {
|
|
13
|
-
[key: string]: string;
|
|
14
|
-
};
|
|
15
|
-
convertConversationToHtml(messages: ChatMessage[], jailBrake?: string): string;
|
|
16
|
-
private parseConversation;
|
|
17
|
-
applyReplacements(text: string, replacements: {
|
|
18
|
-
[key: string]: string;
|
|
19
|
-
}): string;
|
|
20
|
-
private buildInitialConversation;
|
|
21
|
-
private selectOneRandomGreeting;
|
|
22
|
-
private sampleSize;
|
|
23
|
-
getJailBrakePrompt(conversation: IAgentCard, parseDict?: {
|
|
24
|
-
[key: string]: string;
|
|
25
|
-
}): string;
|
|
26
|
-
getConversationSettings(agent: IAgentCard, chatMessages: ChatMessage[], jailBrakePrompt: string): IConversationSettings;
|
|
27
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<ConversationPromptBuilderService, never>;
|
|
28
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<ConversationPromptBuilderService>;
|
|
29
|
-
}
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import { IConversationSettingsDTO, IAgentResponseDTO, IAgentCard, ModelName, TranscriptionsWhisper } from '../models/agent.models';
|
|
2
|
-
import { FiltersConfig, IFilterQueryResponse, ChatUserSettings, IAIModel, EntityCommunicationService } from '@dataclouder/ngx-core';
|
|
3
|
-
import * as i0 from "@angular/core";
|
|
4
|
-
export declare class DefaultAgentCardsService extends EntityCommunicationService<IAgentCard> {
|
|
5
|
-
private conversationCostService;
|
|
6
|
-
constructor();
|
|
7
|
-
partialUpdateAgentCard(agentCard: IAgentCard): Promise<IAgentCard>;
|
|
8
|
-
generateMainImage(idCard: string): Promise<any>;
|
|
9
|
-
completeAgentCard(idCard: string): Promise<any>;
|
|
10
|
-
callChatCompletion(conversation: IConversationSettingsDTO, tag?: string): Promise<IAgentResponseDTO>;
|
|
11
|
-
filterConversationCards(filters: FiltersConfig): Promise<IFilterQueryResponse<IAgentCard>>;
|
|
12
|
-
getAllConversationCards(): Promise<IAgentCard[]>;
|
|
13
|
-
findFilteredAgentCards(paginator: FiltersConfig): Promise<IFilterQueryResponse<IAgentCard>>;
|
|
14
|
-
findAgentCardByTitle(title: string): Promise<IAgentCard>;
|
|
15
|
-
remove(id: string): Promise<void>;
|
|
16
|
-
getConversationUserChatSettings(): Promise<ChatUserSettings>;
|
|
17
|
-
getListModels(provider: string): Promise<ModelName[]>;
|
|
18
|
-
translateConversation(currentLang: string, targetLang: string, id: string): Promise<ChatUserSettings>;
|
|
19
|
-
getAudioTranscriptions(audio: Blob, options: unknown): Promise<TranscriptionsWhisper>;
|
|
20
|
-
callInstruction(prompt: string, model: IAIModel): Promise<IAgentResponseDTO>;
|
|
21
|
-
saveConversationUserChatSettings(settings: ChatUserSettings): Promise<ChatUserSettings>;
|
|
22
|
-
generateImageForCard(idCard: string): Promise<any>;
|
|
23
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<DefaultAgentCardsService, never>;
|
|
24
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<DefaultAgentCardsService>;
|
|
25
|
-
}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import * as i0 from "@angular/core";
|
|
2
|
-
export declare class DynamicCriteriaService {
|
|
3
|
-
private dynamicFlowService;
|
|
4
|
-
private contextEngineService;
|
|
5
|
-
private defaultAgentCardService;
|
|
6
|
-
private globalToolsService;
|
|
7
|
-
private messageState;
|
|
8
|
-
evaluateUsingTools(): Promise<void>;
|
|
9
|
-
getMoodEmoji(mood: string): string | undefined;
|
|
10
|
-
evaluateMoodState(): Promise<string[]>;
|
|
11
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<DynamicCriteriaService, never>;
|
|
12
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<DynamicCriteriaService>;
|
|
13
|
-
}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { ChatMessage } from '../models/agent.models';
|
|
2
|
-
import * as i0 from "@angular/core";
|
|
3
|
-
export type EvaluationJson = {
|
|
4
|
-
text: string;
|
|
5
|
-
score: number;
|
|
6
|
-
};
|
|
7
|
-
export declare class DynamicFlowTaskService {
|
|
8
|
-
private dynamicFlowService;
|
|
9
|
-
private evaluationService;
|
|
10
|
-
private messagesStateService;
|
|
11
|
-
private userDataExchange;
|
|
12
|
-
evaluateAssistantTaskTrigger(message: ChatMessage): Promise<void>;
|
|
13
|
-
evaluateUserTaskTrigger(message: ChatMessage): Promise<void>;
|
|
14
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<DynamicFlowTaskService, never>;
|
|
15
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<DynamicFlowTaskService>;
|
|
16
|
-
}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { DoAction, IConversationFlow, IDynamicCondition } from '../models/agent.models';
|
|
2
|
-
import * as i0 from "@angular/core";
|
|
3
|
-
export declare class DynamicFlowService {
|
|
4
|
-
private messagesStateService;
|
|
5
|
-
conversationFlowState: import("@angular/core").WritableSignal<IConversationFlow>;
|
|
6
|
-
setConversationFlow(conversationFlow: IConversationFlow): void;
|
|
7
|
-
changePrompt(): void;
|
|
8
|
-
applyConditionChange(condition: IDynamicCondition): void;
|
|
9
|
-
changeDynamicFlowTask(action: DoAction): void;
|
|
10
|
-
doActionPrompt(action: DoAction): void;
|
|
11
|
-
removeSystemPrompts(): void;
|
|
12
|
-
checkDynamicConditions(previousScore: number, currentScore: number): void;
|
|
13
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<DynamicFlowService, never>;
|
|
14
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<DynamicFlowService>;
|
|
15
|
-
}
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
import { IDynamicFlowTask, SimpleAgentTask } from '../models/agent.models';
|
|
2
|
-
import { ContextType } from '../models/agent.models';
|
|
3
|
-
import { PerformanceEvaluation } from '../prompts/evaluation-performance-prompt';
|
|
4
|
-
import * as i0 from "@angular/core";
|
|
5
|
-
export interface IEvaluationResponse {
|
|
6
|
-
text: string;
|
|
7
|
-
score: number;
|
|
8
|
-
}
|
|
9
|
-
export declare class EvaluationService {
|
|
10
|
-
private defaultAgentCardService;
|
|
11
|
-
private toastService;
|
|
12
|
-
private dynamicFlowService;
|
|
13
|
-
private contextEngineService;
|
|
14
|
-
private dialogService;
|
|
15
|
-
private loadingBarService;
|
|
16
|
-
scoreSignal: import("@angular/core").WritableSignal<number>;
|
|
17
|
-
private evaluationResultSignal;
|
|
18
|
-
evaluateGoal(goalTask: IDynamicFlowTask): Promise<any>;
|
|
19
|
-
evaluateConversation(task: SimpleAgentTask, contextType?: ContextType): Promise<IEvaluationResponse>;
|
|
20
|
-
/**
|
|
21
|
-
* Diference with evaluateConversation is task is already processed here.
|
|
22
|
-
* Evaluates a conversation context based on a specific task and attaches the result to a designated message.
|
|
23
|
-
* @param agentTask The task definition for the evaluation.
|
|
24
|
-
* @param messageToUpdate The specific ChatMessage object (user or assistant) to attach the evaluation results to.
|
|
25
|
-
* @param contextType Determines which part of the conversation history to send as context (default: AllConversation).
|
|
26
|
-
* @returns The JSON result of the evaluation.
|
|
27
|
-
*/
|
|
28
|
-
evaluateWithTask(agentTask: IDynamicFlowTask): Promise<any>;
|
|
29
|
-
updateScore(additionalScore: number): void;
|
|
30
|
-
setScore(newScore: number): void;
|
|
31
|
-
resetScore(): void;
|
|
32
|
-
analylizePerformance(): Promise<any>;
|
|
33
|
-
openFeedbackEvaluation(data?: PerformanceEvaluation): void;
|
|
34
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<EvaluationService, never>;
|
|
35
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<EvaluationService>;
|
|
36
|
-
}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import * as i0 from "@angular/core";
|
|
2
|
-
export declare class GlobalToolsService {
|
|
3
|
-
useTool(tool: string, ...args: any[]): Promise<any>;
|
|
4
|
-
getAvailibleTools(): string;
|
|
5
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<GlobalToolsService, never>;
|
|
6
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<GlobalToolsService>;
|
|
7
|
-
}
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import { ChatRole, MessageContent } from '../models/agent.models';
|
|
2
|
-
import { WordData } from './popup.service';
|
|
3
|
-
import * as i0 from "@angular/core";
|
|
4
|
-
export declare class MessageOrchestrationService {
|
|
5
|
-
private conversationService;
|
|
6
|
-
private userDataExchange;
|
|
7
|
-
private chatMonitorService;
|
|
8
|
-
private messages;
|
|
9
|
-
private messageRole;
|
|
10
|
-
private messageToPlay;
|
|
11
|
-
messagesSignal: import("@angular/core").Signal<MessageContent[]>;
|
|
12
|
-
messageToPlay$: import("@angular/core").Signal<MessageContent>;
|
|
13
|
-
private audioQueue;
|
|
14
|
-
private isGenerating;
|
|
15
|
-
private currentPlayingIndex;
|
|
16
|
-
private preGenerationInProgress;
|
|
17
|
-
constructor();
|
|
18
|
-
startOrchestration(messages: MessageContent[], role: ChatRole): void;
|
|
19
|
-
audioCompleted(message: MessageContent): void;
|
|
20
|
-
wordClicked(wordData: WordData): void;
|
|
21
|
-
private initializeAudioQueue;
|
|
22
|
-
private processNextInQueue;
|
|
23
|
-
private preGenerateNextIfNeeded;
|
|
24
|
-
private generateAudioForIndex;
|
|
25
|
-
private changeStates;
|
|
26
|
-
private generateAudio;
|
|
27
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<MessageOrchestrationService, never>;
|
|
28
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<MessageOrchestrationService>;
|
|
29
|
-
}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { ChatMessage, IConversationSettings } from '../models/agent.models';
|
|
2
|
-
import * as i0 from "@angular/core";
|
|
3
|
-
interface ExtraData {
|
|
4
|
-
userImg: string;
|
|
5
|
-
assistantImg: string;
|
|
6
|
-
}
|
|
7
|
-
export declare class MessageProcessingService {
|
|
8
|
-
processMessage(message: ChatMessage, conversationSettings: IConversationSettings, extraData?: ExtraData): ChatMessage;
|
|
9
|
-
private processMultiMessages;
|
|
10
|
-
subsItalicsByTag(text: string, voiceId?: string, tagName?: string): string;
|
|
11
|
-
getVoice(voice_value: string, targetLang?: string): string;
|
|
12
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<MessageProcessingService, never>;
|
|
13
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<MessageProcessingService>;
|
|
14
|
-
}
|
|
15
|
-
export {};
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { Signal } from '@angular/core';
|
|
2
|
-
import { ChatMessage } from '../models/agent.models';
|
|
3
|
-
import * as i0 from "@angular/core";
|
|
4
|
-
export declare class MessagesStateService {
|
|
5
|
-
private messagesSignal;
|
|
6
|
-
getMessagesSignal(): Signal<ChatMessage[]>;
|
|
7
|
-
addMessage(message: ChatMessage): string;
|
|
8
|
-
updateMessage(messageId: string, updatedMessage: Partial<ChatMessage>, insertIfNotFound?: boolean): boolean;
|
|
9
|
-
clearMessages(): void;
|
|
10
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<MessagesStateService, never>;
|
|
11
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<MessagesStateService>;
|
|
12
|
-
}
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
import { Injector, Type, WritableSignal } from '@angular/core';
|
|
2
|
-
import * as i0 from "@angular/core";
|
|
3
|
-
export interface WordData {
|
|
4
|
-
word: string;
|
|
5
|
-
index: number;
|
|
6
|
-
messageId: string;
|
|
7
|
-
}
|
|
8
|
-
export declare class PopupService {
|
|
9
|
-
private renderer;
|
|
10
|
-
private document;
|
|
11
|
-
private rendererFactory;
|
|
12
|
-
private appRef;
|
|
13
|
-
private injector;
|
|
14
|
-
private environmentInjector;
|
|
15
|
-
private currentPopupContainer;
|
|
16
|
-
private currentComponentRef;
|
|
17
|
-
readonly selectedWord: WritableSignal<WordData>;
|
|
18
|
-
private clickListenerUnlisten;
|
|
19
|
-
constructor();
|
|
20
|
-
/**
|
|
21
|
-
* Shows a popup containing a dynamically created component.
|
|
22
|
-
* @param top Position from the top of the viewport.
|
|
23
|
-
* @param left Position from the left of the viewport.
|
|
24
|
-
* @param componentType The type of component to render inside the popup.
|
|
25
|
-
* @param injector The injector to use for the dynamic component.
|
|
26
|
-
* @param wordData The WordData to pass to the component's input signal.
|
|
27
|
-
*/
|
|
28
|
-
showPopup<T extends {
|
|
29
|
-
wordData: WritableSignal<WordData | null>;
|
|
30
|
-
}>(// Constrain T
|
|
31
|
-
top: number, left: number, componentType: Type<T>, injector: Injector, wordData: WordData): void;
|
|
32
|
-
/**
|
|
33
|
-
* Hides the currently displayed popup and destroys the dynamic component.
|
|
34
|
-
*/
|
|
35
|
-
hidePopup(): void;
|
|
36
|
-
private addOutsideClickListener;
|
|
37
|
-
private removeOutsideClickListener;
|
|
38
|
-
ngOnDestroy(): void;
|
|
39
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<PopupService, never>;
|
|
40
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<PopupService>;
|
|
41
|
-
}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
export declare function markdownToHtml(markdown: any): any[];
|
|
2
|
-
export declare function convertToHTML(text: any): any[];
|
|
3
|
-
export declare function markdownToHTML(markdownText: any): any;
|
|
4
|
-
export declare function markdownBasicToHTML(markdownText: any): any;
|
|
5
|
-
export declare function markdownToHTML2(markdown: any): any[];
|
|
6
|
-
export declare function removeEmojisAndSpecialCharacters(text: string): string;
|
|
7
|
-
export declare function removeEmojis(text: string): string;
|
|
8
|
-
export declare function removeAllEmojis(text: any): any;
|
|
9
|
-
export declare function removeSpecialCharacters(inputText: string): string;
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
export declare const ICONS: {
|
|
2
|
-
readonly chat: "<svg viewBox=\"0 0 24 24\" fill=\"currentColor\">\n <path d=\"M20 2H4c-1.1 0-2 .9-2 2v18l4-4h14c...\" />\n </svg>";
|
|
3
|
-
readonly play: "<svg\n xmlns=\"http://www.w3.org/2000/svg\"\n width=\"16\"\n height=\"16\"\n viewBox=\"0 0 24 24\"\n fill=\"none\"\n stroke=\"#263042\"\n stroke-width=\"2\"\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\">\n <circle cx=\"12\" cy=\"12\" r=\"10\"></circle>\n <polygon points=\"10 8 16 12 10 16 10 8\"></polygon>\n </svg>";
|
|
4
|
-
readonly loading: "<svg\n xmlns=\"http://www.w3.org/2000/svg\"\n width=\"16\"\n height=\"16\"\n viewBox=\"0 0 24 24\"\n fill=\"none\"\n stroke=\"#263042\"\n stroke-width=\"2\"\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\">\n <line x1=\"12\" y1=\"2\" x2=\"12\" y2=\"6\"></line>\n <line x1=\"12\" y1=\"18\" x2=\"12\" y2=\"22\"></line>\n <line x1=\"4.93\" y1=\"4.93\" x2=\"7.76\" y2=\"7.76\"></line>\n <line x1=\"16.24\" y1=\"16.24\" x2=\"19.07\" y2=\"19.07\"></line>\n <line x1=\"2\" y1=\"12\" x2=\"6\" y2=\"12\"></line>\n <line x1=\"18\" y1=\"12\" x2=\"22\" y2=\"12\"></line>\n <line x1=\"4.93\" y1=\"19.07\" x2=\"7.76\" y2=\"16.24\"></line>\n <line x1=\"16.24\" y1=\"7.76\" x2=\"19.07\" y2=\"4.93\"></line>\n </svg>";
|
|
5
|
-
};
|
|
6
|
-
export type IconName = keyof typeof ICONS;
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { OnChanges, SimpleChanges } from '@angular/core';
|
|
2
|
-
import { SafeHtml } from '@angular/platform-browser';
|
|
3
|
-
import * as i0 from "@angular/core";
|
|
4
|
-
export declare class IconsComponent implements OnChanges {
|
|
5
|
-
private sanitizer;
|
|
6
|
-
readonly name: import("@angular/core").InputSignal<"chat" | "play" | "loading">;
|
|
7
|
-
readonly size: import("@angular/core").InputSignal<number>;
|
|
8
|
-
readonly color: import("@angular/core").InputSignal<string>;
|
|
9
|
-
sanitizedIcon: SafeHtml;
|
|
10
|
-
/** Inserted by Angular inject() migration for backwards compatibility */
|
|
11
|
-
constructor(...args: unknown[]);
|
|
12
|
-
ngOnChanges(changes: SimpleChanges): void;
|
|
13
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<IconsComponent, never>;
|
|
14
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<IconsComponent, "dc-icon", never, { "name": { "alias": "name"; "required": true; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "color": { "alias": "color"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
15
|
-
}
|
package/public-api.d.ts
DELETED
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
export * from './lib/models/agent.models';
|
|
2
|
-
export * from './lib/models/agent-card-abstract.model';
|
|
3
|
-
export * from './lib/models/conversation-enums';
|
|
4
|
-
export * from './lib/models/agent-card-abstract.model';
|
|
5
|
-
export * from './lib/models/agent.utils';
|
|
6
|
-
export * from './lib/models/agent.utils';
|
|
7
|
-
export * from './lib/models/user-data-exchange';
|
|
8
|
-
export * from './lib/prompts/dynamic-criteria.prompts';
|
|
9
|
-
export * from './lib/components/dc-agent-form/form-group.utils';
|
|
10
|
-
export * from './lib/utils/icons/extraction.regex';
|
|
11
|
-
export * from './lib/services/audio.service';
|
|
12
|
-
export * from './lib/services/dc-conversation-builder.service';
|
|
13
|
-
export * from './lib/services/default-agent-service';
|
|
14
|
-
export * from './lib/services/popup.service';
|
|
15
|
-
export * from './lib/services/dynamic-flow.service';
|
|
16
|
-
export * from './lib/services/global-tools.service';
|
|
17
|
-
export * from './lib/services/context-engine.service';
|
|
18
|
-
export * from './lib/services/chat-monitor.service';
|
|
19
|
-
export * from './lib/services/messages-state.service';
|
|
20
|
-
export * from './lib/services/ai-generation.service';
|
|
21
|
-
export * from './lib/components/chat-container/chat-container.component';
|
|
22
|
-
export * from './lib/components/dc-agent-form/dc-agent-card-form.component';
|
|
23
|
-
export * from './lib/components/dc-agent-card-lists/dc-agent-card-lists.component';
|
|
24
|
-
export * from './lib/components/dc-agent-card-details/dc-agent-card-details.component';
|
|
25
|
-
export * from './lib/components/dc-agent-card-lists/agent-card-default-ui/agent-card-default-ui.component';
|
|
26
|
-
export * from './lib/components/dc-agent-card-lists/dc-agent-card-lists.component';
|
|
27
|
-
export * from './lib/components/provider-selector/provider-selector.component';
|
|
28
|
-
export * from './lib/components/chat-container/chat-container.component';
|
|
29
|
-
export * from './lib/components/chat-container/chat-messages-list/chat-message/chat-message-orchestrator/message-content-displayer/message-content-displayer';
|
|
30
|
-
export * from './lib/components/chat-container/chat-messages-list/chat-message/chat-message.utils';
|
|
31
|
-
export * from './lib/components/chat-container/chat-messages-list/chat-message/chat-message-orchestrator/message-orchestrator.component';
|
|
32
|
-
export * from './lib/components/chat-container/chat-settings/dc-conversation-userchat-settings.component';
|