@sftech/ng-orchestrator 0.0.1 → 0.0.2
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/{sftech-ng-orchestrator-chat.routes-6WiLaurE.mjs → sftech-ng-orchestrator-chat.routes-BxJCefmM.mjs} +2 -2
- package/fesm2022/{sftech-ng-orchestrator-chat.routes-6WiLaurE.mjs.map → sftech-ng-orchestrator-chat.routes-BxJCefmM.mjs.map} +1 -1
- package/fesm2022/{sftech-ng-orchestrator-sftech-ng-orchestrator-Dk76dBVe.mjs → sftech-ng-orchestrator-sftech-ng-orchestrator-BzbWlbmE.mjs} +3 -3
- package/fesm2022/sftech-ng-orchestrator-sftech-ng-orchestrator-BzbWlbmE.mjs.map +1 -0
- package/fesm2022/sftech-ng-orchestrator.mjs +1 -1
- package/package.json +1 -1
- package/fesm2022/sftech-ng-orchestrator-sftech-ng-orchestrator-Dk76dBVe.mjs.map +0 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
2
|
import { signal, Component } from '@angular/core';
|
|
3
|
-
import { O as OrcherstratorService } from './sftech-ng-orchestrator-sftech-ng-orchestrator-
|
|
3
|
+
import { O as OrcherstratorService } from './sftech-ng-orchestrator-sftech-ng-orchestrator-BzbWlbmE.mjs';
|
|
4
4
|
import * as i2 from '@angular/forms';
|
|
5
5
|
import { FormGroup, FormControl, ReactiveFormsModule } from '@angular/forms';
|
|
6
6
|
import { FloatLabel } from 'primeng/floatlabel';
|
|
@@ -68,4 +68,4 @@ const chatRoutes = [
|
|
|
68
68
|
];
|
|
69
69
|
|
|
70
70
|
export { chatRoutes };
|
|
71
|
-
//# sourceMappingURL=sftech-ng-orchestrator-chat.routes-
|
|
71
|
+
//# sourceMappingURL=sftech-ng-orchestrator-chat.routes-BxJCefmM.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sftech-ng-orchestrator-chat.routes-
|
|
1
|
+
{"version":3,"file":"sftech-ng-orchestrator-chat.routes-BxJCefmM.mjs","sources":["../../../../libs/ng-orchestrator/src/lib/ng-orchestrator/chat/chat.component.ts","../../../../libs/ng-orchestrator/src/lib/ng-orchestrator/chat/chat.component.html","../../../../libs/ng-orchestrator/src/lib/ng-orchestrator/chat/chat.routes.ts"],"sourcesContent":["import {Component, signal, Signal} from '@angular/core';\r\nimport {OrcherstratorService} from \"../core/service/orcherstrator.service\";\r\nimport {FormControl, FormGroup, ReactiveFormsModule} from \"@angular/forms\";\r\nimport {FloatLabel} from \"primeng/floatlabel\";\r\nimport {InputText} from \"primeng/inputtext\";\r\nimport {Button} from \"primeng/button\";\r\nimport {catchError, map, of} from \"rxjs\";\r\nimport {Panel} from \"primeng/panel\";\r\nimport {ProgressSpinner} from \"primeng/progressspinner\";\r\n\r\n@Component({\r\n selector: 'sftech-chat',\r\n imports: [\r\n ReactiveFormsModule,\r\n FloatLabel,\r\n InputText,\r\n Button,\r\n Panel,\r\n ProgressSpinner\r\n ],\r\n templateUrl: './chat.component.html',\r\n styleUrl: './chat.component.css'\r\n})\r\nexport class ChatComponent {\r\n\r\n public answer= signal<string | undefined>(undefined);\r\n public status = signal<EOrchestratorStatus>(EOrchestratorStatus.IDLE);\r\n\r\n public statuses = EOrchestratorStatus;\r\n\r\n public form = new FormGroup({\r\n prompt: new FormControl('')\r\n })\r\n\r\n public constructor(private readonly orchestratorService: OrcherstratorService) {\r\n }\r\n\r\n public run(): void {\r\n console.log('send')\r\n\r\n if (this.form.valid) {\r\n this.status.set(EOrchestratorStatus.REQUESTING);\r\n this.orchestratorService.runAgent({ agentIdentifier: 'agent_k9x7d2h3', userInput: {input : this.form.get('prompt')?.value!} }).pipe(\r\n map((res) => {\r\n this.answer.set(res.llmResult.message)\r\n this.status.set(EOrchestratorStatus.ANSWERED);\r\n }),\r\n catchError((err: unknown) => {\r\n console.error(err);\r\n this.status.set(EOrchestratorStatus.ERROR);\r\n return of()\r\n })).subscribe();\r\n } else {\r\n console.error('Form is invalid');\r\n }\r\n }\r\n}\r\n\r\nexport enum EOrchestratorStatus {\r\n IDLE = 'IDLE',\r\n REQUESTING = 'REQUESTING',\r\n ANSWERED = 'ANSWERED',\r\n ERROR = 'ERROR'\r\n}","\r\n<div class=\"flex flex-col items-center justify-center mb-10 mt-5\">\r\n @if(status() === statuses.ANSWERED) {\r\n <ng-template #header>\r\n <div class=\"flex items-center font-bold\">\r\n <p>Ingolf sagt:</p>\r\n </div>\r\n </ng-template>\r\n <p class=\"m-0\">\r\n {{ answer() }}\r\n </p>\r\n } @else if (status() === statuses.ERROR) {\r\n <div class=\"flex items-center\">\r\n <p-panel [toggleable]=\"false\">\r\n <ng-template #header>\r\n <div class=\"flex items-center gap-2\">\r\n <span>Ups... Ein Fehler ist aufgetreten</span>\r\n </div>\r\n </ng-template>\r\n <p class=\"m-0\">\r\n Beim Senden deiner Nachricht an unseren Server ist ein Fehler aufgetreten. Bitte versuche es später noch einmal.\r\n </p>\r\n </p-panel>\r\n </div>\r\n } @else if (status() === statuses.REQUESTING) {\r\n <ng-template #header>\r\n <div class=\"flex items-center font-bold\">\r\n <p>Deine Anfrage wird verarbeitet</p>\r\n </div>\r\n </ng-template>\r\n <p class=\"m-0\">\r\n <p-progress-spinner ariaLabel=\"loading\" />\r\n </p>\r\n } @else if (status() === statuses.IDLE) {\r\n <p-panel [toggleable]=\"false\">\r\n <ng-template #header>\r\n <div class=\"flex items-center font-bold\">\r\n <span>Jetzt Anfrage senden</span>\r\n </div>\r\n </ng-template>\r\n <p class=\"m-0\">\r\n Schicke uns jetzt deine Frage. Wir verfeinern diese um die bestmögliche Antwort zu erhalten.\r\n </p>\r\n </p-panel>\r\n }\r\n</div>\r\n\r\n<form [formGroup]=\"form\" class=\"pt-2\">\r\n <div>\r\n <p-floatlabel variant=\"in\">\r\n <textarea id=\"prompt\" pInputText [formControlName]=\"'prompt'\" rows=\"5\" class=\"w-full\"></textarea>\r\n <label for=\"prompt\">Prompt</label>\r\n </p-floatlabel>\r\n </div>\r\n <div class=\"mt-2\">\r\n <p-button type=\"submit\" label=\"Senden\" (onClick)=\"run()\"/>\r\n </div>\r\n</form>","import {ChatComponent} from \"./chat.component\";\r\n\r\nexport const chatRoutes = [\r\n {\r\n path: '',\r\n component: ChatComponent\r\n }\r\n];"],"names":["i1.OrcherstratorService"],"mappings":";;;;;;;;;;;;MAuBa,aAAa,CAAA;AAWc,IAAA,mBAAA;AAT7B,IAAA,MAAM,GAAE,MAAM,CAAqB,SAAS,CAAC;AAC7C,IAAA,MAAM,GAAG,MAAM,CAAsB,mBAAmB,CAAC,IAAI,CAAC;IAE9D,QAAQ,GAAG,mBAAmB;IAE9B,IAAI,GAAG,IAAI,SAAS,CAAC;AACxB,QAAA,MAAM,EAAE,IAAI,WAAW,CAAC,EAAE;AAC7B,KAAA,CAAC;AAEF,IAAA,WAAA,CAAoC,mBAAyC,EAAA;QAAzC,IAAmB,CAAA,mBAAA,GAAnB,mBAAmB;;IAGhD,GAAG,GAAA;AACN,QAAA,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC;AAEnB,QAAA,IAAI,IAAI,CAAC,IAAI,CAAC,KAAK,EAAE;YACjB,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,mBAAmB,CAAC,UAAU,CAAC;AAC/C,YAAA,IAAI,CAAC,mBAAmB,CAAC,QAAQ,CAAC,EAAE,eAAe,EAAE,gBAAgB,EAAE,SAAS,EAAE,EAAC,KAAK,EAAG,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,QAAQ,CAAC,EAAE,KAAM,EAAC,EAAE,CAAC,CAAC,IAAI,CAC/H,GAAG,CAAC,CAAC,GAAG,KAAI;gBACR,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,GAAG,CAAC,SAAS,CAAC,OAAO,CAAC;gBACtC,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,mBAAmB,CAAC,QAAQ,CAAC;AACjD,aAAC,CAAC,EACF,UAAU,CAAC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WAAA,CAAA,EAAA,CAAA,EAAA,CAAA;;2FAKV,aAAa,EAAA,UAAA,EAAA,CAAA;kBAbzB,SAAS;AACE,YAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,aAAa,EACZ,OAAA,EAAA;wBACL,mBAAmB;wBACnB,UAAU;wBACV,SAAS;wBACT,MAAM;wBACN,KAAK;wBACL;AACH,qBAAA,EAAA,QAAA,EAAA,qxEAAA,EAAA;;AAuCL,IAAY,mBAKX;AALD,CAAA,UAAY,mBAAmB,EAAA;AAC3B,IAAA,mBAAA,CAAA,MAAA,CAAA,GAAA,MAAa;AACb,IAAA,mBAAA,CAAA,YAAA,CAAA,GAAA,YAAyB;AACzB,IAAA,mBAAA,CAAA,UAAA,CAAA,GAAA,UAAqB;AACrB,IAAA,mBAAA,CAAA,OAAA,CAAA,GAAA,OAAe;AACnB,CAAC,EALW,mBAAmB,KAAnB,mBAAmB,GAK9B,EAAA,CAAA,CAAA;;AE7DY,MAAA,UAAU,GAAG;AACtB,IAAA;AACI,QAAA,IAAI,EAAE,EAAE;AACR,QAAA,SAAS,EAAE;AACd;;;;;"}
|
|
@@ -22,7 +22,7 @@ class OrcherstratorService {
|
|
|
22
22
|
this.config = config;
|
|
23
23
|
}
|
|
24
24
|
runAgent(runConfig) {
|
|
25
|
-
const url = `${this.config.orchestratorUrl}/
|
|
25
|
+
const url = `${this.config.orchestratorUrl}/generic/run`;
|
|
26
26
|
return this.http.post(url, runConfig);
|
|
27
27
|
}
|
|
28
28
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.9", ngImport: i0, type: OrcherstratorService, deps: [{ token: i1.HttpClient }, { token: ORCHESTRATOR_CONFIGURATION }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
@@ -66,7 +66,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.9", ngImpor
|
|
|
66
66
|
const orchestratorRoutes = [
|
|
67
67
|
{
|
|
68
68
|
path: 'chats',
|
|
69
|
-
loadChildren: () => import('./sftech-ng-orchestrator-chat.routes-
|
|
69
|
+
loadChildren: () => import('./sftech-ng-orchestrator-chat.routes-BxJCefmM.mjs').then(m => m.chatRoutes)
|
|
70
70
|
},
|
|
71
71
|
{
|
|
72
72
|
path: 'prompts',
|
|
@@ -83,4 +83,4 @@ const orchestratorRoutes = [
|
|
|
83
83
|
*/
|
|
84
84
|
|
|
85
85
|
export { OrcherstratorService as O, OrchestratorModule as a, orchestratorRoutes as o };
|
|
86
|
-
//# sourceMappingURL=sftech-ng-orchestrator-sftech-ng-orchestrator-
|
|
86
|
+
//# sourceMappingURL=sftech-ng-orchestrator-sftech-ng-orchestrator-BzbWlbmE.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sftech-ng-orchestrator-sftech-ng-orchestrator-BzbWlbmE.mjs","sources":["../../../../libs/ng-orchestrator/src/lib/ng-orchestrator/configuration/orchestrator-configuration.token.ts","../../../../libs/ng-orchestrator/src/lib/ng-orchestrator/configuration/orchestrator-config.mapper.ts","../../../../libs/ng-orchestrator/src/lib/ng-orchestrator/core/service/orcherstrator.service.ts","../../../../libs/ng-orchestrator/src/lib/ng-orchestrator/orchestrator.module.ts","../../../../libs/ng-orchestrator/src/lib/ng-orchestrator/orchestrator.routes.ts","../../../../libs/ng-orchestrator/src/sftech-ng-orchestrator.ts"],"sourcesContent":["import {InjectionToken} from \"@angular/core\";\r\nimport {IOrchestratorConfig} from \"./orchestrator-config.interface\";\r\n\r\nexport const ORCHESTRATOR_CONFIGURATION = new InjectionToken<IOrchestratorConfig>('ORCHESTRATOR_CONFIGURATION');","// import {IAppConfig} from \"@sftech/ng-shared\";\r\nimport {IOrchestratorConfig} from \"./orchestrator-config.interface\";\r\n\r\nexport class OrchestratorConfigMapper {\r\n public static map(config: any): IOrchestratorConfig {\r\n return {\r\n orchestratorUrl: config['ORCHESTRATOR_URL'] as string,\r\n orchestratorDbUrl: config['ORCHESTRATOR_DB_URL'] as string,\r\n }\r\n }\r\n}","import {Inject, Injectable} from \"@angular/core\";\r\nimport {ORCHESTRATOR_CONFIGURATION} from \"../../configuration/orchestrator-configuration.token\";\r\nimport {IOrchestratorConfig} from \"../../configuration/orchestrator-config.interface\";\r\nimport {HttpClient} from \"@angular/common/http\";\r\nimport {IOrchestratorRunDto} from \"../dtos/orchestrator-run.dto\";\r\nimport {Observable} from \"rxjs\";\r\n\r\n@Injectable()\r\nexport class OrcherstratorService {\r\n public constructor(private readonly http: HttpClient, @Inject(ORCHESTRATOR_CONFIGURATION) private readonly config: IOrchestratorConfig) {\r\n }\r\n\r\n public runAgent(runConfig: IOrchestratorRunDto): Observable<any> {\r\n const url = `${this.config.orchestratorUrl}/generic/run`\r\n return this.http.post(url, runConfig);\r\n }\r\n}","import {ModuleWithProviders, NgModule} from '@angular/core';\r\nimport {CommonModule} from '@angular/common';\r\nimport {IAppConfig} from \"@sftech/ng-shared\";\r\nimport {ORCHESTRATOR_CONFIGURATION} from \"./configuration/orchestrator-configuration.token\";\r\nimport {OrchestratorConfigMapper} from \"./configuration/orchestrator-config.mapper\";\r\nimport {OrcherstratorService} from \"./core/service/orcherstrator.service\";\r\n\r\n\r\n\r\n@NgModule({\r\n declarations: [],\r\n imports: [\r\n CommonModule,\r\n ]\r\n})\r\nexport class OrchestratorModule {\r\n public static forRoot(config: IAppConfig): ModuleWithProviders<OrchestratorModule> {\r\n console.log(config)\r\n return {\r\n ngModule: OrchestratorModule,\r\n providers: [\r\n {\r\n provide: ORCHESTRATOR_CONFIGURATION,\r\n useValue: OrchestratorConfigMapper.map(config),\r\n },\r\n OrcherstratorService\r\n ],\r\n };\r\n }\r\n}\r\n","import {Route} from '@angular/router';\r\n\r\nexport const orchestratorRoutes: Route[] = [\r\n {\r\n path: 'chats',\r\n loadChildren: () => import('./chat/chat.routes').then(m => m.chatRoutes)\r\n },\r\n {\r\n path: 'prompts',\r\n loadChildren: () => import('./prompts/prompts.routes').then(m => m.promptsRoutes)\r\n },\r\n {\r\n path: 'agents',\r\n loadChildren: () => import('./agents/agents.routes').then(m => m.agentsRoutes)\r\n },\r\n];\r\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;AAGO,MAAM,0BAA0B,GAAG,IAAI,cAAc,CAAsB,4BAA4B,CAAC;;MCAlG,wBAAwB,CAAA;IAC1B,OAAO,GAAG,CAAC,MAAW,EAAA;QACzB,OAAO;AACH,YAAA,eAAe,EAAE,MAAM,CAAC,kBAAkB,CAAW;AACrD,YAAA,iBAAiB,EAAE,MAAM,CAAC,qBAAqB,CAAW;SAC7D;;AAER;;MCFY,oBAAoB,CAAA;AACO,IAAA,IAAA;AAAuE,IAAA,MAAA;IAA3G,WAAoC,CAAA,IAAgB,EAAuD,MAA2B,EAAA;QAAlG,IAAI,CAAA,IAAA,GAAJ,IAAI;QAAmE,IAAM,CAAA,MAAA,GAAN,MAAM;;AAG1G,IAAA,QAAQ,CAAC,SAA8B,EAAA;QAC1C,MAAM,GAAG,GAAG,CAAG,EAAA,IAAI,CAAC,MAAM,CAAC,eAAe,CAAA,YAAA,CAAc;QACxD,OAAO,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG,EAAE,SAAS,CAAC;;AANhC,IAAA,OAAA,IAAA,GAAA,EAAA,CAAA,kBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,oBAAoB,4CACiC,0BAA0B,EAAA,CAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,UAAA,EAAA,CAAA;2GAD/E,oBAAoB,EAAA,CAAA;;2FAApB,oBAAoB,EAAA,UAAA,EAAA,CAAA;kBADhC;;0BAE0D,MAAM;2BAAC,0BAA0B;;;MCM/E,kBAAkB,CAAA;IACpB,OAAO,OAAO,CAAC,MAAkB,EAAA;AACpC,QAAA,OAAO,CAAC,GAAG,CAAC,MAA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QAAQ;AACd,QAAA,YAAY,EAAE,MAAM,OAAO,qDAAwB,CAAC,CAAC,IAAI,CAAC,CAAC,IAAI,CAAC,CAAC,YAAY;AAChF,KAAA;;;ACdL;;AAEG;;;;"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { a as OrchestratorModule, o as orchestratorRoutes } from './sftech-ng-orchestrator-sftech-ng-orchestrator-
|
|
1
|
+
export { a as OrchestratorModule, o as orchestratorRoutes } from './sftech-ng-orchestrator-sftech-ng-orchestrator-BzbWlbmE.mjs';
|
|
2
2
|
//# sourceMappingURL=sftech-ng-orchestrator.mjs.map
|
package/package.json
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"sftech-ng-orchestrator-sftech-ng-orchestrator-Dk76dBVe.mjs","sources":["../../../../libs/ng-orchestrator/src/lib/ng-orchestrator/configuration/orchestrator-configuration.token.ts","../../../../libs/ng-orchestrator/src/lib/ng-orchestrator/configuration/orchestrator-config.mapper.ts","../../../../libs/ng-orchestrator/src/lib/ng-orchestrator/core/service/orcherstrator.service.ts","../../../../libs/ng-orchestrator/src/lib/ng-orchestrator/orchestrator.module.ts","../../../../libs/ng-orchestrator/src/lib/ng-orchestrator/orchestrator.routes.ts","../../../../libs/ng-orchestrator/src/sftech-ng-orchestrator.ts"],"sourcesContent":["import {InjectionToken} from \"@angular/core\";\r\nimport {IOrchestratorConfig} from \"./orchestrator-config.interface\";\r\n\r\nexport const ORCHESTRATOR_CONFIGURATION = new InjectionToken<IOrchestratorConfig>('ORCHESTRATOR_CONFIGURATION');","// import {IAppConfig} from \"@sftech/ng-shared\";\r\nimport {IOrchestratorConfig} from \"./orchestrator-config.interface\";\r\n\r\nexport class OrchestratorConfigMapper {\r\n public static map(config: any): IOrchestratorConfig {\r\n return {\r\n orchestratorUrl: config['ORCHESTRATOR_URL'] as string,\r\n orchestratorDbUrl: config['ORCHESTRATOR_DB_URL'] as string,\r\n }\r\n }\r\n}","import {Inject, Injectable} from \"@angular/core\";\r\nimport {ORCHESTRATOR_CONFIGURATION} from \"../../configuration/orchestrator-configuration.token\";\r\nimport {IOrchestratorConfig} from \"../../configuration/orchestrator-config.interface\";\r\nimport {HttpClient} from \"@angular/common/http\";\r\nimport {IOrchestratorRunDto} from \"../dtos/orchestrator-run.dto\";\r\nimport {Observable} from \"rxjs\";\r\n\r\n@Injectable()\r\nexport class OrcherstratorService {\r\n public constructor(private readonly http: HttpClient, @Inject(ORCHESTRATOR_CONFIGURATION) private readonly config: IOrchestratorConfig) {\r\n }\r\n\r\n public runAgent(runConfig: IOrchestratorRunDto): Observable<any> {\r\n const url = `${this.config.orchestratorUrl}/api/generic/run`\r\n return this.http.post(url, runConfig);\r\n }\r\n}","import {ModuleWithProviders, NgModule} from '@angular/core';\r\nimport {CommonModule} from '@angular/common';\r\nimport {IAppConfig} from \"@sftech/ng-shared\";\r\nimport {ORCHESTRATOR_CONFIGURATION} from \"./configuration/orchestrator-configuration.token\";\r\nimport {OrchestratorConfigMapper} from \"./configuration/orchestrator-config.mapper\";\r\nimport {OrcherstratorService} from \"./core/service/orcherstrator.service\";\r\n\r\n\r\n\r\n@NgModule({\r\n declarations: [],\r\n imports: [\r\n CommonModule,\r\n ]\r\n})\r\nexport class OrchestratorModule {\r\n public static forRoot(config: IAppConfig): ModuleWithProviders<OrchestratorModule> {\r\n console.log(config)\r\n return {\r\n ngModule: OrchestratorModule,\r\n providers: [\r\n {\r\n provide: ORCHESTRATOR_CONFIGURATION,\r\n useValue: OrchestratorConfigMapper.map(config),\r\n },\r\n OrcherstratorService\r\n ],\r\n };\r\n }\r\n}\r\n","import {Route} from '@angular/router';\r\n\r\nexport const orchestratorRoutes: Route[] = [\r\n {\r\n path: 'chats',\r\n loadChildren: () => import('./chat/chat.routes').then(m => m.chatRoutes)\r\n },\r\n {\r\n path: 'prompts',\r\n loadChildren: () => import('./prompts/prompts.routes').then(m => m.promptsRoutes)\r\n },\r\n {\r\n path: 'agents',\r\n loadChildren: () => import('./agents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