@sftech/ng-orchestrator 0.0.14 → 0.0.18

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.
Files changed (86) hide show
  1. package/fesm2022/sftech-ng-orchestrator-agent-rag-upload.component-iqEbrzkb.mjs +189 -0
  2. package/fesm2022/sftech-ng-orchestrator-agent-rag-upload.component-iqEbrzkb.mjs.map +1 -0
  3. package/fesm2022/sftech-ng-orchestrator-agents.routes-CVcxzNAE.mjs +270 -0
  4. package/fesm2022/sftech-ng-orchestrator-agents.routes-CVcxzNAE.mjs.map +1 -0
  5. package/fesm2022/sftech-ng-orchestrator-chats.routes-BDe9JC4m.mjs +625 -0
  6. package/fesm2022/sftech-ng-orchestrator-chats.routes-BDe9JC4m.mjs.map +1 -0
  7. package/fesm2022/{sftech-ng-orchestrator-prompt-display.component-Dr3YvhU-.mjs → sftech-ng-orchestrator-prompt-display.component-BkSLQgGU.mjs} +59 -11
  8. package/fesm2022/sftech-ng-orchestrator-prompt-display.component-BkSLQgGU.mjs.map +1 -0
  9. package/fesm2022/sftech-ng-orchestrator-prompt.model-DhASegzq.mjs +57 -0
  10. package/fesm2022/sftech-ng-orchestrator-prompt.model-DhASegzq.mjs.map +1 -0
  11. package/fesm2022/{sftech-ng-orchestrator-prompts.routes-gyZH5vh-.mjs → sftech-ng-orchestrator-prompts.routes-DeR6lppF.mjs} +2 -3
  12. package/fesm2022/sftech-ng-orchestrator-prompts.routes-DeR6lppF.mjs.map +1 -0
  13. package/fesm2022/sftech-ng-orchestrator-sftech-ng-orchestrator-D9fLhC24.mjs +281 -0
  14. package/fesm2022/sftech-ng-orchestrator-sftech-ng-orchestrator-D9fLhC24.mjs.map +1 -0
  15. package/fesm2022/sftech-ng-orchestrator.mjs +1 -1
  16. package/lib/ng-orchestrator/{agents → admin/agents}/components/agent/agent-display/agent-display.component.d.ts +8 -8
  17. package/lib/ng-orchestrator/admin/agents/components/agent/agent-rag-upload/agent-rag-upload.component.d.ts +21 -0
  18. package/lib/ng-orchestrator/{agents → admin/agents}/components/agent/agents-list/agents-list.component.d.ts +6 -4
  19. package/lib/ng-orchestrator/{prompts → admin/prompts}/components/prompt/prompt-display/prompt-display.component.d.ts +4 -4
  20. package/lib/ng-orchestrator/{prompts → admin/prompts}/components/prompt/prompts-list/prompts-list.component.d.ts +4 -4
  21. package/lib/ng-orchestrator/{prompts → admin/prompts}/components/prompt-history/prompt-history-display/prompt-history-display.component.d.ts +5 -5
  22. package/lib/ng-orchestrator/{prompts → admin/prompts}/components/prompt-history/prompt-history-list/prompt-history-list.component.d.ts +5 -5
  23. package/lib/ng-orchestrator/chats/agent-chat/agent-chat-message/agent-chat-message.component.d.ts +11 -0
  24. package/lib/ng-orchestrator/chats/agent-chat/agent-chat-message-human-input/agent-chat-message-human-input.component.d.ts +21 -0
  25. package/lib/ng-orchestrator/chats/agent-chat/agent-chat-message-human-input-initial/agent-chat-message-human-input-initial.component.d.ts +20 -0
  26. package/lib/ng-orchestrator/chats/agent-chat/agent-chat.component.d.ts +50 -0
  27. package/lib/ng-orchestrator/chats/agent-selection/agent-selection.component.d.ts +22 -0
  28. package/lib/ng-orchestrator/chats/chats.component.d.ts +5 -0
  29. package/lib/ng-orchestrator/chats/chats.routes.d.ts +16 -0
  30. package/lib/ng-orchestrator/chats/core/dataprovider/agent-run-icon-text.dataprovider.d.ts +9 -0
  31. package/lib/ng-orchestrator/core/configuration/orchestrator-config.interface.d.ts +2 -0
  32. package/lib/ng-orchestrator/core/dataprovider/orchestrator-icon.provider.d.ts +13 -0
  33. package/lib/ng-orchestrator/{agents/core → core}/dtos/agent-create-request.dto.d.ts +2 -0
  34. package/lib/ng-orchestrator/{agents/core → core}/dtos/agent-response.dto.d.ts +3 -1
  35. package/lib/ng-orchestrator/core/dtos/agent-run-create-request.dto.d.ts +3 -0
  36. package/lib/ng-orchestrator/core/dtos/agent-run-response.dto.d.ts +12 -0
  37. package/lib/ng-orchestrator/{agents/core → core}/dtos/agent-update-request.dto.d.ts +2 -0
  38. package/lib/ng-orchestrator/core/dtos/chat-create-request.dto.d.ts +4 -0
  39. package/lib/ng-orchestrator/core/dtos/chat-message-response.dto.d.ts +6 -0
  40. package/lib/ng-orchestrator/core/dtos/chat-response.dto.d.ts +6 -0
  41. package/lib/ng-orchestrator/core/dtos/chat-update-request.dto.d.ts +3 -0
  42. package/lib/ng-orchestrator/core/dtos/rag-ingest-config.dto.d.ts +4 -0
  43. package/lib/ng-orchestrator/core/enums/agent-run-status.enum.d.ts +9 -0
  44. package/lib/ng-orchestrator/core/models/agent-run.model.d.ts +19 -0
  45. package/lib/ng-orchestrator/{agents/core → core}/models/agent.model.d.ts +4 -2
  46. package/lib/ng-orchestrator/core/models/chat-message.model.d.ts +10 -0
  47. package/lib/ng-orchestrator/core/models/chat.model.d.ts +8 -0
  48. package/lib/ng-orchestrator/core/service/agent-run.service.d.ts +19 -0
  49. package/lib/ng-orchestrator/{agents/core/services → core/service}/agent.service.d.ts +1 -1
  50. package/lib/ng-orchestrator/core/service/chat.service.d.ts +20 -0
  51. package/lib/ng-orchestrator/core/service/orchestrator.service.d.ts +23 -0
  52. package/lib/ng-orchestrator/{prompts/core/services → core/service}/prompt-history.service.d.ts +1 -1
  53. package/lib/ng-orchestrator/{prompts/core/services → core/service}/prompt.service.d.ts +1 -1
  54. package/lib/ng-orchestrator/core/validators/rag.validator.d.ts +2 -0
  55. package/lib/ng-orchestrator/orchestrator.module.d.ts +2 -1
  56. package/package.json +2 -2
  57. package/fesm2022/sftech-ng-orchestrator-agent.service-BI5zPQT-.mjs +0 -106
  58. package/fesm2022/sftech-ng-orchestrator-agent.service-BI5zPQT-.mjs.map +0 -1
  59. package/fesm2022/sftech-ng-orchestrator-agents.routes-CnV8ngf_.mjs +0 -214
  60. package/fesm2022/sftech-ng-orchestrator-agents.routes-CnV8ngf_.mjs.map +0 -1
  61. package/fesm2022/sftech-ng-orchestrator-chat.routes-BAF4OU_M.mjs +0 -154
  62. package/fesm2022/sftech-ng-orchestrator-chat.routes-BAF4OU_M.mjs.map +0 -1
  63. package/fesm2022/sftech-ng-orchestrator-prompt-display.component-Dr3YvhU-.mjs.map +0 -1
  64. package/fesm2022/sftech-ng-orchestrator-prompt.service-CkWDxT-Y.mjs +0 -107
  65. package/fesm2022/sftech-ng-orchestrator-prompt.service-CkWDxT-Y.mjs.map +0 -1
  66. package/fesm2022/sftech-ng-orchestrator-prompts.routes-gyZH5vh-.mjs.map +0 -1
  67. package/fesm2022/sftech-ng-orchestrator-sftech-ng-orchestrator-CICnJ35v.mjs +0 -158
  68. package/fesm2022/sftech-ng-orchestrator-sftech-ng-orchestrator-CICnJ35v.mjs.map +0 -1
  69. package/lib/ng-orchestrator/chat/chat.component.d.ts +0 -38
  70. package/lib/ng-orchestrator/chat/chat.routes.d.ts +0 -5
  71. package/lib/ng-orchestrator/core/dtos/llm-response.dto.d.ts +0 -10
  72. package/lib/ng-orchestrator/core/models/llm-response.model.d.ts +0 -12
  73. package/lib/ng-orchestrator/core/pipes/bold-input-vars.pipe.d.ts +0 -7
  74. package/lib/ng-orchestrator/core/service/orcherstrator.service.d.ts +0 -17
  75. /package/lib/ng-orchestrator/{agents → admin/agents}/agents.component.d.ts +0 -0
  76. /package/lib/ng-orchestrator/{agents → admin/agents}/agents.routes.d.ts +0 -0
  77. /package/lib/ng-orchestrator/{agents → admin/agents}/components/agent/agent-display/prompt-helper-modal/prompt-helper-modal.component.d.ts +0 -0
  78. /package/lib/ng-orchestrator/{prompts → admin/prompts}/prompts.component.d.ts +0 -0
  79. /package/lib/ng-orchestrator/{prompts → admin/prompts}/prompts.routes.d.ts +0 -0
  80. /package/lib/ng-orchestrator/{prompts/core → core}/dtos/prompt-history-create.dto.d.ts +0 -0
  81. /package/lib/ng-orchestrator/{prompts/core → core}/dtos/prompt-history-response.dto.d.ts +0 -0
  82. /package/lib/ng-orchestrator/{prompts/core → core}/dtos/prompt-history-update.dto.d.ts +0 -0
  83. /package/lib/ng-orchestrator/{prompts/core → core}/dtos/prompt-request.dto.d.ts +0 -0
  84. /package/lib/ng-orchestrator/{prompts/core → core}/dtos/prompt-update.dto.d.ts +0 -0
  85. /package/lib/ng-orchestrator/{prompts/core → core}/models/prompt-history.model.d.ts +0 -0
  86. /package/lib/ng-orchestrator/{prompts/core → core}/models/prompt.model.d.ts +0 -0
@@ -1 +0,0 @@
1
- {"version":3,"file":"sftech-ng-orchestrator-sftech-ng-orchestrator-CICnJ35v.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) ?? `${window.location.protocol}//${window.location.hostname}:${window.location.port}/api/orchestrator`,\r\n orchestratorDbUrl: (config['ORCHESTRATOR_DB_URL'] as string) ?? `${window.location.protocol}//${window.location.hostname}:${window.location.port}/api/orchestrator-db`,\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;YACH,eAAe,EAAG,MAAM,CAAC,kBAAkB,CAAY,IAAI,CAAG,EAAA,MAAM,CAAC,QAAQ,CAAC,QAAQ,KAAK,MAAM,CAAC,QAAQ,CA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AAA,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,5 +0,0 @@
1
- import { ChatComponent } from "./chat.component";
2
- export declare const chatRoutes: {
3
- path: string;
4
- component: typeof ChatComponent;
5
- }[];
@@ -1,10 +0,0 @@
1
- export interface ILlmResponseDto {
2
- message: string;
3
- tokens?: ILlmTokensDto;
4
- avgLogProbs?: number;
5
- }
6
- export interface ILlmTokensDto {
7
- input: number;
8
- output: number;
9
- total: number;
10
- }
@@ -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
- }