@dataclouder/ngx-agent-cards 0.1.70 → 0.1.71
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/index.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { ImgStorageData, BasicStorage, AudioStorage, IAssetable, StorageImageSettings, FileStorageData } from '@dataclouder/ngx-cloud-storage';
|
|
2
|
+
import { AudioEffectType, TTSRequest } from '@dataclouder/ngx-ai-services';
|
|
2
3
|
import * as _dataclouder_ngx_core from '@dataclouder/ngx-core';
|
|
3
|
-
import { ChatUserSettings, EModelQuality, IAuditable, IAIModel, IManageable, EntityCommunicationService, FiltersConfig, IFilterQueryResponse, HttpCoreService, EntityBaseFormComponent, EntityBaseListComponent, ICustomFilter, PColumn, OnActionEvent, formatCamelCaseString } from '@dataclouder/ngx-core';
|
|
4
|
+
import { ChatUserSettings, EModelQuality, IAuditable, IAIModel, IManageable, ILearnable, EntityCommunicationService, FiltersConfig, IFilterQueryResponse, HttpCoreService, EntityBaseFormComponent, EntityBaseListComponent, ICustomFilter, PColumn, OnActionEvent, formatCamelCaseString } from '@dataclouder/ngx-core';
|
|
4
5
|
import * as _angular_forms from '@angular/forms';
|
|
5
6
|
import { FormGroup, FormControl, FormArray } from '@angular/forms';
|
|
6
|
-
import { AudioEffectType, TTSRequest } from '@dataclouder/ngx-ai-services';
|
|
7
7
|
import * as _angular_core from '@angular/core';
|
|
8
8
|
import { InjectionToken, Type, Provider, WritableSignal, Injector, Signal, OnDestroy, ElementRef, OnInit, AfterViewInit, TemplateRef, EventEmitter } from '@angular/core';
|
|
9
9
|
import { UserService } from '@dataclouder/ngx-users';
|
|
@@ -187,8 +187,9 @@ interface Appearance {
|
|
|
187
187
|
}
|
|
188
188
|
interface CardTranslation {
|
|
189
189
|
greetings: string[];
|
|
190
|
+
instructions: string;
|
|
190
191
|
hook: string;
|
|
191
|
-
|
|
192
|
+
communication: string;
|
|
192
193
|
}
|
|
193
194
|
interface MultiLanguage {
|
|
194
195
|
es: CardTranslation;
|
|
@@ -226,8 +227,9 @@ interface CharacterCardData {
|
|
|
226
227
|
gender: string;
|
|
227
228
|
hook: string;
|
|
228
229
|
langTranslation?: MultiLanguage;
|
|
230
|
+
instructions?: string;
|
|
229
231
|
}
|
|
230
|
-
declare const characterCardStringDataDefinition = "\ninterface CharacterCardData {\n name: string; // Character's name\n gender: string; // male, female or other\n scenario: string; // 2-3 sentences: of the world, environment, time of day, weather, etc. where the character is.\n greetings: string[]; // 2-3 Character's opening message to start a conversation, less than 50 words. \n appearance: string;
|
|
232
|
+
declare const characterCardStringDataDefinition = "\ninterface CharacterCardData {\n name: string; // Character's name\n gender: string; // male, female or other\n scenario: string; // 2-3 sentences: of the world, environment, time of day, weather, etc. where the character is.\n greetings: string[]; // 2-3 Character's opening message to start a conversation, less than 50 words. \n appearance: string; // current description for image generation less than 50 words.\n persona: {\n identity: string; // Name, Age, Gender, Species, Sexuality, Role, Appearance\n physical: string; // physical description including height, build, hairColor, hairStyle, eyeColor, skinTone, distinctiveMarks, clothing style, currentOutfit\n personality: string; // personality description surface traits, Temperament, Values, Beliefs, Observable traits\n communication: string; // (How They Express) Speech Pattern, Style Common Phrases, Language Habits\n psychology: string; // Motivations, Desires, Goals, Traumas, Conflicts, Weaknesses\n background: string; // Background, History, origin, formative, secrets.\n capabilities: string; // skills, knowledge, abilities, expertise, limitations, Tools, Strengths\n social: string; // Relationships, reputation, allies, enemies, social role.\n preferences: string; // likes, dislikes, hobbies, interests, hates\n situation: string; // Current context for the character, immediate goal or challenge and constraints.\n };\n tags: string[]; // Array of 6-8 descriptive tags\n hook: string; // 40 to 60 words for readable hook, why play this character, what makes them compelling, add some questions for challenges, make it engaging.\n instructions: string; // 40 to 60 words for instructions explaining where the user is and what to do when starting the conversation, like you were invited to the john's house to take a coffee, continue the conversation in a friendly manner, \n}\n \nDescription format for PERSONA core data (compact, information-dense):\n\n## IDENTITY (Core Identification)\nName: [full name]\nAge: [age or age range]\nGender: [male, female, non-binary, other]\nSpecies: [human, elf, android, etc.]\nSexuality: [heterosexual, homosexual, bisexual, asexual, etc.]\nRole: [primary role/occupation] \u2022 [additional context about their position]\n\n## PHYSICAL - Observable Traits\nAppearance: [height, build, hair (color, length, style), eyes (color, shape), skin (tone, texture), distinctive features (scars, tattoos, markings), typical clothing/style]\nVoice: [tone (deep, high, raspy), pitch, accent, volume habits]\nMannerisms: [gestures, nervous habits, tics, body language, facial expressions, movement style]\nExpressions: [facial expressions, gestures, body language]\n\n## PERSONALITY - Internal Traits \nCore Traits: [4-6 main personality traits, comma-separated]\nTemperament: [overall emotional disposition - calm, volatile, melancholic, optimistic, etc.]\nValues: [what they believe in, moral principles, what matters most to them]\nFears: [what scares them, anxieties, phobias]\nQuirks: [unusual behaviors, idiosyncrasies, unique characteristics]\n\n## COMMUNICATION - How They Express\nSpeech Pattern: [formal/casual/slang, vocabulary level, sentence structure]\nSpeech Style: [verbose, terse, poetic, blunt, eloquent, rambling, etc.]\nCommon Phrases: [catchphrases, frequent expressions, signature words]\nLanguage Habits: [stutters, pauses, filler words, speaking speed, accent quirks]\n\n## PSYCHOLOGY - Deep Internal \nMotivations: [what drives them, internal forces pushing them forward]\nDesires: [what they want, both conscious and unconscious wants]\nGoals: [what they're actively trying to achieve, short and long-term]\nTraumas: [past wounds, painful experiences, unresolved hurt]\nConflicts: [internal struggles, competing desires, moral dilemmas]\nWeaknesses: [psychological vulnerabilities, emotional blind spots, mental limitations]\n\n## BACKGROUND - History\nHistory: [life story, major events that shaped them, timeline of important moments]\nOrigin: [where they're from, family background, cultural context]\nFormative Events: [specific experiences that defined who they became]\nSecrets: [hidden past elements, things they don't share, buried truths]\n\n## CAPABILITIES - What They Can Do\nSkills: [learned abilities, trained competencies]\nAbilities: [natural talents, supernatural powers, innate gifts]\nSpecialties: [areas of expertise, what they're known for]\nTools: [equipment, weapons, signature items they use]\nStrengths: [what they excel at, advantages, powerful traits]\n\n## SOCIAL - Connections\nRelationships: [key people in their life - family, friends, romantic interests with brief descriptions]\nReputation: [how others see them, what they're known for publicly]\nSocial Role: [position in society/group/organization]\nAllies: [friends, supporters, people who help them]\nEnemies: [opponents, rivals, antagonists]\n\n## PREFERENCES - Likes/Dislikes\nLikes: [things they enjoy, separated by |]\nDislikes: [things they avoid or hate, separated by |]\nHobbies: [activities they do for fun or relaxation]\nHabits: [routines, rituals, repeated behaviors]\n\n## SITUATION - Current Context\nScenario: [current setting, where they are now, what's happening around them]\nImmediate Goal: [what they want right now, current objective]\nCurrent State: [emotional state, physical condition, mental state]\nConstraints: [current limitations, obstacles, restrictions they're facing]\n\n";
|
|
231
233
|
interface ICharacterCardDC {
|
|
232
234
|
spec?: 'chara_card_v2';
|
|
233
235
|
spec_version?: '2_v_dc';
|
|
@@ -375,7 +377,6 @@ interface IAgentCard {
|
|
|
375
377
|
version?: string;
|
|
376
378
|
_id?: string;
|
|
377
379
|
id?: string;
|
|
378
|
-
title?: string;
|
|
379
380
|
name?: string;
|
|
380
381
|
description?: string;
|
|
381
382
|
agentType?: EAgentType;
|
|
@@ -387,6 +388,7 @@ interface IAgentCard {
|
|
|
387
388
|
accounts?: Array<IAccounts>;
|
|
388
389
|
conversationFlow?: IConversationFlow;
|
|
389
390
|
manageable?: IManageable;
|
|
391
|
+
learnable?: ILearnable;
|
|
390
392
|
voiceCloning?: VoiceCloning;
|
|
391
393
|
}
|
|
392
394
|
interface IAgentCardMeta extends IAgentCard {
|
|
@@ -538,10 +540,10 @@ declare enum ContextType {
|
|
|
538
540
|
|
|
539
541
|
declare class DefaultAgentCardsService extends EntityCommunicationService<IAgentCard> {
|
|
540
542
|
private conversationCostService;
|
|
541
|
-
protected userService: UserService
|
|
543
|
+
protected userService: UserService<any>;
|
|
542
544
|
randomSeed: number;
|
|
543
545
|
protected toastService: _dataclouder_ngx_core.ToastAlertsAbstractService;
|
|
544
|
-
|
|
546
|
+
protected appConfig: _dataclouder_ngx_core.IAppConfig;
|
|
545
547
|
private whisperService;
|
|
546
548
|
constructor();
|
|
547
549
|
partialUpdateAgentCard(agentCard: IAgentCard): Promise<IAgentCard>;
|
|
@@ -932,7 +934,6 @@ declare class DCAgentCardFormComponent extends EntityBaseFormComponent<IAgentCar
|
|
|
932
934
|
private fb;
|
|
933
935
|
protected entityCommunicationService: _dataclouder_ngx_agent_cards.DefaultAgentCardsService;
|
|
934
936
|
private dialogService;
|
|
935
|
-
private promptBuilder;
|
|
936
937
|
private characterFormGroupService;
|
|
937
938
|
conversationOptions: {
|
|
938
939
|
value: ConversationType$1;
|
|
@@ -951,9 +952,8 @@ declare class DCAgentCardFormComponent extends EntityBaseFormComponent<IAgentCar
|
|
|
951
952
|
readonly storageSettings: _angular_core.InputSignal<StorageImageSettings>;
|
|
952
953
|
readonly onSave: _angular_core.OutputEmitterRef<any>;
|
|
953
954
|
readonly onGoDetails: _angular_core.OutputEmitterRef<string>;
|
|
954
|
-
readonly onTranslate: _angular_core.OutputEmitterRef<any>;
|
|
955
955
|
private getSettings;
|
|
956
|
-
form: FormGroup<{
|
|
956
|
+
form: _angular_forms.FormGroup<{
|
|
957
957
|
version: _angular_forms.FormControl<string>;
|
|
958
958
|
id: _angular_forms.FormControl<string>;
|
|
959
959
|
title: _angular_forms.FormControl<string>;
|
|
@@ -961,15 +961,15 @@ declare class DCAgentCardFormComponent extends EntityBaseFormComponent<IAgentCar
|
|
|
961
961
|
description: _angular_forms.FormControl<string>;
|
|
962
962
|
lang: _angular_forms.FormControl<string>;
|
|
963
963
|
agentType: _angular_forms.FormControl<EAgentType>;
|
|
964
|
-
characterCard: FormGroup<any>;
|
|
965
|
-
conversationSettings: FormGroup<{
|
|
964
|
+
characterCard: _angular_forms.FormGroup<any>;
|
|
965
|
+
conversationSettings: _angular_forms.FormGroup<{
|
|
966
966
|
textEngine: _angular_forms.FormControl<TextEngines>;
|
|
967
967
|
conversationType: _angular_forms.FormControl<ConversationType$1>;
|
|
968
968
|
autoStart: _angular_forms.FormControl<boolean>;
|
|
969
969
|
userMustStart: _angular_forms.FormControl<boolean>;
|
|
970
|
-
mainVoice: FormGroup<any>;
|
|
971
|
-
secondaryVoice: FormGroup<any>;
|
|
972
|
-
model: FormGroup<{
|
|
970
|
+
mainVoice: _angular_forms.FormGroup<any>;
|
|
971
|
+
secondaryVoice: _angular_forms.FormGroup<any>;
|
|
972
|
+
model: _angular_forms.FormGroup<{
|
|
973
973
|
quality: _angular_forms.FormControl<_dataclouder_ngx_core.EModelQuality>;
|
|
974
974
|
modelName: _angular_forms.FormControl<string>;
|
|
975
975
|
provider: _angular_forms.FormControl<string>;
|
|
@@ -977,27 +977,27 @@ declare class DCAgentCardFormComponent extends EntityBaseFormComponent<IAgentCar
|
|
|
977
977
|
}>;
|
|
978
978
|
rules: FormArray<_angular_forms.FormControl<unknown>>;
|
|
979
979
|
}>;
|
|
980
|
-
metaApp: FormGroup<any>;
|
|
980
|
+
metaApp: _angular_forms.FormGroup<any>;
|
|
981
981
|
accounts: FormArray<_angular_forms.FormControl<unknown>>;
|
|
982
|
-
conversationFlow: FormGroup<{
|
|
982
|
+
conversationFlow: _angular_forms.FormGroup<{
|
|
983
983
|
goal: _dataclouder_ngx_agent_cards.SimpleAgentTaskFormGroup;
|
|
984
984
|
triggerTasks: _dataclouder_ngx_agent_cards.TriggerTasksFormGroup;
|
|
985
985
|
challenges: FormArray<_dataclouder_ngx_agent_cards.DynamicCriteriaFormGroup>;
|
|
986
986
|
tools: FormArray<_dataclouder_ngx_agent_cards.DynamicCriteriaFormGroup>;
|
|
987
987
|
dynamicConditions: FormArray<_dataclouder_ngx_agent_cards.DynamicConditionFormGroup>;
|
|
988
|
-
moodState: FormGroup<{
|
|
988
|
+
moodState: _angular_forms.FormGroup<{
|
|
989
989
|
enabled: _angular_forms.FormControl<boolean>;
|
|
990
990
|
useAssetStatesOnly: _angular_forms.FormControl<boolean>;
|
|
991
991
|
detectableStates: FormArray<_dataclouder_ngx_agent_cards.DynamicCriteriaFormGroup>;
|
|
992
992
|
}>;
|
|
993
993
|
}>;
|
|
994
|
-
manageable: FormGroup<any>;
|
|
995
|
-
learnable: FormGroup<{
|
|
994
|
+
manageable: _angular_forms.FormGroup<any>;
|
|
995
|
+
learnable: _angular_forms.FormGroup<{
|
|
996
996
|
level: _angular_forms.FormControl<number | null>;
|
|
997
997
|
takenCount: _angular_forms.FormControl<number | null>;
|
|
998
998
|
tags: FormArray<_angular_forms.FormControl<string | null>>;
|
|
999
999
|
}>;
|
|
1000
|
-
voiceCloning: FormGroup<any>;
|
|
1000
|
+
voiceCloning: _angular_forms.FormGroup<any>;
|
|
1001
1001
|
}>;
|
|
1002
1002
|
protected patchForm(agentCard: IAgentCard): void;
|
|
1003
1003
|
save(): Promise<IAgentCard | undefined>;
|
|
@@ -1005,7 +1005,6 @@ declare class DCAgentCardFormComponent extends EntityBaseFormComponent<IAgentCar
|
|
|
1005
1005
|
onImageSelected(file: File): Promise<void>;
|
|
1006
1006
|
checkPrompt(): void;
|
|
1007
1007
|
goToDetails(): void;
|
|
1008
|
-
translate(): void;
|
|
1009
1008
|
downloadConversation(): void;
|
|
1010
1009
|
importConversation(): void;
|
|
1011
1010
|
isGenerating: _angular_core.WritableSignal<boolean>;
|
|
@@ -1019,7 +1018,7 @@ declare class DCAgentCardFormComponent extends EntityBaseFormComponent<IAgentCar
|
|
|
1019
1018
|
onFileUploaded(event: FileStorageData): void;
|
|
1020
1019
|
deleteCard(): Promise<void>;
|
|
1021
1020
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<DCAgentCardFormComponent, never>;
|
|
1022
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<DCAgentCardFormComponent, "dc-agent-form", never, { "storageSettings": { "alias": "storageSettings"; "required": false; "isSignal": true; }; }, { "onSave": "onSave"; "onGoDetails": "onGoDetails";
|
|
1021
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<DCAgentCardFormComponent, "dc-agent-form", never, { "storageSettings": { "alias": "storageSettings"; "required": false; "isSignal": true; }; }, { "onSave": "onSave"; "onGoDetails": "onGoDetails"; }, never, never, true, never>;
|
|
1023
1022
|
}
|
|
1024
1023
|
|
|
1025
1024
|
declare class AgentCardListComponent extends EntityBaseListComponent<IAgentCard> implements OnInit {
|
|
@@ -1028,7 +1027,7 @@ declare class AgentCardListComponent extends EntityBaseListComponent<IAgentCard>
|
|
|
1028
1027
|
readonly gridLayout: _angular_core.InputSignal<boolean>;
|
|
1029
1028
|
readonly customGetButtons: _angular_core.InputSignal<(card: IAgentCard) => MenuItem[]>;
|
|
1030
1029
|
readonly agentCardsMasterStateService: _dataclouder_ngx_knowledge.MasterStateService<IAgentCard>;
|
|
1031
|
-
userService: UserService
|
|
1030
|
+
userService: UserService<any>;
|
|
1032
1031
|
protected entityCommunicationService: DefaultAgentCardsService;
|
|
1033
1032
|
columns: PColumn[];
|
|
1034
1033
|
customFilters: ICustomFilter[];
|
|
@@ -1075,7 +1074,7 @@ declare enum EventCard {
|
|
|
1075
1074
|
declare class AgentCardUI implements OnInit {
|
|
1076
1075
|
eventType: typeof EventCard;
|
|
1077
1076
|
isTaken: _angular_core.WritableSignal<boolean>;
|
|
1078
|
-
userService: UserService
|
|
1077
|
+
userService: UserService<any>;
|
|
1079
1078
|
speedDialModel: MenuItem[];
|
|
1080
1079
|
constructor();
|
|
1081
1080
|
finalDescription: _angular_core.WritableSignal<string>;
|
|
@@ -1250,7 +1249,7 @@ declare class DCConversationUserChatSettingsComponent implements OnInit {
|
|
|
1250
1249
|
private dialogRef;
|
|
1251
1250
|
private fb;
|
|
1252
1251
|
private conversationCardAIService;
|
|
1253
|
-
userService: UserService
|
|
1252
|
+
userService: UserService<any>;
|
|
1254
1253
|
isLoadingModels: boolean;
|
|
1255
1254
|
readonly showFeature: _angular_core.InputSignal<any>;
|
|
1256
1255
|
readonly onSettingsChange: _angular_core.OutputEmitterRef<any>;
|
|
@@ -1355,7 +1354,9 @@ declare class ACCDataGenerationComponent {
|
|
|
1355
1354
|
prompt: _angular_core.WritableSignal<string>;
|
|
1356
1355
|
loading: _angular_core.WritableSignal<boolean>;
|
|
1357
1356
|
generationStep: _angular_core.WritableSignal<"prompt" | "idea" | "result">;
|
|
1358
|
-
|
|
1357
|
+
showPrompt(): void;
|
|
1358
|
+
generateDirectly(): Promise<void>;
|
|
1359
|
+
private buildPrompt;
|
|
1359
1360
|
generate(): Promise<void>;
|
|
1360
1361
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<ACCDataGenerationComponent, never>;
|
|
1361
1362
|
static ɵcmp: _angular_core.ɵɵComponentDeclaration<ACCDataGenerationComponent, "dc-acc-data-generation", never, { "agentCard": { "alias": "agentCard"; "required": false; }; }, { "cardImprovementsChange": "cardImprovementsChange"; }, never, never, true, never>;
|