@kinotic-ai/system-api 5.0.0-beta.25 → 5.0.0-beta.26
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/dist/index.cjs +56 -3
- package/dist/index.d.cts +68 -3
- package/dist/index.d.ts +68 -3
- package/dist/index.js +56 -3
- package/package.json +5 -5
package/dist/index.cjs
CHANGED
|
@@ -54,18 +54,21 @@ __export(exports_src, {
|
|
|
54
54
|
SystemMemberService: () => SystemMemberService,
|
|
55
55
|
SystemApiPlugin: () => SystemApiPlugin,
|
|
56
56
|
SingleLoggerLevelsDescriptor: () => SingleLoggerLevelsDescriptor,
|
|
57
|
-
SYSTEM_API_ZONE: () =>
|
|
57
|
+
SYSTEM_API_ZONE: () => import_management_api11.SYSTEM_API_ZONE,
|
|
58
58
|
LoggersDescriptor: () => LoggersDescriptor,
|
|
59
59
|
LoggerLevelsDescriptor: () => LoggerLevelsDescriptor,
|
|
60
60
|
LogManager: () => LogManager,
|
|
61
61
|
LogLevel: () => LogLevel,
|
|
62
|
+
LlmProviderType: () => LlmProviderType,
|
|
63
|
+
LlmConfigurationService: () => LlmConfigurationService,
|
|
64
|
+
LlmConfiguration: () => LlmConfiguration,
|
|
62
65
|
KinoticNodeInfo: () => KinoticNodeInfo,
|
|
63
66
|
KinoticClusterInfoService: () => KinoticClusterInfoService,
|
|
64
67
|
KinoticClusterInfo: () => KinoticClusterInfo,
|
|
65
68
|
GroupLoggerLevelsDescriptor: () => GroupLoggerLevelsDescriptor
|
|
66
69
|
});
|
|
67
70
|
module.exports = __toCommonJS(exports_src);
|
|
68
|
-
var
|
|
71
|
+
var import_management_api11 = require("@kinotic-ai/management-api");
|
|
69
72
|
|
|
70
73
|
// packages/system-api/src/api/model/workload/VmNode.ts
|
|
71
74
|
var import_management_api = require("@kinotic-ai/management-api");
|
|
@@ -121,6 +124,30 @@ class VmNodeRegistration {
|
|
|
121
124
|
this.hostname = hostname;
|
|
122
125
|
}
|
|
123
126
|
}
|
|
127
|
+
// packages/system-api/src/api/model/llm/LlmConfiguration.ts
|
|
128
|
+
class LlmConfiguration {
|
|
129
|
+
id = null;
|
|
130
|
+
name;
|
|
131
|
+
provider;
|
|
132
|
+
model;
|
|
133
|
+
endpoint = null;
|
|
134
|
+
maxTokens = null;
|
|
135
|
+
temperature = null;
|
|
136
|
+
apiKeyHeld = false;
|
|
137
|
+
created = null;
|
|
138
|
+
updated = null;
|
|
139
|
+
constructor(name, provider, model) {
|
|
140
|
+
this.name = name;
|
|
141
|
+
this.provider = provider;
|
|
142
|
+
this.model = model;
|
|
143
|
+
}
|
|
144
|
+
}
|
|
145
|
+
// packages/system-api/src/api/model/llm/LlmProviderType.ts
|
|
146
|
+
var LlmProviderType;
|
|
147
|
+
((LlmProviderType2) => {
|
|
148
|
+
LlmProviderType2["ANTHROPIC"] = "ANTHROPIC";
|
|
149
|
+
LlmProviderType2["OPENAI"] = "OPENAI";
|
|
150
|
+
})(LlmProviderType ||= {});
|
|
124
151
|
// packages/system-api/src/api/services/workload/IVmNodeService.ts
|
|
125
152
|
var import_management_api2 = require("@kinotic-ai/management-api");
|
|
126
153
|
var import_core = require("@kinotic-ai/core");
|
|
@@ -381,6 +408,31 @@ class WatchEventService {
|
|
|
381
408
|
}
|
|
382
409
|
}
|
|
383
410
|
|
|
411
|
+
// packages/system-api/src/api/services/ILlmConfigurationService.ts
|
|
412
|
+
var import_management_api10 = require("@kinotic-ai/management-api");
|
|
413
|
+
|
|
414
|
+
class LlmConfigurationService {
|
|
415
|
+
serviceProxy;
|
|
416
|
+
constructor(kinotic) {
|
|
417
|
+
this.serviceProxy = kinotic.serviceProxy(`${import_management_api10.SYSTEM_API_ZONE}~org.kinotic.system.api.services.LlmConfigurationService`);
|
|
418
|
+
}
|
|
419
|
+
findAll(pageable) {
|
|
420
|
+
return this.serviceProxy.invoke("findAll", [pageable]);
|
|
421
|
+
}
|
|
422
|
+
findById(id) {
|
|
423
|
+
return this.serviceProxy.invoke("findById", [id]);
|
|
424
|
+
}
|
|
425
|
+
findByName(name) {
|
|
426
|
+
return this.serviceProxy.invoke("findByName", [name]);
|
|
427
|
+
}
|
|
428
|
+
save(configuration, apiKey) {
|
|
429
|
+
return this.serviceProxy.invoke("save", [configuration, apiKey]);
|
|
430
|
+
}
|
|
431
|
+
deleteById(id) {
|
|
432
|
+
return this.serviceProxy.invoke("deleteById", [id]);
|
|
433
|
+
}
|
|
434
|
+
}
|
|
435
|
+
|
|
384
436
|
// packages/system-api/src/api/SystemApiPlugin.ts
|
|
385
437
|
var SystemApiPlugin = {
|
|
386
438
|
install(kinotic) {
|
|
@@ -392,7 +444,8 @@ var SystemApiPlugin = {
|
|
|
392
444
|
clusterInfo: new KinoticClusterInfoService(kinotic),
|
|
393
445
|
systemOrganizations: new SystemOrganizationService(kinotic),
|
|
394
446
|
systemMembers: new SystemMemberService(kinotic),
|
|
395
|
-
watchEvents: new WatchEventService(kinotic)
|
|
447
|
+
watchEvents: new WatchEventService(kinotic),
|
|
448
|
+
llmConfigurations: new LlmConfigurationService(kinotic)
|
|
396
449
|
};
|
|
397
450
|
}
|
|
398
451
|
};
|
package/dist/index.d.cts
CHANGED
|
@@ -149,6 +149,39 @@ interface WorkloadStatusReport {
|
|
|
149
149
|
/** When the node recorded this status, in epoch milliseconds. */
|
|
150
150
|
updated: number;
|
|
151
151
|
}
|
|
152
|
+
/**
|
|
153
|
+
* The provider whose API an LlmConfiguration calls.
|
|
154
|
+
*/
|
|
155
|
+
declare enum LlmProviderType {
|
|
156
|
+
/** Anthropic's Messages API, serving the Claude models. */
|
|
157
|
+
ANTHROPIC = "ANTHROPIC",
|
|
158
|
+
/** OpenAI's Chat Completions API, or a server compatible with it. */
|
|
159
|
+
OPENAI = "OPENAI"
|
|
160
|
+
}
|
|
161
|
+
/**
|
|
162
|
+
* A large language model the platform's services call: the provider, the model, where the provider's API is
|
|
163
|
+
* reached and the options each request carries. The API key the provider is called with is held in the secret
|
|
164
|
+
* storage and is never a field of the configuration; apiKeyHeld says whether one is held.
|
|
165
|
+
*/
|
|
166
|
+
declare class LlmConfiguration {
|
|
167
|
+
id: string | null;
|
|
168
|
+
/** The name a service selects the configuration by, unique across the platform. */
|
|
169
|
+
name: string;
|
|
170
|
+
provider: LlmProviderType;
|
|
171
|
+
/** The provider's id of the model, such as claude-opus-5-5. */
|
|
172
|
+
model: string;
|
|
173
|
+
/** The base URL of the provider's API, or null for the provider's public API. */
|
|
174
|
+
endpoint: string | null;
|
|
175
|
+
/** The most tokens a response may hold, or null for the calling service's default. */
|
|
176
|
+
maxTokens: number | null;
|
|
177
|
+
/** The sampling temperature, or null for the provider's default. */
|
|
178
|
+
temperature: number | null;
|
|
179
|
+
/** Whether an API key is held for the configuration. */
|
|
180
|
+
apiKeyHeld: boolean;
|
|
181
|
+
created: string | null;
|
|
182
|
+
updated: string | null;
|
|
183
|
+
constructor(name: string, provider: LlmProviderType, model: string);
|
|
184
|
+
}
|
|
152
185
|
import { WatchEvent } from "@kinotic-ai/management-api";
|
|
153
186
|
import { IKinotic } from "@kinotic-ai/core";
|
|
154
187
|
import { CrudServiceProxy, ICrudServiceProxy, IterablePage, Page, Pageable } from "@kinotic-ai/core";
|
|
@@ -527,6 +560,37 @@ declare class WatchEventService implements IWatchEventService {
|
|
|
527
560
|
findAll(pageable: Pageable5): Promise<IterablePage3<WatchEvent3>>;
|
|
528
561
|
private findAllSinglePage;
|
|
529
562
|
}
|
|
563
|
+
import { IKinotic as IKinotic9, Page as Page5, Pageable as Pageable6 } from "@kinotic-ai/core";
|
|
564
|
+
/**
|
|
565
|
+
* The large language models the platform's services call, each an LlmConfiguration that platform operators
|
|
566
|
+
* manage and a service selects by name. A configuration's API key is given on save and held in the platform's
|
|
567
|
+
* scope of the secret storage until a save gives another or the configuration is deleted. Published in the
|
|
568
|
+
* system zone, which only SYSTEM participants and the platform's own cluster members may address.
|
|
569
|
+
*/
|
|
570
|
+
interface ILlmConfigurationService {
|
|
571
|
+
findAll(pageable: Pageable6): Promise<Page5<LlmConfiguration>>;
|
|
572
|
+
/** Resolves null when no configuration has the given id. */
|
|
573
|
+
findById(id: string): Promise<LlmConfiguration | null>;
|
|
574
|
+
/** Resolves null when no configuration has the given name. */
|
|
575
|
+
findByName(name: string): Promise<LlmConfiguration | null>;
|
|
576
|
+
/**
|
|
577
|
+
* Saves a configuration, new or changed, and makes apiKey, when given, the key it calls its provider with.
|
|
578
|
+
* A null or blank apiKey keeps the key held for the configuration, if any. Its name must be one no other
|
|
579
|
+
* configuration has.
|
|
580
|
+
*/
|
|
581
|
+
save(configuration: LlmConfiguration, apiKey: string | null): Promise<LlmConfiguration>;
|
|
582
|
+
/** Deletes the configuration and the API key held for it. */
|
|
583
|
+
deleteById(id: string): Promise<void>;
|
|
584
|
+
}
|
|
585
|
+
declare class LlmConfigurationService implements ILlmConfigurationService {
|
|
586
|
+
private readonly serviceProxy;
|
|
587
|
+
constructor(kinotic: IKinotic9);
|
|
588
|
+
findAll(pageable: Pageable6): Promise<Page5<LlmConfiguration>>;
|
|
589
|
+
findById(id: string): Promise<LlmConfiguration | null>;
|
|
590
|
+
findByName(name: string): Promise<LlmConfiguration | null>;
|
|
591
|
+
save(configuration: LlmConfiguration, apiKey: string | null): Promise<LlmConfiguration>;
|
|
592
|
+
deleteById(id: string): Promise<void>;
|
|
593
|
+
}
|
|
530
594
|
interface ISystemApiExtension {
|
|
531
595
|
vmNodes: IVmNodeService;
|
|
532
596
|
workloads: IWorkloadService;
|
|
@@ -536,12 +600,13 @@ interface ISystemApiExtension {
|
|
|
536
600
|
systemOrganizations: ISystemOrganizationService;
|
|
537
601
|
systemMembers: ISystemMemberService;
|
|
538
602
|
watchEvents: IWatchEventService;
|
|
603
|
+
llmConfigurations: ILlmConfigurationService;
|
|
539
604
|
}
|
|
540
605
|
declare const SystemApiPlugin: KinoticPlugin<ISystemApiExtension>;
|
|
541
|
-
import { IKinotic as
|
|
606
|
+
import { IKinotic as IKinotic10 } from "@kinotic-ai/core";
|
|
542
607
|
declare class LogManager implements ILogManager {
|
|
543
608
|
private readonly serviceProxy;
|
|
544
|
-
constructor(kinotic:
|
|
609
|
+
constructor(kinotic: IKinotic10);
|
|
545
610
|
loggers(nodeId: string): Promise<LoggersDescriptor>;
|
|
546
611
|
loggerLevels(nodeId: string, name: string): Promise<LoggerLevelsDescriptor>;
|
|
547
612
|
configureLogLevel(nodeId: string, name: string, level: LogLevel): Promise<void>;
|
|
@@ -551,4 +616,4 @@ declare class LogManager implements ILogManager {
|
|
|
551
616
|
declare module "@kinotic-ai/core" {
|
|
552
617
|
interface KinoticSingleton extends ISystemApiExtension {}
|
|
553
618
|
}
|
|
554
|
-
export { WorkloadStatusReport, WorkloadServiceProxy, WorkloadOrchestrationService, WatchEventService, VmProviderType, VmNodeStatusType, VmNodeState, VmNodeServiceProxy, VmNodeRegistration, VmNodeOrchestrationServiceProxy, VmNode, TraceLogProperties, SystemOrganizationService, SystemMemberService, SystemApiPlugin, SingleLoggerLevelsDescriptor, SYSTEM_API_ZONE, LoggersDescriptor, LoggerLevelsDescriptor, LogManager, LogLevel, KinoticNodeInfo, KinoticClusterInfoService, KinoticClusterInfo, IWorkloadService, IWorkloadOrchestrationService, IWatchEventService, IVmNodeService, ISystemOrganizationService, ISystemMemberService, ISystemApiExtension, ILogManager, IKinoticClusterInfoService, GroupLoggerLevelsDescriptor };
|
|
619
|
+
export { WorkloadStatusReport, WorkloadServiceProxy, WorkloadOrchestrationService, WatchEventService, VmProviderType, VmNodeStatusType, VmNodeState, VmNodeServiceProxy, VmNodeRegistration, VmNodeOrchestrationServiceProxy, VmNode, TraceLogProperties, SystemOrganizationService, SystemMemberService, SystemApiPlugin, SingleLoggerLevelsDescriptor, SYSTEM_API_ZONE, LoggersDescriptor, LoggerLevelsDescriptor, LogManager, LogLevel, LlmProviderType, LlmConfigurationService, LlmConfiguration, KinoticNodeInfo, KinoticClusterInfoService, KinoticClusterInfo, IWorkloadService, IWorkloadOrchestrationService, IWatchEventService, IVmNodeService, ISystemOrganizationService, ISystemMemberService, ISystemApiExtension, ILogManager, ILlmConfigurationService, IKinoticClusterInfoService, GroupLoggerLevelsDescriptor };
|
package/dist/index.d.ts
CHANGED
|
@@ -149,6 +149,39 @@ interface WorkloadStatusReport {
|
|
|
149
149
|
/** When the node recorded this status, in epoch milliseconds. */
|
|
150
150
|
updated: number;
|
|
151
151
|
}
|
|
152
|
+
/**
|
|
153
|
+
* The provider whose API an LlmConfiguration calls.
|
|
154
|
+
*/
|
|
155
|
+
declare enum LlmProviderType {
|
|
156
|
+
/** Anthropic's Messages API, serving the Claude models. */
|
|
157
|
+
ANTHROPIC = "ANTHROPIC",
|
|
158
|
+
/** OpenAI's Chat Completions API, or a server compatible with it. */
|
|
159
|
+
OPENAI = "OPENAI"
|
|
160
|
+
}
|
|
161
|
+
/**
|
|
162
|
+
* A large language model the platform's services call: the provider, the model, where the provider's API is
|
|
163
|
+
* reached and the options each request carries. The API key the provider is called with is held in the secret
|
|
164
|
+
* storage and is never a field of the configuration; apiKeyHeld says whether one is held.
|
|
165
|
+
*/
|
|
166
|
+
declare class LlmConfiguration {
|
|
167
|
+
id: string | null;
|
|
168
|
+
/** The name a service selects the configuration by, unique across the platform. */
|
|
169
|
+
name: string;
|
|
170
|
+
provider: LlmProviderType;
|
|
171
|
+
/** The provider's id of the model, such as claude-opus-5-5. */
|
|
172
|
+
model: string;
|
|
173
|
+
/** The base URL of the provider's API, or null for the provider's public API. */
|
|
174
|
+
endpoint: string | null;
|
|
175
|
+
/** The most tokens a response may hold, or null for the calling service's default. */
|
|
176
|
+
maxTokens: number | null;
|
|
177
|
+
/** The sampling temperature, or null for the provider's default. */
|
|
178
|
+
temperature: number | null;
|
|
179
|
+
/** Whether an API key is held for the configuration. */
|
|
180
|
+
apiKeyHeld: boolean;
|
|
181
|
+
created: string | null;
|
|
182
|
+
updated: string | null;
|
|
183
|
+
constructor(name: string, provider: LlmProviderType, model: string);
|
|
184
|
+
}
|
|
152
185
|
import { WatchEvent } from "@kinotic-ai/management-api";
|
|
153
186
|
import { IKinotic } from "@kinotic-ai/core";
|
|
154
187
|
import { CrudServiceProxy, ICrudServiceProxy, IterablePage, Page, Pageable } from "@kinotic-ai/core";
|
|
@@ -527,6 +560,37 @@ declare class WatchEventService implements IWatchEventService {
|
|
|
527
560
|
findAll(pageable: Pageable5): Promise<IterablePage3<WatchEvent3>>;
|
|
528
561
|
private findAllSinglePage;
|
|
529
562
|
}
|
|
563
|
+
import { IKinotic as IKinotic9, Page as Page5, Pageable as Pageable6 } from "@kinotic-ai/core";
|
|
564
|
+
/**
|
|
565
|
+
* The large language models the platform's services call, each an LlmConfiguration that platform operators
|
|
566
|
+
* manage and a service selects by name. A configuration's API key is given on save and held in the platform's
|
|
567
|
+
* scope of the secret storage until a save gives another or the configuration is deleted. Published in the
|
|
568
|
+
* system zone, which only SYSTEM participants and the platform's own cluster members may address.
|
|
569
|
+
*/
|
|
570
|
+
interface ILlmConfigurationService {
|
|
571
|
+
findAll(pageable: Pageable6): Promise<Page5<LlmConfiguration>>;
|
|
572
|
+
/** Resolves null when no configuration has the given id. */
|
|
573
|
+
findById(id: string): Promise<LlmConfiguration | null>;
|
|
574
|
+
/** Resolves null when no configuration has the given name. */
|
|
575
|
+
findByName(name: string): Promise<LlmConfiguration | null>;
|
|
576
|
+
/**
|
|
577
|
+
* Saves a configuration, new or changed, and makes apiKey, when given, the key it calls its provider with.
|
|
578
|
+
* A null or blank apiKey keeps the key held for the configuration, if any. Its name must be one no other
|
|
579
|
+
* configuration has.
|
|
580
|
+
*/
|
|
581
|
+
save(configuration: LlmConfiguration, apiKey: string | null): Promise<LlmConfiguration>;
|
|
582
|
+
/** Deletes the configuration and the API key held for it. */
|
|
583
|
+
deleteById(id: string): Promise<void>;
|
|
584
|
+
}
|
|
585
|
+
declare class LlmConfigurationService implements ILlmConfigurationService {
|
|
586
|
+
private readonly serviceProxy;
|
|
587
|
+
constructor(kinotic: IKinotic9);
|
|
588
|
+
findAll(pageable: Pageable6): Promise<Page5<LlmConfiguration>>;
|
|
589
|
+
findById(id: string): Promise<LlmConfiguration | null>;
|
|
590
|
+
findByName(name: string): Promise<LlmConfiguration | null>;
|
|
591
|
+
save(configuration: LlmConfiguration, apiKey: string | null): Promise<LlmConfiguration>;
|
|
592
|
+
deleteById(id: string): Promise<void>;
|
|
593
|
+
}
|
|
530
594
|
interface ISystemApiExtension {
|
|
531
595
|
vmNodes: IVmNodeService;
|
|
532
596
|
workloads: IWorkloadService;
|
|
@@ -536,12 +600,13 @@ interface ISystemApiExtension {
|
|
|
536
600
|
systemOrganizations: ISystemOrganizationService;
|
|
537
601
|
systemMembers: ISystemMemberService;
|
|
538
602
|
watchEvents: IWatchEventService;
|
|
603
|
+
llmConfigurations: ILlmConfigurationService;
|
|
539
604
|
}
|
|
540
605
|
declare const SystemApiPlugin: KinoticPlugin<ISystemApiExtension>;
|
|
541
|
-
import { IKinotic as
|
|
606
|
+
import { IKinotic as IKinotic10 } from "@kinotic-ai/core";
|
|
542
607
|
declare class LogManager implements ILogManager {
|
|
543
608
|
private readonly serviceProxy;
|
|
544
|
-
constructor(kinotic:
|
|
609
|
+
constructor(kinotic: IKinotic10);
|
|
545
610
|
loggers(nodeId: string): Promise<LoggersDescriptor>;
|
|
546
611
|
loggerLevels(nodeId: string, name: string): Promise<LoggerLevelsDescriptor>;
|
|
547
612
|
configureLogLevel(nodeId: string, name: string, level: LogLevel): Promise<void>;
|
|
@@ -551,4 +616,4 @@ declare class LogManager implements ILogManager {
|
|
|
551
616
|
declare module "@kinotic-ai/core" {
|
|
552
617
|
interface KinoticSingleton extends ISystemApiExtension {}
|
|
553
618
|
}
|
|
554
|
-
export { WorkloadStatusReport, WorkloadServiceProxy, WorkloadOrchestrationService, WatchEventService, VmProviderType, VmNodeStatusType, VmNodeState, VmNodeServiceProxy, VmNodeRegistration, VmNodeOrchestrationServiceProxy, VmNode, TraceLogProperties, SystemOrganizationService, SystemMemberService, SystemApiPlugin, SingleLoggerLevelsDescriptor, SYSTEM_API_ZONE, LoggersDescriptor, LoggerLevelsDescriptor, LogManager, LogLevel, KinoticNodeInfo, KinoticClusterInfoService, KinoticClusterInfo, IWorkloadService, IWorkloadOrchestrationService, IWatchEventService, IVmNodeService, ISystemOrganizationService, ISystemMemberService, ISystemApiExtension, ILogManager, IKinoticClusterInfoService, GroupLoggerLevelsDescriptor };
|
|
619
|
+
export { WorkloadStatusReport, WorkloadServiceProxy, WorkloadOrchestrationService, WatchEventService, VmProviderType, VmNodeStatusType, VmNodeState, VmNodeServiceProxy, VmNodeRegistration, VmNodeOrchestrationServiceProxy, VmNode, TraceLogProperties, SystemOrganizationService, SystemMemberService, SystemApiPlugin, SingleLoggerLevelsDescriptor, SYSTEM_API_ZONE, LoggersDescriptor, LoggerLevelsDescriptor, LogManager, LogLevel, LlmProviderType, LlmConfigurationService, LlmConfiguration, KinoticNodeInfo, KinoticClusterInfoService, KinoticClusterInfo, IWorkloadService, IWorkloadOrchestrationService, IWatchEventService, IVmNodeService, ISystemOrganizationService, ISystemMemberService, ISystemApiExtension, ILogManager, ILlmConfigurationService, IKinoticClusterInfoService, GroupLoggerLevelsDescriptor };
|
package/dist/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// packages/system-api/src/index.ts
|
|
2
|
-
import { SYSTEM_API_ZONE as
|
|
2
|
+
import { SYSTEM_API_ZONE as SYSTEM_API_ZONE10 } from "@kinotic-ai/management-api";
|
|
3
3
|
|
|
4
4
|
// packages/system-api/src/api/model/workload/VmNode.ts
|
|
5
5
|
import { ReconcileState } from "@kinotic-ai/management-api";
|
|
@@ -55,6 +55,30 @@ class VmNodeRegistration {
|
|
|
55
55
|
this.hostname = hostname;
|
|
56
56
|
}
|
|
57
57
|
}
|
|
58
|
+
// packages/system-api/src/api/model/llm/LlmConfiguration.ts
|
|
59
|
+
class LlmConfiguration {
|
|
60
|
+
id = null;
|
|
61
|
+
name;
|
|
62
|
+
provider;
|
|
63
|
+
model;
|
|
64
|
+
endpoint = null;
|
|
65
|
+
maxTokens = null;
|
|
66
|
+
temperature = null;
|
|
67
|
+
apiKeyHeld = false;
|
|
68
|
+
created = null;
|
|
69
|
+
updated = null;
|
|
70
|
+
constructor(name, provider, model) {
|
|
71
|
+
this.name = name;
|
|
72
|
+
this.provider = provider;
|
|
73
|
+
this.model = model;
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
// packages/system-api/src/api/model/llm/LlmProviderType.ts
|
|
77
|
+
var LlmProviderType;
|
|
78
|
+
((LlmProviderType2) => {
|
|
79
|
+
LlmProviderType2["ANTHROPIC"] = "ANTHROPIC";
|
|
80
|
+
LlmProviderType2["OPENAI"] = "OPENAI";
|
|
81
|
+
})(LlmProviderType ||= {});
|
|
58
82
|
// packages/system-api/src/api/services/workload/IVmNodeService.ts
|
|
59
83
|
import { SYSTEM_API_ZONE } from "@kinotic-ai/management-api";
|
|
60
84
|
import { CrudServiceProxy, FunctionalIterablePage } from "@kinotic-ai/core";
|
|
@@ -319,6 +343,31 @@ class WatchEventService {
|
|
|
319
343
|
}
|
|
320
344
|
}
|
|
321
345
|
|
|
346
|
+
// packages/system-api/src/api/services/ILlmConfigurationService.ts
|
|
347
|
+
import { SYSTEM_API_ZONE as SYSTEM_API_ZONE9 } from "@kinotic-ai/management-api";
|
|
348
|
+
|
|
349
|
+
class LlmConfigurationService {
|
|
350
|
+
serviceProxy;
|
|
351
|
+
constructor(kinotic) {
|
|
352
|
+
this.serviceProxy = kinotic.serviceProxy(`${SYSTEM_API_ZONE9}~org.kinotic.system.api.services.LlmConfigurationService`);
|
|
353
|
+
}
|
|
354
|
+
findAll(pageable) {
|
|
355
|
+
return this.serviceProxy.invoke("findAll", [pageable]);
|
|
356
|
+
}
|
|
357
|
+
findById(id) {
|
|
358
|
+
return this.serviceProxy.invoke("findById", [id]);
|
|
359
|
+
}
|
|
360
|
+
findByName(name) {
|
|
361
|
+
return this.serviceProxy.invoke("findByName", [name]);
|
|
362
|
+
}
|
|
363
|
+
save(configuration, apiKey) {
|
|
364
|
+
return this.serviceProxy.invoke("save", [configuration, apiKey]);
|
|
365
|
+
}
|
|
366
|
+
deleteById(id) {
|
|
367
|
+
return this.serviceProxy.invoke("deleteById", [id]);
|
|
368
|
+
}
|
|
369
|
+
}
|
|
370
|
+
|
|
322
371
|
// packages/system-api/src/api/SystemApiPlugin.ts
|
|
323
372
|
var SystemApiPlugin = {
|
|
324
373
|
install(kinotic) {
|
|
@@ -330,7 +379,8 @@ var SystemApiPlugin = {
|
|
|
330
379
|
clusterInfo: new KinoticClusterInfoService(kinotic),
|
|
331
380
|
systemOrganizations: new SystemOrganizationService(kinotic),
|
|
332
381
|
systemMembers: new SystemMemberService(kinotic),
|
|
333
|
-
watchEvents: new WatchEventService(kinotic)
|
|
382
|
+
watchEvents: new WatchEventService(kinotic),
|
|
383
|
+
llmConfigurations: new LlmConfigurationService(kinotic)
|
|
334
384
|
};
|
|
335
385
|
}
|
|
336
386
|
};
|
|
@@ -368,11 +418,14 @@ export {
|
|
|
368
418
|
SystemMemberService,
|
|
369
419
|
SystemApiPlugin,
|
|
370
420
|
SingleLoggerLevelsDescriptor,
|
|
371
|
-
|
|
421
|
+
SYSTEM_API_ZONE10 as SYSTEM_API_ZONE,
|
|
372
422
|
LoggersDescriptor,
|
|
373
423
|
LoggerLevelsDescriptor,
|
|
374
424
|
LogManager,
|
|
375
425
|
LogLevel,
|
|
426
|
+
LlmProviderType,
|
|
427
|
+
LlmConfigurationService,
|
|
428
|
+
LlmConfiguration,
|
|
376
429
|
KinoticNodeInfo,
|
|
377
430
|
KinoticClusterInfoService,
|
|
378
431
|
KinoticClusterInfo,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kinotic-ai/system-api",
|
|
3
|
-
"version": "5.0.0-beta.
|
|
3
|
+
"version": "5.0.0-beta.26",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Client API for the Kinotic platform's system plane: the workload and node orchestration services platform machines and operators use.",
|
|
6
6
|
"files": [
|
|
@@ -38,12 +38,12 @@
|
|
|
38
38
|
"coverage": "bun test --coverage --pass-with-no-tests"
|
|
39
39
|
},
|
|
40
40
|
"peerDependencies": {
|
|
41
|
-
"@kinotic-ai/core": "^5.0.0-beta.
|
|
42
|
-
"@kinotic-ai/management-api": "^5.0.0-beta.
|
|
41
|
+
"@kinotic-ai/core": "^5.0.0-beta.25",
|
|
42
|
+
"@kinotic-ai/management-api": "^5.0.0-beta.59"
|
|
43
43
|
},
|
|
44
44
|
"devDependencies": {
|
|
45
|
-
"@kinotic-ai/core": "5.0.0-beta.
|
|
46
|
-
"@kinotic-ai/management-api": "5.0.0-beta.
|
|
45
|
+
"@kinotic-ai/core": "5.0.0-beta.25",
|
|
46
|
+
"@kinotic-ai/management-api": "5.0.0-beta.59",
|
|
47
47
|
"@types/bun": "^1.3.9",
|
|
48
48
|
"typescript": "^5.9.3"
|
|
49
49
|
}
|