@dataclouder/ngx-agent-cards 0.2.4 → 0.2.6

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dataclouder/ngx-agent-cards",
3
- "version": "0.2.4",
3
+ "version": "0.2.6",
4
4
  "peerDependencies": {
5
5
  "@angular/common": ">=18.0.0",
6
6
  "@angular/core": ">=18.0.0",
@@ -413,6 +413,27 @@ interface VoiceCloning {
413
413
  transcription: string;
414
414
  main: VoiceTTS;
415
415
  }
416
+ declare enum AgenticEngine {
417
+ SERVER_SDK = "server_sdk",// Loop ReAct local del backend (Vercel AI SDK)
418
+ OS_HERMES = "os_hermes"
419
+ }
420
+ declare enum AgenticPattern {
421
+ DIRECT = "direct",// Roleplay clásico sin bucles
422
+ REACT = "react",// Pensamiento -> Acción (Tools) -> Observación
423
+ REFLECTION = "reflection",// Borrador -> Crítica interna -> Refinación
424
+ PLAN_AND_EXECUTE = "plan_execute"
425
+ }
426
+ interface IAgenticConfig {
427
+ enabled: boolean;
428
+ engine: AgenticEngine;
429
+ pattern: AgenticPattern;
430
+ maxIterations: number;
431
+ allowedTools: string[];
432
+ reflectionPrompt?: string;
433
+ connectionUrl?: string;
434
+ reasoningModel?: IAIModel;
435
+ executionModel?: IAIModel;
436
+ }
416
437
  interface IAgentCard {
417
438
  version?: string;
418
439
  _id?: string;
@@ -430,6 +451,7 @@ interface IAgentCard {
430
451
  learnable?: ILearnable;
431
452
  auditable?: IAuditable;
432
453
  voiceCloning?: VoiceCloning;
454
+ agenticConfig?: IAgenticConfig;
433
455
  metaApp?: IAgentMetadata;
434
456
  }
435
457
  interface IAgentCardMeta extends IAgentCard {
@@ -1240,6 +1262,9 @@ declare class PolitoNotificationComponent implements OnInit, OnDestroy {
1240
1262
  static ɵcmp: _angular_core.ɵɵComponentDeclaration<PolitoNotificationComponent, "dc-polito-notification", never, {}, {}, never, never, true, never>;
1241
1263
  }
1242
1264
 
1265
+ interface DCAgentFormSettings {
1266
+ converseRoute?: any[] | ((entityId: string) => any[]);
1267
+ }
1243
1268
  declare class DCAgentCardFormComponent extends EntityBaseFormComponent<IAgentCard> {
1244
1269
  private fb;
1245
1270
  protected entityCommunicationService: _dataclouder_ngx_agent_cards.DefaultAgentCardsService;
@@ -1260,7 +1285,16 @@ declare class DCAgentCardFormComponent extends EntityBaseFormComponent<IAgentCar
1260
1285
  label: string;
1261
1286
  }[];
1262
1287
  agentTypeOptions: (string | EAgentType.None)[];
1288
+ agenticEngineOptions: AgenticEngine[];
1289
+ agenticPatternOptions: AgenticPattern[];
1290
+ allowedToolsOptions: {
1291
+ label: string;
1292
+ value: string;
1293
+ }[];
1263
1294
  readonly onSave: _angular_core.OutputEmitterRef<any>;
1295
+ readonly inputSettings: _angular_core.InputSignal<DCAgentFormSettings>;
1296
+ isToolAllowed(toolValue: string): boolean;
1297
+ toggleTool(toolValue: string, checked: boolean): void;
1264
1298
  form: _angular_forms.FormGroup<{
1265
1299
  version: _angular_forms.FormControl<string>;
1266
1300
  id: _angular_forms.FormControl<string>;
@@ -1309,6 +1343,27 @@ declare class DCAgentCardFormComponent extends EntityBaseFormComponent<IAgentCar
1309
1343
  tags: FormArray<_angular_forms.FormControl<string | null>>;
1310
1344
  }>;
1311
1345
  voiceCloning: _angular_forms.FormGroup<any>;
1346
+ agenticConfig: _angular_forms.FormGroup<{
1347
+ enabled: _angular_forms.FormControl<boolean>;
1348
+ engine: _angular_forms.FormControl<AgenticEngine>;
1349
+ pattern: _angular_forms.FormControl<AgenticPattern>;
1350
+ maxIterations: _angular_forms.FormControl<number>;
1351
+ allowedTools: FormArray<_angular_forms.FormControl<unknown>>;
1352
+ reflectionPrompt: _angular_forms.FormControl<string>;
1353
+ connectionUrl: _angular_forms.FormControl<string>;
1354
+ reasoningModel: _angular_forms.FormGroup<{
1355
+ quality: _angular_forms.FormControl<_dataclouder_ngx_core.EModelQuality>;
1356
+ modelName: _angular_forms.FormControl<string>;
1357
+ provider: _angular_forms.FormControl<string>;
1358
+ id: _angular_forms.FormControl<string>;
1359
+ }>;
1360
+ executionModel: _angular_forms.FormGroup<{
1361
+ quality: _angular_forms.FormControl<_dataclouder_ngx_core.EModelQuality>;
1362
+ modelName: _angular_forms.FormControl<string>;
1363
+ provider: _angular_forms.FormControl<string>;
1364
+ id: _angular_forms.FormControl<string>;
1365
+ }>;
1366
+ }>;
1312
1367
  }>;
1313
1368
  protected patchForm(agentCard: IAgentCard): void;
1314
1369
  save(): Promise<IAgentCard | undefined>;
@@ -1333,7 +1388,7 @@ declare class DCAgentCardFormComponent extends EntityBaseFormComponent<IAgentCar
1333
1388
  cloneVoice(): Promise<void>;
1334
1389
  deleteCard(): Promise<void>;
1335
1390
  static ɵfac: _angular_core.ɵɵFactoryDeclaration<DCAgentCardFormComponent, never>;
1336
- static ɵcmp: _angular_core.ɵɵComponentDeclaration<DCAgentCardFormComponent, "dc-agent-form", never, {}, { "onSave": "onSave"; }, never, never, true, never>;
1391
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<DCAgentCardFormComponent, "dc-agent-form", never, { "inputSettings": { "alias": "inputSettings"; "required": false; "isSignal": true; }; }, { "onSave": "onSave"; }, never, never, true, never>;
1337
1392
  }
1338
1393
 
1339
1394
  declare class AgentCardListComponent extends EntityBaseListV2Component<IAgentCard> implements OnInit {
@@ -1764,5 +1819,5 @@ declare class ChatEngineTestComponent {
1764
1819
 
1765
1820
  declare const AGENT_CARDS_STATE_SERVICE: InjectionToken<MasterStateService<IAgentCard>>;
1766
1821
 
1767
- export { ACCDataGenerationComponent, AGENT_CARDS_STATE_SERVICE, AIGenerationService, AgentCardListComponent, AgentCardUI, AgentCardsGenerationService, AudioService, AudioSpeed, BACKGROUND_SERVICE_TOKEN, CONVERSATION_AI_TOKEN, CardRouteService, CardRoutesComponent, CardsCreatorComponent, ChatEngineTestComponent, ChatEventType, ChatMessage, ChatMessageOrchestratorComponent, ChatMonitorService, ChatRole, ConditionOperator, ConditionType, ContextEngineService, ContextType, ConversationDTO, ConversationEvents, ConversationFlowStateService, ConversationMessagesDTO, ConversationPromptBuilderService, ConversationRuleService, ConversationRulesComponent, ConversationStatus, ConversationType$1 as ConversationType, ConversationTypeOptions, DCAgentCardFormComponent, DCChatComponent, DCConversationUserChatSettingsComponent, DcAgentCardConverseComponent, DcAgentCardDetailComponent, DefaultAgentCardsService, DoActionTypeOptions, DynamicFlowService, DynamicFlowTaskTypeOptions, EAccountsPlatform, EAgentType, EDoActionType, EDynamicFlowTaskType, EntityThen, EntityWhatOptions, EntityWhenOptions, EvalResultStringDefinition, GlobalToolsService, MessageContent, MessageContentDisplayer, MessagesStateService, ModelSelectorComponent, PolitoNotificationComponent, PopupService, PromptPreviewComponent, SectionType, SystemPromptType, TextEngineOptions, TextEngines, VIDEO_PLAYER_SERVICE_TOKEN, VideoPlayerNativeService, VideoPlayerService, VoiceTTSOption, VoiceTTSOptions, WordTimestamps, XKillsAgentCardsService, buildObjectTTSRequest, characterCardStringDataDefinition, convertToHTML, createAIModelFormGroup, defaultconvUserSettings, extractAudioAndTranscription, extractJsonFromResponse, getMoodStateLabelsAsString, getMoodStatePrompt, markdownToHtml, matchTranscription, provideAgentCardService, removeEmojis, removeEmojisAndSpecialCharacters, removeSpecialCharacters };
1768
- export type { Appearance, AudioGenerated, AudioStatus, BackgroundTask, CardTranslation, ChangePromptAction, CharacterCardData, ChatEvent, ConversationFlowFormGroup, ConversationSettingsFormGroup, DoAction, DoActionFormGroup, DynamicConditionFormGroup, DynamicCriteriaFormGroup, IAccounts, IAgentAssets, IAgentCard, IAgentCardMeta, IAgentMetadata, IAgentResponseDTO, IBackgroundService, ICardRoute, ICardRouteStep, IChallengeState, ICharacterCardDC, IConversationFlow, IConversationFlowState, IConversationSession, IConversationSettings, IConversationSettingsDTO, IDynamicCondition, IDynamicCriteria, IDynamicFlowTask, IGenerateConversationCardsDto, IGoalState, IMoodState, IMoodStateRuntime, IRule, ISimpleAgent, ITTS, IVideoPlayerService, IWordMetadata, ModelFormGroup, ModelName, MultiLanguage, Persona, SimpleAgentTask, SimpleAgentTaskFormGroup, SimpleEvalResult, TextHTMLTag, TranscriptionsWhisper, TriggerTasksFormGroup, VoiceCloning, VoiceTTS, WordData };
1822
+ export { ACCDataGenerationComponent, AGENT_CARDS_STATE_SERVICE, AIGenerationService, AgentCardListComponent, AgentCardUI, AgentCardsGenerationService, AgenticEngine, AgenticPattern, AudioService, AudioSpeed, BACKGROUND_SERVICE_TOKEN, CONVERSATION_AI_TOKEN, CardRouteService, CardRoutesComponent, CardsCreatorComponent, ChatEngineTestComponent, ChatEventType, ChatMessage, ChatMessageOrchestratorComponent, ChatMonitorService, ChatRole, ConditionOperator, ConditionType, ContextEngineService, ContextType, ConversationDTO, ConversationEvents, ConversationFlowStateService, ConversationMessagesDTO, ConversationPromptBuilderService, ConversationRuleService, ConversationRulesComponent, ConversationStatus, ConversationType$1 as ConversationType, ConversationTypeOptions, DCAgentCardFormComponent, DCChatComponent, DCConversationUserChatSettingsComponent, DcAgentCardConverseComponent, DcAgentCardDetailComponent, DefaultAgentCardsService, DoActionTypeOptions, DynamicFlowService, DynamicFlowTaskTypeOptions, EAccountsPlatform, EAgentType, EDoActionType, EDynamicFlowTaskType, EntityThen, EntityWhatOptions, EntityWhenOptions, EvalResultStringDefinition, GlobalToolsService, MessageContent, MessageContentDisplayer, MessagesStateService, ModelSelectorComponent, PolitoNotificationComponent, PopupService, PromptPreviewComponent, SectionType, SystemPromptType, TextEngineOptions, TextEngines, VIDEO_PLAYER_SERVICE_TOKEN, VideoPlayerNativeService, VideoPlayerService, VoiceTTSOption, VoiceTTSOptions, WordTimestamps, XKillsAgentCardsService, buildObjectTTSRequest, characterCardStringDataDefinition, convertToHTML, createAIModelFormGroup, defaultconvUserSettings, extractAudioAndTranscription, extractJsonFromResponse, getMoodStateLabelsAsString, getMoodStatePrompt, markdownToHtml, matchTranscription, provideAgentCardService, removeEmojis, removeEmojisAndSpecialCharacters, removeSpecialCharacters };
1823
+ export type { Appearance, AudioGenerated, AudioStatus, BackgroundTask, CardTranslation, ChangePromptAction, CharacterCardData, ChatEvent, ConversationFlowFormGroup, ConversationSettingsFormGroup, DCAgentFormSettings, DoAction, DoActionFormGroup, DynamicConditionFormGroup, DynamicCriteriaFormGroup, IAccounts, IAgentAssets, IAgentCard, IAgentCardMeta, IAgentMetadata, IAgentResponseDTO, IAgenticConfig, IBackgroundService, ICardRoute, ICardRouteStep, IChallengeState, ICharacterCardDC, IConversationFlow, IConversationFlowState, IConversationSession, IConversationSettings, IConversationSettingsDTO, IDynamicCondition, IDynamicCriteria, IDynamicFlowTask, IGenerateConversationCardsDto, IGoalState, IMoodState, IMoodStateRuntime, IRule, ISimpleAgent, ITTS, IVideoPlayerService, IWordMetadata, ModelFormGroup, ModelName, MultiLanguage, Persona, SimpleAgentTask, SimpleAgentTaskFormGroup, SimpleEvalResult, TextHTMLTag, TranscriptionsWhisper, TriggerTasksFormGroup, VoiceCloning, VoiceTTS, WordData };