@sftech/ng-orchestrator 0.0.13 → 0.0.17
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-agent.service-B1eDDbBp.mjs → sftech-ng-orchestrator-agent.service-DPJMw8a4.mjs} +3 -6
- package/fesm2022/sftech-ng-orchestrator-agent.service-DPJMw8a4.mjs.map +1 -0
- package/fesm2022/{sftech-ng-orchestrator-agents.routes-DMY81ODI.mjs → sftech-ng-orchestrator-agents.routes-B9GSWOIz.mjs} +11 -16
- package/fesm2022/sftech-ng-orchestrator-agents.routes-B9GSWOIz.mjs.map +1 -0
- package/fesm2022/sftech-ng-orchestrator-chats.routes-BLGhykMM.mjs +556 -0
- package/fesm2022/sftech-ng-orchestrator-chats.routes-BLGhykMM.mjs.map +1 -0
- package/fesm2022/{sftech-ng-orchestrator-prompt-display.component-Cs98Is_J.mjs → sftech-ng-orchestrator-prompt-display.component-Cd6Ff3KE.mjs} +59 -11
- package/fesm2022/sftech-ng-orchestrator-prompt-display.component-Cd6Ff3KE.mjs.map +1 -0
- package/fesm2022/sftech-ng-orchestrator-prompt.model-DhASegzq.mjs +57 -0
- package/fesm2022/sftech-ng-orchestrator-prompt.model-DhASegzq.mjs.map +1 -0
- package/fesm2022/{sftech-ng-orchestrator-prompts.routes-C_K_TNaw.mjs → sftech-ng-orchestrator-prompts.routes-DQZ_Hmjs.mjs} +2 -3
- package/fesm2022/sftech-ng-orchestrator-prompts.routes-DQZ_Hmjs.mjs.map +1 -0
- package/fesm2022/sftech-ng-orchestrator-sftech-ng-orchestrator-CJMmRHC-.mjs +222 -0
- package/fesm2022/sftech-ng-orchestrator-sftech-ng-orchestrator-CJMmRHC-.mjs.map +1 -0
- package/fesm2022/sftech-ng-orchestrator.mjs +1 -1
- package/lib/ng-orchestrator/{agents → admin/agents}/components/agent/agent-display/agent-display.component.d.ts +8 -8
- package/lib/ng-orchestrator/{agents → admin/agents}/components/agent/agents-list/agents-list.component.d.ts +4 -4
- package/lib/ng-orchestrator/{prompts → admin/prompts}/components/prompt/prompt-display/prompt-display.component.d.ts +4 -4
- package/lib/ng-orchestrator/{prompts → admin/prompts}/components/prompt/prompts-list/prompts-list.component.d.ts +4 -4
- package/lib/ng-orchestrator/{prompts → admin/prompts}/components/prompt-history/prompt-history-display/prompt-history-display.component.d.ts +5 -5
- package/lib/ng-orchestrator/{prompts → admin/prompts}/components/prompt-history/prompt-history-list/prompt-history-list.component.d.ts +5 -5
- package/lib/ng-orchestrator/chats/agent-chat/agent-chat-message/agent-chat-message.component.d.ts +11 -0
- package/lib/ng-orchestrator/chats/agent-chat/agent-chat-message-human-input/agent-chat-message-human-input.component.d.ts +20 -0
- package/lib/ng-orchestrator/chats/agent-chat/agent-chat.component.d.ts +44 -0
- package/lib/ng-orchestrator/chats/agent-selection/agent-selection.component.d.ts +22 -0
- package/lib/ng-orchestrator/chats/chats.component.d.ts +5 -0
- package/lib/ng-orchestrator/chats/chats.routes.d.ts +16 -0
- package/lib/ng-orchestrator/chats/core/dataprovider/agent-run-icon-text.dataprovider.d.ts +9 -0
- package/lib/ng-orchestrator/core/dataprovider/orchestrator-icon.provider.d.ts +13 -0
- package/lib/ng-orchestrator/{agents/core → core}/dtos/agent-create-request.dto.d.ts +0 -1
- package/lib/ng-orchestrator/{agents/core → core}/dtos/agent-response.dto.d.ts +1 -2
- package/lib/ng-orchestrator/core/dtos/agent-run-create-request.dto.d.ts +3 -0
- package/lib/ng-orchestrator/core/dtos/agent-run-response.dto.d.ts +12 -0
- package/lib/ng-orchestrator/{agents/core → core}/dtos/agent-update-request.dto.d.ts +0 -1
- package/lib/ng-orchestrator/core/dtos/chat-create-request.dto.d.ts +4 -0
- package/lib/ng-orchestrator/core/dtos/chat-message-response.dto.d.ts +6 -0
- package/lib/ng-orchestrator/core/dtos/chat-response.dto.d.ts +6 -0
- package/lib/ng-orchestrator/core/dtos/chat-update-request.dto.d.ts +3 -0
- package/lib/ng-orchestrator/core/enums/agent-run-status.enum.d.ts +9 -0
- package/lib/ng-orchestrator/core/models/agent-run.model.d.ts +19 -0
- package/lib/ng-orchestrator/{agents/core → core}/models/agent.model.d.ts +2 -3
- package/lib/ng-orchestrator/core/models/chat-message.model.d.ts +10 -0
- package/lib/ng-orchestrator/core/models/chat.model.d.ts +8 -0
- package/lib/ng-orchestrator/core/service/agent-run.service.d.ts +19 -0
- package/lib/ng-orchestrator/{agents/core/services → core/service}/agent.service.d.ts +1 -1
- package/lib/ng-orchestrator/core/service/chat.service.d.ts +20 -0
- package/lib/ng-orchestrator/core/service/orchestrator.service.d.ts +20 -0
- package/lib/ng-orchestrator/{prompts/core/services → core/service}/prompt-history.service.d.ts +1 -1
- package/lib/ng-orchestrator/{prompts/core/services → core/service}/prompt.service.d.ts +1 -1
- package/lib/ng-orchestrator/orchestrator.module.d.ts +2 -1
- package/package.json +2 -2
- package/fesm2022/sftech-ng-orchestrator-agent.service-B1eDDbBp.mjs.map +0 -1
- package/fesm2022/sftech-ng-orchestrator-agents.routes-DMY81ODI.mjs.map +0 -1
- package/fesm2022/sftech-ng-orchestrator-chat.routes-VZLqUmet.mjs +0 -154
- package/fesm2022/sftech-ng-orchestrator-chat.routes-VZLqUmet.mjs.map +0 -1
- package/fesm2022/sftech-ng-orchestrator-prompt-display.component-Cs98Is_J.mjs.map +0 -1
- package/fesm2022/sftech-ng-orchestrator-prompt.service-5pF5b4ys.mjs +0 -107
- package/fesm2022/sftech-ng-orchestrator-prompt.service-5pF5b4ys.mjs.map +0 -1
- package/fesm2022/sftech-ng-orchestrator-prompts.routes-C_K_TNaw.mjs.map +0 -1
- package/fesm2022/sftech-ng-orchestrator-sftech-ng-orchestrator-BVqY_Vj9.mjs +0 -158
- package/fesm2022/sftech-ng-orchestrator-sftech-ng-orchestrator-BVqY_Vj9.mjs.map +0 -1
- package/lib/ng-orchestrator/chat/chat.component.d.ts +0 -38
- package/lib/ng-orchestrator/chat/chat.routes.d.ts +0 -5
- package/lib/ng-orchestrator/core/dtos/llm-response.dto.d.ts +0 -10
- package/lib/ng-orchestrator/core/models/llm-response.model.d.ts +0 -12
- package/lib/ng-orchestrator/core/pipes/bold-input-vars.pipe.d.ts +0 -7
- package/lib/ng-orchestrator/core/service/orcherstrator.service.d.ts +0 -17
- /package/lib/ng-orchestrator/{agents → admin/agents}/agents.component.d.ts +0 -0
- /package/lib/ng-orchestrator/{agents → admin/agents}/agents.routes.d.ts +0 -0
- /package/lib/ng-orchestrator/{agents → admin/agents}/components/agent/agent-display/prompt-helper-modal/prompt-helper-modal.component.d.ts +0 -0
- /package/lib/ng-orchestrator/{prompts → admin/prompts}/prompts.component.d.ts +0 -0
- /package/lib/ng-orchestrator/{prompts → admin/prompts}/prompts.routes.d.ts +0 -0
- /package/lib/ng-orchestrator/{prompts/core → core}/dtos/prompt-history-create.dto.d.ts +0 -0
- /package/lib/ng-orchestrator/{prompts/core → core}/dtos/prompt-history-response.dto.d.ts +0 -0
- /package/lib/ng-orchestrator/{prompts/core → core}/dtos/prompt-history-update.dto.d.ts +0 -0
- /package/lib/ng-orchestrator/{prompts/core → core}/dtos/prompt-request.dto.d.ts +0 -0
- /package/lib/ng-orchestrator/{prompts/core → core}/dtos/prompt-update.dto.d.ts +0 -0
- /package/lib/ng-orchestrator/{prompts/core → core}/models/prompt-history.model.d.ts +0 -0
- /package/lib/ng-orchestrator/{prompts/core → core}/models/prompt.model.d.ts +0 -0
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"sftech-ng-orchestrator-prompt-display.component-Cs98Is_J.mjs","sources":["../../../../libs/ng-orchestrator/src/lib/ng-orchestrator/prompts/components/prompt-history/prompt-history-display/prompt-history-display.component.ts","../../../../libs/ng-orchestrator/src/lib/ng-orchestrator/prompts/components/prompt-history/prompt-history-display/prompt-history-display.component.html","../../../../libs/ng-orchestrator/src/lib/ng-orchestrator/prompts/components/prompt-history/prompt-history-list/prompt-history-list.component.ts","../../../../libs/ng-orchestrator/src/lib/ng-orchestrator/prompts/components/prompt-history/prompt-history-list/prompt-history-list.component.html","../../../../libs/ng-orchestrator/src/lib/ng-orchestrator/prompts/components/prompt/prompt-display/prompt-display.component.ts","../../../../libs/ng-orchestrator/src/lib/ng-orchestrator/prompts/components/prompt/prompt-display/prompt-display.component.html"],"sourcesContent":["import { Component, OnInit, inject } from '@angular/core';\r\nimport { FormControl, FormGroup, ReactiveFormsModule } from '@angular/forms';\r\nimport { BaseDialogComponent, BaseDisplayComponent } from '@sftech/ng-shared';\r\nimport { DatePicker } from 'primeng/datepicker';\r\nimport { FloatLabel } from 'primeng/floatlabel';\r\nimport { InputText } from 'primeng/inputtext';\r\nimport { Textarea } from 'primeng/textarea';\r\nimport { IPromptHistoryCreateDto } from '../../../core/dtos/prompt-history-create.dto';\r\nimport { IPromptHistoryResponseDto } from '../../../core/dtos/prompt-history-response.dto';\r\nimport { IPromptHistoryUpdateDto } from '../../../core/dtos/prompt-history-update.dto';\r\nimport { PromptHistory } from '../../../core/models/prompt-history.model';\r\nimport { PromptHistoryService } from '../../../core/services/prompt-history.service';\r\n\r\n@Component({\r\n selector: 'sftech-prompt-history-display',\r\n standalone: true,\r\n imports: [ReactiveFormsModule, BaseDialogComponent, DatePicker, FloatLabel, InputText, Textarea],\r\n templateUrl: './prompt-history-display.component.html',\r\n styleUrl: './prompt-history-display.component.css',\r\n})\r\nexport class PromptHistoryDisplayComponent extends BaseDisplayComponent<PromptHistory, IPromptHistoryCreateDto, IPromptHistoryUpdateDto, IPromptHistoryResponseDto> implements OnInit {\r\n protected override _repo = inject(PromptHistoryService);\r\n protected override _route = '/prompts/history';\r\n\r\n protected override initializeForm(): FormGroup {\r\n return new FormGroup({\r\n id: new FormControl({ value: this.model()!.id, disabled: true }),\r\n createdAt: new FormControl({ value: this.model()!.createdAt, disabled: true }),\r\n identifier: new FormControl({ value: this.model()!.identifier, disabled: true }),\r\n template: new FormControl({ value: this.model()!.template, disabled: this.canEdit }),\r\n name: new FormControl({ value: this.model()!.name, disabled: this.canEdit }),\r\n promptId: new FormControl({ value: this.model()!.promptId, disabled: this.canEdit }),\r\n });\r\n }\r\n protected override getNewModel(): PromptHistory {\r\n return new PromptHistory();\r\n }\r\n protected override mapFormToUpdateDto(): IPromptHistoryUpdateDto {\r\n throw new Error('Edit of PromptHistory is not supported');\r\n }\r\n protected override mapFormToCreateDto(): IPromptHistoryCreateDto {\r\n throw new Error('Manual creation of PromptHistory is not supported');\r\n }\r\n}\r\n","<sftech-base-dialog [hasHeader]=\"true\" (closed)=\"close({ operation: 'aborted' })\">\n <ng-template #header>\n <div class=\"flex justify-between\">\n <h2 class=\"text-xl font-semibold\">\n Prompt\n @if (model()) {\n <span class=\"ms-1\">{{ this.model()!.identifier }}</span>\n }\n </h2>\n </div>\n </ng-template>\n <ng-template #body>\n @if (model()) {\n <form [formGroup]=\"form\">\n <div class=\"grid grid-cols-4 mb-2 gap-2\">\n <p-floatlabel variant=\"in\" class=\"w-full\">\n <input type=\"text\" id=\"id\" formControlName=\"id\" pInputText class=\"w-full\"/>\n <label for=\"id\">{{ this.model()!.getUiNameForProperty('id') }}</label>\n </p-floatlabel>\n <p-floatlabel variant=\"in\" class=\"w-full\">\n <input type=\"text\" id=\"promptId\" formControlName=\"promptId\" pInputText class=\"w-full\"/>\n <label for=\"promptId\">{{ this.model()!.getUiNameForProperty('promptId') }}</label>\n </p-floatlabel>\n <p-floatlabel variant=\"in\" class=\"w-full\">\n <input type=\"text\" id=\"identifier\" formControlName=\"identifier\" pInputText class=\"w-full\"/>\n <label for=\"identifier\">{{ this.model()!.getUiNameForProperty('identifier') }}</label>\n </p-floatlabel>\n <p-floatlabel variant=\"in\" class=\"w-full\">\n <p-datePicker id=\"createdAt\" formControlName=\"createdAt\" dateFormat=\"dd.mm.yy\" [showTime]=\"true\"\n [hourFormat]=\"'24'\" [style]=\"{'width': '100%'}\"></p-datePicker>\n <label for=\"createdAt\">{{ this.model()!.getUiNameForProperty('createdAt') }}</label>\n </p-floatlabel>\n </div>\n <div class=\"w-full mb-2\">\n <p-floatlabel variant=\"in\" class=\"w-full\">\n <input type=\"text\" id=\"name\" formControlName=\"name\" pInputText class=\"w-full\"/>\n <label for=\"name\">{{ this.model()!.getUiNameForProperty('name') }}</label>\n </p-floatlabel>\n </div>\n <p-floatlabel variant=\"in\" class=\"w-full\">\n <textarea rows=\"5\" id=\"template\" formControlName=\"template\" pTextarea class=\"w-full\"></textarea>\n <label for=\"template\">{{ this.model()!.getUiNameForProperty('template') }}</label>\n </p-floatlabel>\n </form>\n }\n </ng-template>\n <ng-template #footer>\n </ng-template>\n</sftech-base-dialog>","import { DatePipe } from '@angular/common';\r\nimport { Component, OnInit, inject } from '@angular/core';\r\nimport { BaseListComponent, PaginatorComponent } from '@sftech/ng-shared';\r\nimport { Panel } from 'primeng/panel';\r\nimport { TableModule } from 'primeng/table';\r\nimport { IPromptHistoryCreateDto } from '../../../core/dtos/prompt-history-create.dto';\r\nimport { IPromptHistoryResponseDto } from '../../../core/dtos/prompt-history-response.dto';\r\nimport { IPromptHistoryUpdateDto } from '../../../core/dtos/prompt-history-update.dto';\r\nimport { PromptHistory } from '../../../core/models/prompt-history.model';\r\nimport { PromptHistoryService } from '../../../core/services/prompt-history.service';\r\nimport { PromptHistoryDisplayComponent } from '../prompt-history-display/prompt-history-display.component';\r\n\r\n@Component({\r\n selector: 'sftech-prompt-history-list',\r\n standalone: true,\r\n imports: [PaginatorComponent, DatePipe, Panel, TableModule],\r\n templateUrl: './prompt-history-list.component.html',\r\n styleUrl: './prompt-history-list.component.scss',\r\n})\r\nexport class PromptHistoryListComponent extends BaseListComponent<PromptHistory, IPromptHistoryCreateDto, IPromptHistoryUpdateDto, IPromptHistoryResponseDto> implements OnInit {\r\n protected override _repo = inject(PromptHistoryService);\r\n protected override _route = '/prompting/prompt-history';\r\n protected override _modalComponent = PromptHistoryDisplayComponent;\r\n protected detailModalHeaderText = 'Prompt-Details'\r\n}\r\n","@if (!data()) {\n <p-panel [toggleable]=\"false\">\n <p class=\"m-0\">\n Daten werden geladen...\n </p>\n </p-panel>\n} @else if (data()!.length === 0) {\n <p-panel [toggleable]=\"false\">\n <p class=\"m-0\">\n Es sind keine Prompts vorhanden.\n </p>\n </p-panel>\n} @else if (data()!.length > 0) {\n <p-table [value]=\"data()!\"\n stripedRows\n [tableStyle]=\"{ 'min-width': '50rem' }\"\n selectionMode=\"single\"\n [resizableColumns]=\"true\"\n dataKey=\"id\"\n >\n <ng-template #header>\n <tr>\n @for(column of data()![0].propertiesToShow; track column) {\n <th>\n {{ data()![0].getUiNameForProperty(column) }}\n </th>\n }\n </tr>\n </ng-template>\n <ng-template #body let-prompt>\n <tr (click)=\"openDisplay(prompt.id)\" [pSelectableRow]=\"prompt\">\n @for(column of data()![0].propertiesToShow; track column) {\n <td style=\"white-space: pre-wrap\">\n @if (column === 'createdAt') {\n {{ prompt.getPropertyValue(column) | date: 'dd.MM.yyyy - HH:mm' }}\n } @else {\n {{ prompt.getPropertyValue(column) }}\n }\n </td>\n }\n </tr>\n </ng-template>\n </p-table>\n <sftech-paginator [pagination]=\"odata().pagination\" (odataChanged)=\"updatePagination($event)\"></sftech-paginator>\n}\n\n","import { Component, effect, inject, signal } from '@angular/core';\r\nimport { FormControl, FormGroup, ReactiveFormsModule } from '@angular/forms';\r\nimport { BaseDialogComponent, BaseDisplayComponent, EFilterOperator, EFilterTypes, ESortDirection, FormErrorDisplayComponent, OData, ODataOrder, OdataFilter, OdataFilterCollection } from '@sftech/ng-shared';\r\nimport { AutoFocus } from 'primeng/autofocus';\r\nimport { Button } from 'primeng/button';\r\nimport { DatePicker } from 'primeng/datepicker';\r\nimport { DialogService } from 'primeng/dynamicdialog';\r\nimport { FloatLabel } from 'primeng/floatlabel';\r\nimport { InputText } from 'primeng/inputtext';\r\nimport { Textarea } from 'primeng/textarea';\r\nimport { IPromptResponseDto } from '../../../core/dtos/prompt-request.dto';\r\nimport { IPromptUpdateDto } from '../../../core/dtos/prompt-update.dto';\r\nimport { Prompt } from '../../../core/models/prompt.model';\r\nimport { PromptService } from '../../../core/services/prompt.service';\r\nimport { PromptHistoryListComponent } from '../../prompt-history/prompt-history-list/prompt-history-list.component';\r\n\r\n@Component({\r\n selector: 'sftech-prompt-display',\r\n imports: [ReactiveFormsModule, InputText, AutoFocus, FloatLabel, DatePicker, Textarea, Button, BaseDialogComponent, PromptHistoryListComponent, FormErrorDisplayComponent],\r\n providers: [DialogService],\r\n templateUrl: './prompt-display.component.html',\r\n styleUrl: './prompt-display.component.css',\r\n})\r\nexport class PromptDisplayComponent extends BaseDisplayComponent<Prompt, IPromptUpdateDto, IPromptUpdateDto, IPromptResponseDto> {\r\n protected override _repo = inject(PromptService);\r\n protected override _route = 'prompt';\r\n\r\n public odataForHistories = signal<OData | undefined>(undefined);\r\n\r\n constructor() {\r\n super();\r\n effect(() => {\r\n if (this.model()?.id) {\r\n this.odataForHistories.set(this.getOdataForHistories());\r\n }\r\n });\r\n }\r\n\r\n protected override initializeForm(): FormGroup {\r\n return new FormGroup({\r\n id: new FormControl({ value: this.model()!.id, disabled: true }),\r\n createdAt: new FormControl({ value: this.model()!.createdAt, disabled: true }),\r\n identifier: new FormControl({ value: this.model()!.identifier, disabled: true }),\r\n template: new FormControl(this.model()?.template),\r\n name: new FormControl(this.model()?.name),\r\n });\r\n }\r\n protected override getNewModel(): Prompt {\r\n return new Prompt();\r\n }\r\n protected override mapFormToUpdateDto(): IPromptUpdateDto {\r\n return {\r\n identifier: this.form.get('identifier')!.value,\r\n template: this.form.get('template')!.value,\r\n name: this.form.get('name')!.value,\r\n };\r\n }\r\n protected override mapFormToCreateDto(): IPromptUpdateDto {\r\n throw new Error('Method not implemented.');\r\n }\r\n\r\n public getOdataForHistories(): OData {\r\n const odata = new OData();\r\n odata.filter = new OdataFilterCollection();\r\n odata.filter.addAnd(new OdataFilter('promptId', this.model()!.id!, EFilterOperator.EQUALS, EFilterTypes.NUMERIC));\r\n odata.order = new ODataOrder();\r\n odata.order.column = 'createdAt';\r\n odata.order.direction = ESortDirection.DESC;\r\n return odata;\r\n }\r\n}\r\n","<sftech-base-dialog [hasHeader]=\"true\" (closed)=\"close({ operation: 'aborted' })\">\r\n <ng-template #header>\r\n <div class=\"flex justify-between\">\r\n <h2 class=\"text-xl font-semibold\">\r\n Prompt\r\n @if (model()) {\r\n <span class=\"ms-1\">{{ this.model()!.identifier }}</span>\r\n }\r\n </h2>\r\n </div>\r\n </ng-template>\r\n <ng-template #body>\r\n @if (model()) {\r\n <form [formGroup]=\"form\" [pAutoFocus]=\"true\" class=\"mb-5\">\r\n <div class=\"grid grid-cols-3 mb-2 gap-2\">\r\n <p-floatlabel variant=\"in\" class=\"w-full\">\r\n <input type=\"text\" id=\"id\" formControlName=\"id\" pInputText class=\"w-full\" />\r\n <label for=\"id\">{{ this.model()!.getUiNameForProperty('id') }}</label>\r\n </p-floatlabel>\r\n <p-floatlabel variant=\"in\" class=\"w-full\">\r\n <input type=\"text\" id=\"identifier\" formControlName=\"identifier\" pInputText class=\"w-full\" />\r\n <label for=\"identifier\">{{ this.model()!.getUiNameForProperty('identifier') }}</label>\r\n </p-floatlabel>\r\n <p-floatlabel variant=\"in\" class=\"w-full\">\r\n <p-datePicker id=\"createdAt\" formControlName=\"createdAt\" dateFormat=\"dd.mm.yy\" [showTime]=\"true\"\r\n [hourFormat]=\"'24'\" [style]=\"{'width': '100%'}\"></p-datePicker>\r\n <label for=\"createdAt\">{{ this.model()!.getUiNameForProperty('createdAt') }}</label>\r\n </p-floatlabel>\r\n </div>\r\n <p-floatlabel variant=\"in\" class=\"w-full mb-2\">\r\n <input type=\"text\" id=\"name\" formControlName=\"name\" pInputText class=\"w-full\"/>\r\n <label for=\"name\">{{ this.model()!.getUiNameForProperty('name') }}</label>\r\n </p-floatlabel>\r\n <p-floatlabel variant=\"in\" class=\"w-full\">\r\n <textarea rows=\"5\" id=\"template\" formControlName=\"template\" pTextarea class=\"w-full\"></textarea>\r\n <label for=\"template\">{{ this.model()!.getUiNameForProperty('template') }}</label>\r\n </p-floatlabel>\r\n <div class=\"flex justify-end mt-2\">\r\n <p-button label=\"Speichern\" type=\"submit\" (onClick)=\"submitForm()\" (keyup.enter)=\"submitForm()\" [disabled]=\"!form.dirty\"></p-button>\r\n </div>\r\n </form>\r\n @if (odataForHistories()) {\r\n <hr class=\"text-gray-200 my-3 w-full\" />\r\n <h2 class=\"font-bold mt-2 mb-5\">Prompt-History</h2>\r\n <sftech-prompt-history-list [odata]=\"odataForHistories()!\" [canEdit]=\"false\" [openDisplayAsModal]=\"true\"></sftech-prompt-history-list>\r\n }\r\n }\r\n </ng-template>\r\n <ng-template #footer>\r\n\r\n </ng-template>\r\n</sftech-base-dialog>\r\n"],"names":["i1"],"mappings":";;;;;;;;;;;;;;;;;;AAoBM,MAAO,6BAA8B,SAAQ,oBAAgH,CAAA;AAC5I,IAAA,KAAK,GAAG,MAAM,CAAC,oBAAoB,CAAC;IACpC,MAAM,GAAG,kBAAkB;IAE3B,cAAc,GAAA;QAC7B,OAAO,IAAI,SAAS,CAAC;AACjB,YAAA,EAAE,EAAE,IAAI,WAAW,CAAC,EAAE,KAAK,EAAE,IAAI,CAAC,KAAK,EAAG,CAAC,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;AAChE,YAAA,SAAS,EAAE,IAAI,WAAW,CAAC,EAAE,KAAK,EAAE,IAAI,CAAC,KAAK,EAAG,CAAC,SAAS,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;AAC9E,YAAA,UAAU,EAAE,IAAI,WAAW,CAAC,EAAE,KAAK,EAAE,IAAI,CAAC,KAAK,EAAG,CAAC,UAAU,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;YAChF,QAAQ,EAAE,IAAI,WAAW,CAAC,EAAE,KAAK,EAAE,IAAI,CAAC,KAAK,EAAG,CAAC,QAAQ,EAAE,QAAQ,EAAE,IAAI,CAAC,OAAO,EAAE,CAAC;YACpF,IAAI,EAAE,IAAI,WAAW,CAAC,EAAE,KAAK,EA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/http';
|
|
2
|
-
import * as i0 from '@angular/core';
|
|
3
|
-
import { Inject, Injectable } from '@angular/core';
|
|
4
|
-
import { BaseDbModel, EFilterTypes, BaseDbApiService } from '@sftech/ng-shared';
|
|
5
|
-
import { a as ORCHESTRATOR_CONFIGURATION } from './sftech-ng-orchestrator-sftech-ng-orchestrator-BVqY_Vj9.mjs';
|
|
6
|
-
|
|
7
|
-
class PromptHistory extends BaseDbModel {
|
|
8
|
-
identifier;
|
|
9
|
-
name;
|
|
10
|
-
template;
|
|
11
|
-
promptId;
|
|
12
|
-
propertiesToShow = ['name', 'identifier', 'template', 'promptId', 'createdAt'];
|
|
13
|
-
propertyUINames = new Map([
|
|
14
|
-
['name', 'name'],
|
|
15
|
-
['template', 'template'],
|
|
16
|
-
['histories', 'histories'],
|
|
17
|
-
['promptId', 'Prompt-ID'],
|
|
18
|
-
['createdAt', 'erstellt'],
|
|
19
|
-
]);
|
|
20
|
-
fromDto(dto) {
|
|
21
|
-
const model = new PromptHistory();
|
|
22
|
-
model.id = dto.id;
|
|
23
|
-
model.name = dto.name;
|
|
24
|
-
model.createdAt = new Date(dto.createdAt);
|
|
25
|
-
model.identifier = dto.identifier;
|
|
26
|
-
model.template = dto.template;
|
|
27
|
-
model.promptId = dto.promptId;
|
|
28
|
-
return model;
|
|
29
|
-
}
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
class Prompt extends BaseDbModel {
|
|
33
|
-
identifier;
|
|
34
|
-
name;
|
|
35
|
-
template;
|
|
36
|
-
histories = [];
|
|
37
|
-
propertiesToShow = ['name', 'identifier', 'template'];
|
|
38
|
-
propertyUINames = new Map([
|
|
39
|
-
['name', 'Name'],
|
|
40
|
-
['template', 'Template'],
|
|
41
|
-
['identifier', 'identifier'],
|
|
42
|
-
]);
|
|
43
|
-
propertyFilterType = new Map([
|
|
44
|
-
['name', EFilterTypes.STRING],
|
|
45
|
-
['template', EFilterTypes.STRING],
|
|
46
|
-
['identifier', EFilterTypes.STRING],
|
|
47
|
-
]);
|
|
48
|
-
fromDto(dto) {
|
|
49
|
-
const model = new Prompt();
|
|
50
|
-
model.id = dto.id;
|
|
51
|
-
model.createdAt = new Date(dto.createdAt);
|
|
52
|
-
model.name = dto.name;
|
|
53
|
-
model.identifier = dto.identifier;
|
|
54
|
-
model.template = dto.template;
|
|
55
|
-
model.histories = dto.histories ? PromptHistory.fromDtos(dto.histories) : [];
|
|
56
|
-
return model;
|
|
57
|
-
}
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
class PromptHistoryService extends BaseDbApiService {
|
|
61
|
-
http;
|
|
62
|
-
config;
|
|
63
|
-
constructor(http, config) {
|
|
64
|
-
super(http, config);
|
|
65
|
-
this.http = http;
|
|
66
|
-
this.config = config;
|
|
67
|
-
this.url = `${this.config.orchestratorDbUrl}/prompts/histories`;
|
|
68
|
-
}
|
|
69
|
-
getNewModel() {
|
|
70
|
-
return new PromptHistory();
|
|
71
|
-
}
|
|
72
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.14", ngImport: i0, type: PromptHistoryService, deps: [{ token: i1.HttpClient }, { token: ORCHESTRATOR_CONFIGURATION }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
73
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.14", ngImport: i0, type: PromptHistoryService, providedIn: 'root' });
|
|
74
|
-
}
|
|
75
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.14", ngImport: i0, type: PromptHistoryService, decorators: [{
|
|
76
|
-
type: Injectable,
|
|
77
|
-
args: [{ providedIn: 'root' }]
|
|
78
|
-
}], ctorParameters: () => [{ type: i1.HttpClient }, { type: undefined, decorators: [{
|
|
79
|
-
type: Inject,
|
|
80
|
-
args: [ORCHESTRATOR_CONFIGURATION]
|
|
81
|
-
}] }] });
|
|
82
|
-
|
|
83
|
-
class PromptService extends BaseDbApiService {
|
|
84
|
-
http;
|
|
85
|
-
config;
|
|
86
|
-
constructor(http, config) {
|
|
87
|
-
super(http, config);
|
|
88
|
-
this.http = http;
|
|
89
|
-
this.config = config;
|
|
90
|
-
this.url = `${this.config.orchestratorDbUrl}/prompts`;
|
|
91
|
-
}
|
|
92
|
-
getNewModel() {
|
|
93
|
-
return new Prompt();
|
|
94
|
-
}
|
|
95
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.14", ngImport: i0, type: PromptService, deps: [{ token: i1.HttpClient }, { token: ORCHESTRATOR_CONFIGURATION }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
96
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.14", ngImport: i0, type: PromptService, providedIn: 'root' });
|
|
97
|
-
}
|
|
98
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.14", ngImport: i0, type: PromptService, decorators: [{
|
|
99
|
-
type: Injectable,
|
|
100
|
-
args: [{ providedIn: 'root' }]
|
|
101
|
-
}], ctorParameters: () => [{ type: i1.HttpClient }, { type: undefined, decorators: [{
|
|
102
|
-
type: Inject,
|
|
103
|
-
args: [ORCHESTRATOR_CONFIGURATION]
|
|
104
|
-
}] }] });
|
|
105
|
-
|
|
106
|
-
export { PromptService as P, PromptHistoryService as a, Prompt as b, PromptHistory as c };
|
|
107
|
-
//# sourceMappingURL=sftech-ng-orchestrator-prompt.service-5pF5b4ys.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"sftech-ng-orchestrator-prompt.service-5pF5b4ys.mjs","sources":["../../../../libs/ng-orchestrator/src/lib/ng-orchestrator/prompts/core/models/prompt-history.model.ts","../../../../libs/ng-orchestrator/src/lib/ng-orchestrator/prompts/core/models/prompt.model.ts","../../../../libs/ng-orchestrator/src/lib/ng-orchestrator/prompts/core/services/prompt-history.service.ts","../../../../libs/ng-orchestrator/src/lib/ng-orchestrator/prompts/core/services/prompt.service.ts"],"sourcesContent":["import { BaseDbModel, IBaseDbResponseDto } from '@sftech/ng-shared';\r\nimport { IPromptHistoryResponseDto } from '../dtos/prompt-history-response.dto';\r\nimport { IPromptResponseDto } from '../dtos/prompt-request.dto';\r\n\r\nexport class PromptHistory extends BaseDbModel {\r\n public identifier!: string;\r\n public name!: string;\r\n public template!: string;\r\n public promptId!: number;\r\n\r\n public override propertiesToShow = ['name', 'identifier', 'template', 'promptId', 'createdAt'];\r\n\r\n public override propertyUINames = new Map<string, string>([\r\n ['name', 'name'],\r\n ['template', 'template'],\r\n ['histories', 'histories'],\r\n ['promptId', 'Prompt-ID'],\r\n ['createdAt', 'erstellt'],\r\n ]);\r\n\r\n public override fromDto(dto: IPromptHistoryResponseDto): PromptHistory {\r\n const model = new PromptHistory();\r\n model.id = dto.id;\r\n model.name = dto.name;\r\n model.createdAt = new Date(dto.createdAt);\r\n model.identifier = dto.identifier;\r\n model.template = dto.template;\r\n model.promptId = dto.promptId;\r\n return model;\r\n }\r\n}\r\n","import { BaseDbModel, EFilterTypes, IBaseDbResponseDto } from '@sftech/ng-shared';\r\nimport { IPromptResponseDto } from '../dtos/prompt-request.dto';\r\nimport { PromptHistory } from './prompt-history.model';\r\n\r\nexport class Prompt extends BaseDbModel {\r\n public identifier!: string;\r\n public name!: string;\r\n public template!: string;\r\n public histories: PromptHistory[] = [];\r\n\r\n public override propertiesToShow = ['name', 'identifier', 'template'];\r\n\r\n public override propertyUINames = new Map<string, string>([\r\n ['name', 'Name'],\r\n ['template', 'Template'],\r\n ['identifier', 'identifier'],\r\n ]);\r\n\r\n public override propertyFilterType = new Map<string, EFilterTypes>([\r\n ['name', EFilterTypes.STRING],\r\n ['template', EFilterTypes.STRING],\r\n ['identifier', EFilterTypes.STRING],\r\n ]);\r\n\r\n public override fromDto(dto: IPromptResponseDto): Prompt {\r\n const model = new Prompt();\r\n model.id = dto.id;\r\n model.createdAt = new Date(dto.createdAt);\r\n model.name = dto.name;\r\n model.identifier = dto.identifier;\r\n model.template = dto.template;\r\n model.histories = dto.histories ? (PromptHistory.fromDtos(dto.histories) as PromptHistory[]) : [];\r\n return model;\r\n }\r\n}\r\n","import { HttpClient } from '@angular/common/http';\r\nimport { Inject, Injectable } from '@angular/core';\r\nimport { BaseDbApiService } from '@sftech/ng-shared';\r\nimport { IOrchestratorConfig } from '../../../core/configuration/orchestrator-config.interface';\r\nimport { ORCHESTRATOR_CONFIGURATION } from '../../../core/configuration/orchestrator-configuration.token';\r\nimport { IPromptHistoryResponseDto } from '../dtos/prompt-history-response.dto';\r\nimport { IPromptHistoryUpdateDto } from '../dtos/prompt-history-update.dto';\r\nimport { PromptHistory } from '../models/prompt-history.model';\r\n\r\n@Injectable({ providedIn: 'root' })\r\nexport class PromptHistoryService extends BaseDbApiService<PromptHistory, IPromptHistoryUpdateDto, IPromptHistoryUpdateDto, IPromptHistoryResponseDto> {\r\n constructor(\r\n protected override readonly http: HttpClient,\r\n @Inject(ORCHESTRATOR_CONFIGURATION) protected override readonly config: IOrchestratorConfig,\r\n ) {\r\n super(http, config);\r\n this.url = `${this.config.orchestratorDbUrl}/prompts/histories`;\r\n }\r\n\r\n protected getNewModel(): PromptHistory {\r\n return new PromptHistory();\r\n }\r\n}\r\n","import { HttpClient } from '@angular/common/http';\r\nimport { Inject, Injectable } from '@angular/core';\r\nimport { BaseDbApiService } from '@sftech/ng-shared';\r\nimport { IOrchestratorConfig } from '../../../core/configuration/orchestrator-config.interface';\r\nimport { ORCHESTRATOR_CONFIGURATION } from '../../../core/configuration/orchestrator-configuration.token';\r\nimport { IPromptResponseDto } from '../dtos/prompt-request.dto';\r\nimport { IPromptUpdateDto } from '../dtos/prompt-update.dto';\r\nimport { Prompt } from '../models/prompt.model';\r\n\r\n@Injectable({ providedIn: 'root' })\r\nexport class PromptService extends BaseDbApiService<Prompt, IPromptUpdateDto, IPromptUpdateDto, IPromptResponseDto> {\r\n constructor(\r\n protected override readonly http: HttpClient,\r\n @Inject(ORCHESTRATOR_CONFIGURATION) protected override readonly config: IOrchestratorConfig,\r\n ) {\r\n super(http, config);\r\n this.url = `${this.config.orchestratorDbUrl}/prompts`;\r\n }\r\n\r\n protected getNewModel(): Prompt {\r\n return new Prompt();\r\n }\r\n}\r\n"],"names":[],"mappings":";;;;;;AAIM,MAAO,aAAc,SAAQ,WAAW,CAAA;AACnC,IAAA,UAAU;AACV,IAAA,IAAI;AACJ,IAAA,QAAQ;AACR,IAAA,QAAQ;AAEC,IAAA,gBAAgB,GAAG,CAAC,MAAM,EAAE,YAAY,EAAE,UAAU,EAAE,UAAU,EAAE,WAAW,CAAC;IAE9E,eAAe,GAAG,IAAI,GAAG,CAAiB;QACtD,CAAC,MAAM,EAAE,MAAM,CAAC;QAChB,CAAC,UAAU,EAAE,UAAU,CAAC;QACxB,CAAC,WAAW,EAAE,WAAW,CAAC;QAC1B,CAAC,UAAU,EAAE,WAAW,CAAC;QACzB,CAAC,WAAW,EAAE,UAAU,CAAC;AAC5B,KAAA,CAAC;AAEc,IAAA,OAAO,CAAC,GAA8B,EAAA;AAClD,QAAA,MAAM,KAAK,GAAG,IAAI,aAAa,EAAE;AACjC,QAAA,KAAK,CAAC,EAAE,GAAG,GAAG,CAAC,EAAE;AACjB,QAAA,KAAK,CAAC,IAAI,GAAG,GAAG,CAAC,IAAI;QACrB,KAAK,CAAC,SAAS,GAAG,IAAI,IAAI,CAAC,GAAG,CAAC,SAAS,CAAC;AACzC,QAAA,KAAK,CAAC,UAAU,GAAG,GAAG,CAAC,UAAU;AACjC,QAAA,KAAK,CAAC,QAAQ,GAAG,GAAG,CAAC,QAAQ;AAC7B,QAAA,KAAK,CAAC,QAAQ,GAAG,GAAG,CAAC,QAAQ;AAC7B,QAAA,OAAO,KAAK;;AAEnB;;AC1BK,MAAO,MAAO,SAAQ,WAAW,CAAA;AAC5B,IAAA,UAAU;AACV,IAAA,IAAI;AACJ,IAAA,QAAQ;IACR,SAAS,GAAoB,EAAE;IAEtB,gBAAgB,GAAG,CAAC,MAAM,EAAE,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AAA,EAAA,EAAA,CAAA,eAAA,CAAA,UAAA,EAAA,CAAA;AAH7B,IAAA,OAAA,KAAA,GAAA,EAAA,CAAA,qBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,SAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,aAAa,cADA,MAAM,EAAA,CAAA;;4FACnB,aAAa,EAAA,UAAA,EAAA,CAAA;kBADzB,UAAU;mBAAC,EAAE,UAAU,EAAE,MAAM,EAAE;;0BAIzB,MAAM;2BAAC,0BAA0B;;;;;"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"sftech-ng-orchestrator-prompts.routes-C_K_TNaw.mjs","sources":["../../../../libs/ng-orchestrator/src/lib/ng-orchestrator/prompts/components/prompt/prompts-list/prompts-list.component.ts","../../../../libs/ng-orchestrator/src/lib/ng-orchestrator/prompts/components/prompt/prompts-list/prompts-list.component.html","../../../../libs/ng-orchestrator/src/lib/ng-orchestrator/prompts/prompts.component.ts","../../../../libs/ng-orchestrator/src/lib/ng-orchestrator/prompts/prompts.component.html","../../../../libs/ng-orchestrator/src/lib/ng-orchestrator/prompts/prompts.routes.ts"],"sourcesContent":["import { Component, inject } from '@angular/core';\r\nimport { BaseListComponent, IconProvider, PaginatorComponent } from '@sftech/ng-shared';\r\nimport { DialogService } from 'primeng/dynamicdialog';\r\nimport { Panel } from 'primeng/panel';\r\nimport { TableModule } from 'primeng/table';\r\nimport { IPromptResponseDto } from '../../../core/dtos/prompt-request.dto';\r\nimport { IPromptUpdateDto } from '../../../core/dtos/prompt-update.dto';\r\nimport { Prompt } from '../../../core/models/prompt.model';\r\nimport { PromptService } from '../../../core/services/prompt.service';\r\nimport { PromptDisplayComponent } from '../prompt-display/prompt-display.component';\r\n\r\n@Component({\r\n selector: 'sftech-prompts-list',\r\n imports: [PaginatorComponent, Panel, TableModule],\r\n providers: [DialogService],\r\n templateUrl: './prompts-list.component.html',\r\n styleUrl: './prompts-list.component.css',\r\n})\r\nexport class PromptsListComponent extends BaseListComponent<Prompt, IPromptUpdateDto, IPromptUpdateDto, IPromptResponseDto> {\r\n protected _repo = inject(PromptService);\r\n protected _route = 'prompts';\r\n protected _modalComponent = PromptDisplayComponent;\r\n protected detailModalHeaderText = 'Prompt-Details'\r\n\r\n public iconProvider = IconProvider;\r\n\r\n constructor() {\r\n super();\r\n }\r\n}\r\n","<h1 class=\"text-primary-900 font-bold text-xl p-2 my-4\">Prompt-Übersicht</h1>\r\n@if (!data()) {\r\n <p-panel [toggleable]=\"false\">\r\n <p class=\"m-0\">\r\n Daten werden geladen...\r\n </p>\r\n </p-panel>\r\n} @else if (data()!.length === 0) {\r\n <p-panel [toggleable]=\"false\">\r\n <p class=\"m-0\">\r\n Es sind keine Prompts vorhanden.\r\n </p>\r\n </p-panel>\r\n} @else if (data()!.length > 0) {\r\n <p-table [value]=\"data()!\"\r\n stripedRows\r\n [tableStyle]=\"{ 'min-width': '50rem' }\"\r\n selectionMode=\"single\"\r\n [resizableColumns]=\"true\"\r\n dataKey=\"id\"\r\n >\r\n <ng-template #header>\r\n <tr>\r\n @for(column of data()![0].propertiesToShow; track column) {\r\n <th>{{ data()![0].getUiNameForProperty(column) }}</th>\r\n }\r\n </tr>\r\n </ng-template>\r\n <ng-template #body let-prompt>\r\n <tr (click)=\"openDisplay(prompt.id)\" [pSelectableRow]=\"prompt\">\r\n @for(column of data()![0].propertiesToShow; track column) {\r\n <td style=\"white-space: pre-wrap\">\r\n {{ prompt.getPropertyValue(column) }}\r\n </td>\r\n }\r\n </tr>\r\n </ng-template>\r\n </p-table>\r\n <sftech-paginator [pagination]=\"odata().pagination\" (odataChanged)=\"updatePagination($event)\"></sftech-paginator>\r\n}\r\n\r\n","import { Component } from '@angular/core';\r\nimport { RouterOutlet } from '@angular/router';\r\n\r\n@Component({\r\n selector: 'sftech-prompts',\r\n imports: [RouterOutlet],\r\n templateUrl: './prompts.component.html',\r\n styleUrl: './prompts.component.css',\r\n})\r\nexport class PromptsComponent {}\r\n","<router-outlet></router-outlet>\r\n\r\n","import { PromptsListComponent } from './components/prompt/prompts-list/prompts-list.component';\r\nimport { PromptsComponent } from './prompts.component';\r\n\r\nexport const promptsRoutes = [\r\n {\r\n path: '',\r\n component: PromptsComponent,\r\n children: [\r\n {\r\n path: '',\r\n component: PromptsListComponent,\r\n },\r\n ],\r\n },\r\n];\r\n"],"names":[],"mappings":";;;;;;;;;;;AAkBM,MAAO,oBAAqB,SAAQ,iBAAiF,CAAA;AAC7G,IAAA,KAAK,GAAG,MAAM,CAAC,aAAa,CAAC;IAC7B,MAAM,GAAG,SAAS;IAClB,eAAe,GAAG,sBAAsB;IACxC,qBAAqB,GAAG,gBAAgB;IAE3C,YAAY,GAAG,YAAY;AAElC,IAAA,WAAA,GAAA;AACI,QAAA,KAAK,EAAE;;wGATF,oBAAoB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA;4FAApB,oBAAoB,EAAA,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,qBAAA,EAAA,SAAA,EAJlB,CAAC,aAAa,CAAC,EAAA,eAAA,EAAA,IAAA,EAAA,QAAA,EAAA,EAAA,EAAA,QAAA,ECd9B,6hDAyCA,EAAA,MAAA,EAAA,CAAA,EAAA,CAAA,EAAA,YAAA,EAAA,CAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,ED5Bc,kBAAkB,EAAA,QAAA,EAAA,kBAAA,EAAA,MAAA,EAAA,CAAA,YAAA,CAAA,EAAA,OAAA,EAAA,CAAA,cAAA,CAAA,EAAA,EAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EAAE,KAAK,EAAA,QAAA,EAAA,SAAA,EAAA,MAAA,EAAA,CAAA,YAAA,EAAA,QAAA,EAAA,WAAA,EAAA,OAAA,EAAA,YAAA,EAAA,SAAA,EAAA,YAAA,EAAA,cAAA,EAAA,YAAA,EAAA,SAAA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AA,MAAA,EAAA,CAAA,MAAA,EAAA,kBAAA,CAAA,EAAA,OAAA,EAAA,CAAA,UAAA,EAAA,YAAA,EAAA,QAAA,EAAA,QAAA,CAAA,EAAA,QAAA,EAAA,CAAA,QAAA,CAAA,EAAA,CAAA,EAAA,CAAA;;4FAIb,gBAAgB,EAAA,UAAA,EAAA,CAAA;kBAN5B,SAAS;+BACI,gBAAgB,EAAA,OAAA,EACjB,CAAC,YAAY,CAAC,EAAA,QAAA,EAAA,yCAAA,EAAA;;;AEFd,MAAA,aAAa,GAAG;AACzB,IAAA;AACI,QAAA,IAAI,EAAE,EAAE;AACR,QAAA,SAAS,EAAE,gBAAgB;AAC3B,QAAA,QAAQ,EAAE;AACN,YAAA;AACI,gBAAA,IAAI,EAAE,EAAE;AACR,gBAAA,SAAS,EAAE,oBAAoB;AAClC,aAAA;AACJ,SAAA;AACJ,KAAA;;;;;"}
|
|
@@ -1,158 +0,0 @@
|
|
|
1
|
-
import { CommonModule } from '@angular/common';
|
|
2
|
-
import * as i0 from '@angular/core';
|
|
3
|
-
import { InjectionToken, Inject, Injectable, NgModule } from '@angular/core';
|
|
4
|
-
import * as i1 from '@angular/common/http';
|
|
5
|
-
import { MappedApiResponseRaw, MappedApiError } from '@sftech/ng-shared';
|
|
6
|
-
import { map, catchError, of } from 'rxjs';
|
|
7
|
-
|
|
8
|
-
// biome-ignore lint/complexity/noStaticOnlyClass: <explanation>
|
|
9
|
-
class OrchestratorConfigMapper {
|
|
10
|
-
static map(config) {
|
|
11
|
-
return {
|
|
12
|
-
orchestratorUrl: config['ORCHESTRATOR_URL'],
|
|
13
|
-
orchestratorDbUrl: config['ORCHESTRATOR_DB_URL'],
|
|
14
|
-
defaultConnectorUrl: config['DEFAULT_CONNECTOR_URL'],
|
|
15
|
-
defaultAnswerSpecification: config['DEFAULT_ANSWER_SPECIFICATION'],
|
|
16
|
-
defaultLlmProvider: config['DEFAULT_LLM_PROVIDER'],
|
|
17
|
-
defaultLlmModel: config['DEFAULT_LLM_MODEL'],
|
|
18
|
-
defaultLlmTemperature: config['DEFAULT_LLM_TEMPERATURE'],
|
|
19
|
-
defaultLlmTimeout: config['DEFAULT_LLM_TIMEOUT'],
|
|
20
|
-
defaultLlmRetries: config['DEFAULT_LLM_RETRIES'],
|
|
21
|
-
defaultLlmMaxTokens: config['DEFAULT_LLM_MAX_TOKENS'],
|
|
22
|
-
};
|
|
23
|
-
}
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
const ORCHESTRATOR_CONFIGURATION = new InjectionToken('ORCHESTRATOR_CONFIGURATION');
|
|
27
|
-
|
|
28
|
-
class LlmResponse {
|
|
29
|
-
message;
|
|
30
|
-
tokens;
|
|
31
|
-
static fromDto(dto) {
|
|
32
|
-
const model = new LlmResponse();
|
|
33
|
-
model.message = dto.message;
|
|
34
|
-
model.tokens = dto.tokens ? LlmTokens.fromDto(dto.tokens) : undefined;
|
|
35
|
-
return model;
|
|
36
|
-
}
|
|
37
|
-
}
|
|
38
|
-
class LlmTokens {
|
|
39
|
-
input;
|
|
40
|
-
output;
|
|
41
|
-
total;
|
|
42
|
-
static fromDto(dto) {
|
|
43
|
-
const model = new LlmTokens();
|
|
44
|
-
model.input = dto.input;
|
|
45
|
-
model.output = dto.output;
|
|
46
|
-
model.total = dto.total;
|
|
47
|
-
return model;
|
|
48
|
-
}
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
class McpTool {
|
|
52
|
-
name;
|
|
53
|
-
identifier;
|
|
54
|
-
desceription;
|
|
55
|
-
static fromDto(dto) {
|
|
56
|
-
const tool = new McpTool();
|
|
57
|
-
tool.name = dto.name;
|
|
58
|
-
tool.identifier = dto.identifier;
|
|
59
|
-
tool.desceription = dto.description;
|
|
60
|
-
return tool;
|
|
61
|
-
}
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
class OrcherstratorService {
|
|
65
|
-
http;
|
|
66
|
-
config;
|
|
67
|
-
constructor(http, config) {
|
|
68
|
-
this.http = http;
|
|
69
|
-
this.config = config;
|
|
70
|
-
}
|
|
71
|
-
runAgent(runConfig) {
|
|
72
|
-
const url = `${this.config.orchestratorUrl}/generic/run`;
|
|
73
|
-
return this.http.post(url, runConfig).pipe(map((res) => {
|
|
74
|
-
console.log(res);
|
|
75
|
-
const apiResponse = new MappedApiResponseRaw();
|
|
76
|
-
apiResponse.status = res.status;
|
|
77
|
-
apiResponse.messages = res.messages ? res.messages : [];
|
|
78
|
-
apiResponse.isError = false;
|
|
79
|
-
apiResponse.data = LlmResponse.fromDto(res.data);
|
|
80
|
-
return apiResponse;
|
|
81
|
-
}));
|
|
82
|
-
}
|
|
83
|
-
getTools() {
|
|
84
|
-
const url = `${this.config.orchestratorUrl}/tools`;
|
|
85
|
-
return this.http.get(url).pipe(map((res) => {
|
|
86
|
-
console.log(res);
|
|
87
|
-
const apiResponse = new MappedApiResponseRaw();
|
|
88
|
-
apiResponse.status = res.status;
|
|
89
|
-
apiResponse.messages = res.messages ? res.messages : [];
|
|
90
|
-
apiResponse.isError = false;
|
|
91
|
-
apiResponse.data = res.data.map((t) => McpTool.fromDto(t));
|
|
92
|
-
return apiResponse;
|
|
93
|
-
}), catchError((err) => {
|
|
94
|
-
console.error('Error fetching tools:', err);
|
|
95
|
-
const error = new MappedApiError();
|
|
96
|
-
error.messages = err.messages ? err.messages : [];
|
|
97
|
-
error.status = err.status ? err.status : 500;
|
|
98
|
-
error.isError = true;
|
|
99
|
-
return of(error);
|
|
100
|
-
}));
|
|
101
|
-
}
|
|
102
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.14", ngImport: i0, type: OrcherstratorService, deps: [{ token: i1.HttpClient }, { token: ORCHESTRATOR_CONFIGURATION }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
103
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.14", ngImport: i0, type: OrcherstratorService });
|
|
104
|
-
}
|
|
105
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.14", ngImport: i0, type: OrcherstratorService, decorators: [{
|
|
106
|
-
type: Injectable
|
|
107
|
-
}], ctorParameters: () => [{ type: i1.HttpClient }, { type: undefined, decorators: [{
|
|
108
|
-
type: Inject,
|
|
109
|
-
args: [ORCHESTRATOR_CONFIGURATION]
|
|
110
|
-
}] }] });
|
|
111
|
-
|
|
112
|
-
// biome-ignore lint/complexity/noStaticOnlyClass: <explanation>
|
|
113
|
-
class OrchestratorModule {
|
|
114
|
-
static forRoot(config) {
|
|
115
|
-
return {
|
|
116
|
-
ngModule: OrchestratorModule,
|
|
117
|
-
providers: [
|
|
118
|
-
{
|
|
119
|
-
provide: ORCHESTRATOR_CONFIGURATION,
|
|
120
|
-
useValue: OrchestratorConfigMapper.map(config),
|
|
121
|
-
},
|
|
122
|
-
OrcherstratorService,
|
|
123
|
-
],
|
|
124
|
-
};
|
|
125
|
-
}
|
|
126
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.14", ngImport: i0, type: OrchestratorModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
127
|
-
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.2.14", ngImport: i0, type: OrchestratorModule, imports: [CommonModule] });
|
|
128
|
-
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.2.14", ngImport: i0, type: OrchestratorModule, imports: [CommonModule] });
|
|
129
|
-
}
|
|
130
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.14", ngImport: i0, type: OrchestratorModule, decorators: [{
|
|
131
|
-
type: NgModule,
|
|
132
|
-
args: [{
|
|
133
|
-
declarations: [],
|
|
134
|
-
imports: [CommonModule],
|
|
135
|
-
}]
|
|
136
|
-
}] });
|
|
137
|
-
|
|
138
|
-
const orchestratorRoutes = [
|
|
139
|
-
{
|
|
140
|
-
path: 'chats',
|
|
141
|
-
loadChildren: () => import('./sftech-ng-orchestrator-chat.routes-VZLqUmet.mjs').then(m => m.chatRoutes)
|
|
142
|
-
},
|
|
143
|
-
{
|
|
144
|
-
path: 'prompts',
|
|
145
|
-
loadChildren: () => import('./sftech-ng-orchestrator-prompts.routes-C_K_TNaw.mjs').then(m => m.promptsRoutes)
|
|
146
|
-
},
|
|
147
|
-
{
|
|
148
|
-
path: 'agents',
|
|
149
|
-
loadChildren: () => import('./sftech-ng-orchestrator-agents.routes-DMY81ODI.mjs').then(m => m.agentsRoutes)
|
|
150
|
-
},
|
|
151
|
-
];
|
|
152
|
-
|
|
153
|
-
/**
|
|
154
|
-
* Generated bundle index. Do not edit.
|
|
155
|
-
*/
|
|
156
|
-
|
|
157
|
-
export { OrcherstratorService as O, ORCHESTRATOR_CONFIGURATION as a, OrchestratorModule as b, orchestratorRoutes as o };
|
|
158
|
-
//# sourceMappingURL=sftech-ng-orchestrator-sftech-ng-orchestrator-BVqY_Vj9.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"sftech-ng-orchestrator-sftech-ng-orchestrator-BVqY_Vj9.mjs","sources":["../../../../libs/ng-orchestrator/src/lib/ng-orchestrator/core/configuration/orchestrator-config.mapper.ts","../../../../libs/ng-orchestrator/src/lib/ng-orchestrator/core/configuration/orchestrator-configuration.token.ts","../../../../libs/ng-orchestrator/src/lib/ng-orchestrator/core/models/llm-response.model.ts","../../../../libs/ng-orchestrator/src/lib/ng-orchestrator/core/models/mcp-tool.model.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 { IAppConfig } from '@sftech/ng-shared';\r\nimport { IOrchestratorConfig } from './orchestrator-config.interface';\r\n\r\n// biome-ignore lint/complexity/noStaticOnlyClass: <explanation>\r\nexport class OrchestratorConfigMapper {\r\n public static map(config: IAppConfig): IOrchestratorConfig {\r\n return {\r\n orchestratorUrl: config['ORCHESTRATOR_URL'] as string,\r\n orchestratorDbUrl: config['ORCHESTRATOR_DB_URL'] as string,\r\n defaultConnectorUrl: config['DEFAULT_CONNECTOR_URL'] as string,\r\n defaultAnswerSpecification: config['DEFAULT_ANSWER_SPECIFICATION'] as string,\r\n defaultLlmProvider: config['DEFAULT_LLM_PROVIDER'] as string,\r\n defaultLlmModel: config['DEFAULT_LLM_MODEL'] as string,\r\n defaultLlmTemperature: config['DEFAULT_LLM_TEMPERATURE'] as number,\r\n defaultLlmTimeout: config['DEFAULT_LLM_TIMEOUT'] as number,\r\n defaultLlmRetries: config['DEFAULT_LLM_RETRIES'] as number,\r\n defaultLlmMaxTokens: config['DEFAULT_LLM_MAX_TOKENS'] as number,\r\n };\r\n }\r\n}\r\n","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 {ILlmResponseDto, ILlmTokensDto} from \"../dtos/llm-response.dto\";\r\n\r\nexport class LlmResponse {\r\n message!: string;\r\n tokens?: LlmTokens\r\n\r\n public static fromDto(dto: ILlmResponseDto): LlmResponse {\r\n const model = new LlmResponse();\r\n model.message = dto.message;\r\n model.tokens = dto.tokens ? LlmTokens.fromDto(dto.tokens) : undefined;\r\n return model;\r\n }\r\n}\r\n\r\nexport class LlmTokens {\r\n public input!: number;\r\n public output!: number;\r\n public total!: number;\r\n\r\n public static fromDto(dto: ILlmTokensDto): LlmTokens {\r\n const model = new LlmTokens();\r\n model.input = dto.input;\r\n model.output = dto.output;\r\n model.total = dto.total;\r\n return model;\r\n }\r\n}","import {IMcpToolResponseDto} from \"../dtos/mcp-tool-response.dto\";\r\n\r\nexport class McpTool {\r\n name!: string;\r\n identifier!: string;\r\n desceription!: string;\r\n\r\n public static fromDto(dto: IMcpToolResponseDto): McpTool {\r\n const tool = new McpTool();\r\n tool.name = dto.name;\r\n tool.identifier = dto.identifier;\r\n tool.desceription = dto.description;\r\n return tool;\r\n }\r\n}","import { HttpClient } from '@angular/common/http';\r\nimport { Inject, Injectable } from '@angular/core';\r\nimport {IApiResponse, MappedApiError, MappedApiResponse, MappedApiResponseRaw} from '@sftech/ng-shared';\r\nimport { Observable, catchError, map, of } from 'rxjs';\r\nimport { IOrchestratorConfig } from '../configuration/orchestrator-config.interface';\r\nimport { ORCHESTRATOR_CONFIGURATION } from '../configuration/orchestrator-configuration.token';\r\nimport { ILlmResponseDto } from '../dtos/llm-response.dto';\r\nimport { IMcpToolResponseDto } from '../dtos/mcp-tool-response.dto';\r\nimport { IOrchestratorRunDto } from '../dtos/orchestrator-run.dto';\r\nimport { LlmResponse } from '../models/llm-response.model';\r\nimport {McpTool} from \"../models/mcp-tool.model\";\r\n\r\n@Injectable()\r\nexport class OrcherstratorService {\r\n public constructor(\r\n private readonly http: HttpClient,\r\n @Inject(ORCHESTRATOR_CONFIGURATION) private readonly config: IOrchestratorConfig,\r\n ) {}\r\n\r\n public runAgent(runConfig: IOrchestratorRunDto): Observable<MappedApiResponseRaw<LlmResponse>> {\r\n const url = `${this.config.orchestratorUrl}/generic/run`;\r\n return this.http.post<IApiResponse<ILlmResponseDto>>(url, runConfig).pipe(\r\n map((res) => {\r\n console.log(res);\r\n const apiResponse = new MappedApiResponseRaw<LlmResponse>();\r\n apiResponse.status = res.status;\r\n apiResponse.messages = res.messages ? res.messages : [];\r\n apiResponse.isError = false;\r\n apiResponse.data = LlmResponse.fromDto(res.data as ILlmResponseDto);\r\n return apiResponse;\r\n }),\r\n // catchError((err) => {\r\n // const error = new MappedApiError()\r\n // error.messages = err.messages ? err.messages : [];\r\n // return of(new MappedApiError())\r\n // })\r\n );\r\n }\r\n\r\n public getTools(): Observable<MappedApiResponseRaw<McpTool[]>> {\r\n const url = `${this.config.orchestratorUrl}/tools`;\r\n return this.http.get<IApiResponse<IMcpToolResponseDto[]>>(url).pipe(\r\n map((res) => {\r\n console.log(res);\r\n const apiResponse = new MappedApiResponseRaw<McpTool[]>();\r\n apiResponse.status = res.status;\r\n apiResponse.messages = res.messages ? res.messages : [];\r\n apiResponse.isError = false;\r\n apiResponse.data = (res.data as IMcpToolResponseDto[]).map((t) => McpTool.fromDto(t));\r\n return apiResponse;\r\n }),\r\n catchError((err) => {\r\n console.error('Error fetching tools:', err);\r\n const error = new MappedApiError();\r\n error.messages = err.messages ? err.messages : [];\r\n error.status = err.status ? err.status : 500;\r\n error.isError = true;\r\n return of(error);\r\n }),\r\n );\r\n }\r\n}\r\n","import { CommonModule } from '@angular/common';\r\nimport { ModuleWithProviders, NgModule } from '@angular/core';\r\nimport { IAppConfig } from '@sftech/ng-shared';\r\nimport { OrchestratorConfigMapper } from './core/configuration/orchestrator-config.mapper';\r\nimport { ORCHESTRATOR_CONFIGURATION } from './core/configuration/orchestrator-configuration.token';\r\nimport { OrcherstratorService } from './core/service/orcherstrator.service';\r\n\r\n@NgModule({\r\n declarations: [],\r\n imports: [CommonModule],\r\n})\r\n// biome-ignore lint/complexity/noStaticOnlyClass: <explanation>\r\nexport class OrchestratorModule {\r\n public static forRoot(config: IAppConfig): ModuleWithProviders<OrchestratorModule> {\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":";;;;;;;AAGA;MACa,wBAAwB,CAAA;IAC1B,OAAO,GAAG,CAAC,MAAkB,EAAA;QAChC,OAAO;AACH,YAAA,eAAe,EAAE,MAAM,CAAC,kBAAkB,CAAW;AACrD,YAAA,iBAAiB,EAAE,MAAM,CAAC,qBAAqB,CAAW;AAC1D,YAAA,mBAAmB,EAAE,MAAM,CAAC,uBAAuB,CAAW;AAC9D,YAAA,0BAA0B,EAAE,MAAM,CAAC,8BAA8B,CAAW;AAC5E,YAAA,kBAAkB,EAAE,MAAM,CAAC,sBAAsB,CAAW;AAC5D,YAAA,eAAe,EAAE,MAAM,CAAC,mBAAmB,CAAW;AACtD,YAAA,qBAAqB,EAAE,MAAM,CAAC,yBAAyB,CAAW;AAClE,YAAA,iBAAiB,EAAE,MAAM,CAAC,qBAAqB,CAAW;AAC1D,YAAA,iBAAiB,EAAE,MAAM,CAAC,qBAAqB,CAAW;AAC1D,YAAA,mBAAmB,EAAE,MAAM,CAAC,wBAAwB,CAAW;SAClE;;AAER;;MChBY,0BAA0B,GAAG,IAAI,cAAc,CAAsB,4BAA4B;;MCDjG,WAAW,CAAA;AACpB,IAAA,OAAO;AACP,IAAA,MAAM;IAEC,OAAO,OAAO,CAAC,GAAoB,EAAA;AACtC,QAAA,MAAM,KAAK,GAAG,IAAI,WAAW,EAAE;AAC/B,QAAA,KAAK,CAAC,OAAO,GAAG,GAAG,CAAC,OAAO;QAC3B,KAAK,CAAC,MAAM,GAAG,GAAG,CAAC,MAAM,GAAG,SAAS,CAAC,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,GAAG,SAAS;AACrE,QAAA,OAAO,KAAK;;AAEnB;MAEY,SAAS,CAAA;AACX,IAAA,KAAK;AACL,IAAA,MAAM;AACN,IAAA,KAAK;IAEL,OAAO,OAAO,CAAC,GAAkB,EAAA;AACpC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EAAA,CAAA;kBAL9B,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;AACN,oBAAA,YAAY,EAAE,EAAE;oBAChB,OAAO,EAAE,CAAC,YAAY,CAAC;AAC1B,iBAAA;;;ACRY,MAAA,kBAAkB,GAAY;AACvC,IAAA;AACI,QAAA,IAAI,EAAE,OAAO;AACb,QAAA,YAAY,EAAE,MAAM,OAAO,mDAAoB,CAAC,CAAC,IAAI,CAAC,CAAC,IAAI,CAAC,CAAC,UAAU;AAC1E,KAAA;AACD,IAAA;AACI,QAAA,IAAI,EAAE,SAAS;AACf,QAAA,YAAY,EAAE,MAAM,OAAO,sDAA0B,CAAC,CAAC,IAAI,CAAC,CAAC,IAAI,CAAC,CAAC,aAAa;AACnF,KAAA;AACD,IAAA;AACI,QAAA,IAAI,EAAE,QAAQ;AACd,QAAA,YAAY,EAAE,MAAM,OAAO,qDAAwB,CAAC,CAAC,IAAI,CAAC,CAAC,IAAI,CAAC,CAAC,YAAY;AAChF,KAAA;;;ACdL;;AAEG;;;;"}
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
import { OnInit } from '@angular/core';
|
|
2
|
-
import { FormControl, FormGroup } from '@angular/forms';
|
|
3
|
-
import { Agent } from '../agents/core/models/agent.model';
|
|
4
|
-
import { AgentService } from '../agents/core/services/agent.service';
|
|
5
|
-
import { OrcherstratorService } from '../core/service/orcherstrator.service';
|
|
6
|
-
import { PromptHistory } from '../prompts/core/models/prompt-history.model';
|
|
7
|
-
import { Prompt } from '../prompts/core/models/prompt.model';
|
|
8
|
-
import { PromptHistoryService } from '../prompts/core/services/prompt-history.service';
|
|
9
|
-
import { PromptService } from '../prompts/core/services/prompt.service';
|
|
10
|
-
import * as i0 from "@angular/core";
|
|
11
|
-
export declare class ChatComponent implements OnInit {
|
|
12
|
-
private readonly orchestratorService;
|
|
13
|
-
private readonly agentService;
|
|
14
|
-
private readonly promptService;
|
|
15
|
-
private readonly promptHistoryService;
|
|
16
|
-
answer: import("@angular/core").WritableSignal<string | undefined>;
|
|
17
|
-
status: import("@angular/core").WritableSignal<EOrchestratorStatus>;
|
|
18
|
-
agents: import("@angular/core").WritableSignal<Agent[] | undefined>;
|
|
19
|
-
selectedUserPrompt: import("@angular/core").WritableSignal<Prompt | PromptHistory | undefined>;
|
|
20
|
-
statuses: typeof EOrchestratorStatus;
|
|
21
|
-
form: FormGroup<{
|
|
22
|
-
agent: FormControl<Agent | null | undefined>;
|
|
23
|
-
}>;
|
|
24
|
-
inputForm: FormGroup<{}>;
|
|
25
|
-
constructor(orchestratorService: OrcherstratorService, agentService: AgentService, promptService: PromptService, promptHistoryService: PromptHistoryService);
|
|
26
|
-
ngOnInit(): void;
|
|
27
|
-
run(): void;
|
|
28
|
-
getInputFormControlNames(): string[];
|
|
29
|
-
example: string;
|
|
30
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<ChatComponent, never>;
|
|
31
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<ChatComponent, "sftech-chat", never, {}, {}, never, never, true, never>;
|
|
32
|
-
}
|
|
33
|
-
export declare enum EOrchestratorStatus {
|
|
34
|
-
IDLE = "IDLE",
|
|
35
|
-
REQUESTING = "REQUESTING",
|
|
36
|
-
ANSWERED = "ANSWERED",
|
|
37
|
-
ERROR = "ERROR"
|
|
38
|
-
}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { ILlmResponseDto, ILlmTokensDto } from "../dtos/llm-response.dto";
|
|
2
|
-
export declare class LlmResponse {
|
|
3
|
-
message: string;
|
|
4
|
-
tokens?: LlmTokens;
|
|
5
|
-
static fromDto(dto: ILlmResponseDto): LlmResponse;
|
|
6
|
-
}
|
|
7
|
-
export declare class LlmTokens {
|
|
8
|
-
input: number;
|
|
9
|
-
output: number;
|
|
10
|
-
total: number;
|
|
11
|
-
static fromDto(dto: ILlmTokensDto): LlmTokens;
|
|
12
|
-
}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { PipeTransform } from '@angular/core';
|
|
2
|
-
import * as i0 from "@angular/core";
|
|
3
|
-
export declare class BoldedInputVarPipe implements PipeTransform {
|
|
4
|
-
transform(value: string | undefined): string;
|
|
5
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<BoldedInputVarPipe, never>;
|
|
6
|
-
static ɵpipe: i0.ɵɵPipeDeclaration<BoldedInputVarPipe, "boldInputVars", true>;
|
|
7
|
-
}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { HttpClient } from '@angular/common/http';
|
|
2
|
-
import { MappedApiResponseRaw } from '@sftech/ng-shared';
|
|
3
|
-
import { Observable } from 'rxjs';
|
|
4
|
-
import { IOrchestratorConfig } from '../configuration/orchestrator-config.interface';
|
|
5
|
-
import { IOrchestratorRunDto } from '../dtos/orchestrator-run.dto';
|
|
6
|
-
import { LlmResponse } from '../models/llm-response.model';
|
|
7
|
-
import { McpTool } from "../models/mcp-tool.model";
|
|
8
|
-
import * as i0 from "@angular/core";
|
|
9
|
-
export declare class OrcherstratorService {
|
|
10
|
-
private readonly http;
|
|
11
|
-
private readonly config;
|
|
12
|
-
constructor(http: HttpClient, config: IOrchestratorConfig);
|
|
13
|
-
runAgent(runConfig: IOrchestratorRunDto): Observable<MappedApiResponseRaw<LlmResponse>>;
|
|
14
|
-
getTools(): Observable<MappedApiResponseRaw<McpTool[]>>;
|
|
15
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<OrcherstratorService, never>;
|
|
16
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<OrcherstratorService>;
|
|
17
|
-
}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|