MCPcopy Create free account
hub / github.com/Kilo-Org/cloud / getConfiguredAutoRoutingMode

Function getConfiguredAutoRoutingMode

services/auto-routing/src/routing-mode.ts:42–58  ·  view source on GitHub ↗
(
  env: AutoRoutingModeEnv,
  owner: { ownerType: AutoRoutingModeOwnerType; ownerId: string }
)

Source from the content-addressed store, hash-verified

40
41 async setMode(mode: AutoRoutingMode | null): Promise<void> {
42 if (mode === null) {
43 await this.ctx.storage.delete(MODE_STORAGE_KEY);
44 return;
45 }
46 await this.ctx.storage.put(MODE_STORAGE_KEY, mode);
47 }
48
49 async getPool(): Promise<EfficientModelPool | null> {
50 return parseStoredPool(await this.ctx.storage.get(POOL_STORAGE_KEY));
51 }
52
53 async setPool(pool: EfficientModelPool | null): Promise<void> {
54 if (pool === null) {
55 await this.ctx.storage.delete(POOL_STORAGE_KEY);
56 return;
57 }
58 await this.ctx.storage.put(POOL_STORAGE_KEY, pool);
59 }
60
61 async getSettings(): Promise<AutoRoutingOwnerSettings> {

Callers 3

getRoutingModeHandlerFunction · 0.90
getAutoRoutingModeFunction · 0.85

Calls 5

formatErrorFunction · 0.90
modeStubFunction · 0.85
modeKeyFunction · 0.85
getModeMethod · 0.80
warnMethod · 0.65

Tested by

no test coverage detected