agent-swarm-kit 1.1.180 → 1.1.181
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/build/index.cjs +52 -39
- package/build/index.mjs +52 -39
- package/package.json +1 -1
- package/types.d.ts +13 -13
package/build/index.cjs
CHANGED
|
@@ -19104,11 +19104,12 @@ const METHOD_NAME$15 = "function.test.overrideAgent";
|
|
|
19104
19104
|
/**
|
|
19105
19105
|
* Function implementation
|
|
19106
19106
|
*/
|
|
19107
|
-
const overrideAgentInternal = beginContext((publicAgentSchema) => {
|
|
19107
|
+
const overrideAgentInternal = beginContext(async (publicAgentSchema) => {
|
|
19108
19108
|
GLOBAL_CONFIG.CC_LOGGER_ENABLE_LOG &&
|
|
19109
19109
|
swarm$1.loggerService.log(METHOD_NAME$15, {
|
|
19110
19110
|
agentSchema: publicAgentSchema,
|
|
19111
19111
|
});
|
|
19112
|
+
await swarm$1.agentValidationService.validate(publicAgentSchema.agentName, METHOD_NAME$15);
|
|
19112
19113
|
const agentSchema = mapAgentSchema(publicAgentSchema);
|
|
19113
19114
|
return swarm$1.agentSchemaService.override(agentSchema.agentName, agentSchema);
|
|
19114
19115
|
});
|
|
@@ -19131,19 +19132,20 @@ const overrideAgentInternal = beginContext((publicAgentSchema) => {
|
|
|
19131
19132
|
* });
|
|
19132
19133
|
* // Logs the operation (if enabled) and updates the agent schema in the swarm.
|
|
19133
19134
|
*/
|
|
19134
|
-
function overrideAgent(agentSchema) {
|
|
19135
|
-
return overrideAgentInternal(agentSchema);
|
|
19135
|
+
async function overrideAgent(agentSchema) {
|
|
19136
|
+
return await overrideAgentInternal(agentSchema);
|
|
19136
19137
|
}
|
|
19137
19138
|
|
|
19138
19139
|
const METHOD_NAME$14 = "function.test.overrideCompletion";
|
|
19139
19140
|
/**
|
|
19140
19141
|
* Function implementation
|
|
19141
19142
|
*/
|
|
19142
|
-
const overrideCompletionInternal = beginContext((publicCompletionSchema) => {
|
|
19143
|
+
const overrideCompletionInternal = beginContext(async (publicCompletionSchema) => {
|
|
19143
19144
|
GLOBAL_CONFIG.CC_LOGGER_ENABLE_LOG &&
|
|
19144
19145
|
swarm$1.loggerService.log(METHOD_NAME$14, {
|
|
19145
19146
|
completionSchema: publicCompletionSchema,
|
|
19146
19147
|
});
|
|
19148
|
+
await swarm$1.agentValidationService.validate(publicCompletionSchema.completionName, METHOD_NAME$14);
|
|
19147
19149
|
const completionSchema = mapCompletionSchema(publicCompletionSchema);
|
|
19148
19150
|
return swarm$1.completionSchemaService.override(completionSchema.completionName, completionSchema);
|
|
19149
19151
|
});
|
|
@@ -19167,19 +19169,20 @@ const overrideCompletionInternal = beginContext((publicCompletionSchema) => {
|
|
|
19167
19169
|
* });
|
|
19168
19170
|
* // Logs the operation (if enabled) and updates the completion schema in the swarm.
|
|
19169
19171
|
*/
|
|
19170
|
-
function overrideCompletion(completionSchema) {
|
|
19171
|
-
return overrideCompletionInternal(completionSchema);
|
|
19172
|
+
async function overrideCompletion(completionSchema) {
|
|
19173
|
+
return await overrideCompletionInternal(completionSchema);
|
|
19172
19174
|
}
|
|
19173
19175
|
|
|
19174
19176
|
const METHOD_NAME$13 = "function.test.overrideEmbeding";
|
|
19175
19177
|
/**
|
|
19176
19178
|
* Function implementation
|
|
19177
19179
|
*/
|
|
19178
|
-
const overrideEmbedingInternal = beginContext((publicEmbeddingSchema) => {
|
|
19180
|
+
const overrideEmbedingInternal = beginContext(async (publicEmbeddingSchema) => {
|
|
19179
19181
|
GLOBAL_CONFIG.CC_LOGGER_ENABLE_LOG &&
|
|
19180
19182
|
swarm$1.loggerService.log(METHOD_NAME$13, {
|
|
19181
19183
|
embeddingSchema: publicEmbeddingSchema,
|
|
19182
19184
|
});
|
|
19185
|
+
await swarm$1.agentValidationService.validate(publicEmbeddingSchema.embeddingName, METHOD_NAME$13);
|
|
19183
19186
|
const embeddingSchema = removeUndefined(publicEmbeddingSchema);
|
|
19184
19187
|
return swarm$1.embeddingSchemaService.override(embeddingSchema.embeddingName, embeddingSchema);
|
|
19185
19188
|
});
|
|
@@ -19204,19 +19207,20 @@ const overrideEmbedingInternal = beginContext((publicEmbeddingSchema) => {
|
|
|
19204
19207
|
* });
|
|
19205
19208
|
* // Logs the operation (if enabled) and updates the embedding schema in the swarm.
|
|
19206
19209
|
*/
|
|
19207
|
-
function overrideEmbeding(embeddingSchema) {
|
|
19208
|
-
return overrideEmbedingInternal(embeddingSchema);
|
|
19210
|
+
async function overrideEmbeding(embeddingSchema) {
|
|
19211
|
+
return await overrideEmbedingInternal(embeddingSchema);
|
|
19209
19212
|
}
|
|
19210
19213
|
|
|
19211
19214
|
const METHOD_NAME$12 = "function.test.overridePolicy";
|
|
19212
19215
|
/**
|
|
19213
19216
|
* Function implementation
|
|
19214
19217
|
*/
|
|
19215
|
-
const overridePolicyInternal = beginContext((publicPolicySchema) => {
|
|
19218
|
+
const overridePolicyInternal = beginContext(async (publicPolicySchema) => {
|
|
19216
19219
|
GLOBAL_CONFIG.CC_LOGGER_ENABLE_LOG &&
|
|
19217
19220
|
swarm$1.loggerService.log(METHOD_NAME$12, {
|
|
19218
19221
|
policySchema: publicPolicySchema,
|
|
19219
19222
|
});
|
|
19223
|
+
await swarm$1.agentValidationService.validate(publicPolicySchema.policyName, METHOD_NAME$12);
|
|
19220
19224
|
const policySchema = removeUndefined(publicPolicySchema);
|
|
19221
19225
|
return swarm$1.policySchemaService.override(policySchema.policyName, policySchema);
|
|
19222
19226
|
});
|
|
@@ -19239,19 +19243,20 @@ const overridePolicyInternal = beginContext((publicPolicySchema) => {
|
|
|
19239
19243
|
* });
|
|
19240
19244
|
* // Logs the operation (if enabled) and updates the policy schema in the swarm.
|
|
19241
19245
|
*/
|
|
19242
|
-
function overridePolicy(policySchema) {
|
|
19243
|
-
return overridePolicyInternal(policySchema);
|
|
19246
|
+
async function overridePolicy(policySchema) {
|
|
19247
|
+
return await overridePolicyInternal(policySchema);
|
|
19244
19248
|
}
|
|
19245
19249
|
|
|
19246
19250
|
const METHOD_NAME$11 = "function.test.overrideState";
|
|
19247
19251
|
/**
|
|
19248
19252
|
* Function implementation
|
|
19249
19253
|
*/
|
|
19250
|
-
const overrideStateInternal = beginContext((publicStateSchema) => {
|
|
19254
|
+
const overrideStateInternal = beginContext(async (publicStateSchema) => {
|
|
19251
19255
|
GLOBAL_CONFIG.CC_LOGGER_ENABLE_LOG &&
|
|
19252
19256
|
swarm$1.loggerService.log(METHOD_NAME$11, {
|
|
19253
19257
|
stateSchema: publicStateSchema,
|
|
19254
19258
|
});
|
|
19259
|
+
await swarm$1.agentValidationService.validate(publicStateSchema.stateName, METHOD_NAME$11);
|
|
19255
19260
|
const stateSchema = removeUndefined(publicStateSchema);
|
|
19256
19261
|
return swarm$1.stateSchemaService.override(stateSchema.stateName, stateSchema);
|
|
19257
19262
|
});
|
|
@@ -19275,19 +19280,20 @@ const overrideStateInternal = beginContext((publicStateSchema) => {
|
|
|
19275
19280
|
* });
|
|
19276
19281
|
* // Logs the operation (if enabled) and updates the state schema in the swarm.
|
|
19277
19282
|
*/
|
|
19278
|
-
function overrideState(stateSchema) {
|
|
19279
|
-
return overrideStateInternal(stateSchema);
|
|
19283
|
+
async function overrideState(stateSchema) {
|
|
19284
|
+
return await overrideStateInternal(stateSchema);
|
|
19280
19285
|
}
|
|
19281
19286
|
|
|
19282
19287
|
const METHOD_NAME$10 = "function.test.overrideStorage";
|
|
19283
19288
|
/**
|
|
19284
19289
|
* Function implementation
|
|
19285
19290
|
*/
|
|
19286
|
-
const overrideStorageInternal = beginContext((publicStorageSchema) => {
|
|
19291
|
+
const overrideStorageInternal = beginContext(async (publicStorageSchema) => {
|
|
19287
19292
|
GLOBAL_CONFIG.CC_LOGGER_ENABLE_LOG &&
|
|
19288
19293
|
swarm$1.loggerService.log(METHOD_NAME$10, {
|
|
19289
19294
|
storageSchema: publicStorageSchema,
|
|
19290
19295
|
});
|
|
19296
|
+
await swarm$1.agentValidationService.validate(publicStorageSchema.storageName, METHOD_NAME$10);
|
|
19291
19297
|
const storageSchema = removeUndefined(publicStorageSchema);
|
|
19292
19298
|
return swarm$1.storageSchemaService.override(storageSchema.storageName, storageSchema);
|
|
19293
19299
|
});
|
|
@@ -19312,19 +19318,20 @@ const overrideStorageInternal = beginContext((publicStorageSchema) => {
|
|
|
19312
19318
|
* });
|
|
19313
19319
|
* // Logs the operation (if enabled) and updates the storage schema in the swarm.
|
|
19314
19320
|
*/
|
|
19315
|
-
function overrideStorage(storageSchema) {
|
|
19316
|
-
return overrideStorageInternal(storageSchema);
|
|
19321
|
+
async function overrideStorage(storageSchema) {
|
|
19322
|
+
return await overrideStorageInternal(storageSchema);
|
|
19317
19323
|
}
|
|
19318
19324
|
|
|
19319
19325
|
const METHOD_NAME$$ = "function.test.overrideSwarm";
|
|
19320
19326
|
/**
|
|
19321
19327
|
* Function implementation
|
|
19322
19328
|
*/
|
|
19323
|
-
const overrideSwarmInternal = beginContext((publicSwarmSchema) => {
|
|
19329
|
+
const overrideSwarmInternal = beginContext(async (publicSwarmSchema) => {
|
|
19324
19330
|
GLOBAL_CONFIG.CC_LOGGER_ENABLE_LOG &&
|
|
19325
19331
|
swarm$1.loggerService.log(METHOD_NAME$$, {
|
|
19326
19332
|
swarmSchema: publicSwarmSchema,
|
|
19327
19333
|
});
|
|
19334
|
+
await swarm$1.agentValidationService.validate(publicSwarmSchema.swarmName, METHOD_NAME$$);
|
|
19328
19335
|
const swarmSchema = removeUndefined(publicSwarmSchema);
|
|
19329
19336
|
return swarm$1.swarmSchemaService.override(swarmSchema.swarmName, swarmSchema);
|
|
19330
19337
|
});
|
|
@@ -19347,19 +19354,20 @@ const overrideSwarmInternal = beginContext((publicSwarmSchema) => {
|
|
|
19347
19354
|
* });
|
|
19348
19355
|
* // Logs the operation (if enabled) and updates the swarm schema in the swarm system.
|
|
19349
19356
|
*/
|
|
19350
|
-
function overrideSwarm(swarmSchema) {
|
|
19351
|
-
return overrideSwarmInternal(swarmSchema);
|
|
19357
|
+
async function overrideSwarm(swarmSchema) {
|
|
19358
|
+
return await overrideSwarmInternal(swarmSchema);
|
|
19352
19359
|
}
|
|
19353
19360
|
|
|
19354
19361
|
const METHOD_NAME$_ = "function.test.overrideTool";
|
|
19355
19362
|
/**
|
|
19356
19363
|
* Function implementation
|
|
19357
19364
|
*/
|
|
19358
|
-
const overrideToolInternal = beginContext((publicToolSchema) => {
|
|
19365
|
+
const overrideToolInternal = beginContext(async (publicToolSchema) => {
|
|
19359
19366
|
GLOBAL_CONFIG.CC_LOGGER_ENABLE_LOG &&
|
|
19360
19367
|
swarm$1.loggerService.log(METHOD_NAME$_, {
|
|
19361
19368
|
toolSchema: publicToolSchema,
|
|
19362
19369
|
});
|
|
19370
|
+
await swarm$1.agentValidationService.validate(publicToolSchema.toolName, METHOD_NAME$_);
|
|
19363
19371
|
const toolSchema = removeUndefined(publicToolSchema);
|
|
19364
19372
|
return swarm$1.toolSchemaService.override(toolSchema.toolName, toolSchema);
|
|
19365
19373
|
});
|
|
@@ -19381,19 +19389,20 @@ const overrideToolInternal = beginContext((publicToolSchema) => {
|
|
|
19381
19389
|
* });
|
|
19382
19390
|
* // Logs the operation (if enabled) and updates the tool schema in the swarm.
|
|
19383
19391
|
*/
|
|
19384
|
-
function overrideTool(toolSchema) {
|
|
19385
|
-
return overrideToolInternal(toolSchema);
|
|
19392
|
+
async function overrideTool(toolSchema) {
|
|
19393
|
+
return await overrideToolInternal(toolSchema);
|
|
19386
19394
|
}
|
|
19387
19395
|
|
|
19388
19396
|
const METHOD_NAME$Z = "function.test.overrideMCP";
|
|
19389
19397
|
/**
|
|
19390
19398
|
* Function implementation
|
|
19391
19399
|
*/
|
|
19392
|
-
const overrideMCPInternal = beginContext((publicMcpSchema) => {
|
|
19400
|
+
const overrideMCPInternal = beginContext(async (publicMcpSchema) => {
|
|
19393
19401
|
GLOBAL_CONFIG.CC_LOGGER_ENABLE_LOG &&
|
|
19394
19402
|
swarm$1.loggerService.log(METHOD_NAME$Z, {
|
|
19395
19403
|
mcpSchema: publicMcpSchema,
|
|
19396
19404
|
});
|
|
19405
|
+
await swarm$1.agentValidationService.validate(publicMcpSchema.mcpName, METHOD_NAME$Z);
|
|
19397
19406
|
const mcpSchema = removeUndefined(publicMcpSchema);
|
|
19398
19407
|
return swarm$1.mcpSchemaService.override(mcpSchema.mcpName, mcpSchema);
|
|
19399
19408
|
});
|
|
@@ -19401,19 +19410,20 @@ const overrideMCPInternal = beginContext((publicMcpSchema) => {
|
|
|
19401
19410
|
* Overrides an existing MCP (Model Context Protocol) schema with a new or partial schema.
|
|
19402
19411
|
* @param {TMCPSchema} mcpSchema - The schema definition for mcp.
|
|
19403
19412
|
*/
|
|
19404
|
-
function overrideMCP(mcpSchema) {
|
|
19405
|
-
return overrideMCPInternal(mcpSchema);
|
|
19413
|
+
async function overrideMCP(mcpSchema) {
|
|
19414
|
+
return await overrideMCPInternal(mcpSchema);
|
|
19406
19415
|
}
|
|
19407
19416
|
|
|
19408
19417
|
const METHOD_NAME$Y = "function.test.overrideAdvisor";
|
|
19409
19418
|
/**
|
|
19410
19419
|
* Function implementation
|
|
19411
19420
|
*/
|
|
19412
|
-
const overrideAdvisorInternal = beginContext((publicAdvisorSchema) => {
|
|
19421
|
+
const overrideAdvisorInternal = beginContext(async (publicAdvisorSchema) => {
|
|
19413
19422
|
GLOBAL_CONFIG.CC_LOGGER_ENABLE_LOG &&
|
|
19414
19423
|
swarm$1.loggerService.log(METHOD_NAME$Y, {
|
|
19415
19424
|
advisorSchema: publicAdvisorSchema,
|
|
19416
19425
|
});
|
|
19426
|
+
await swarm$1.agentValidationService.validate(publicAdvisorSchema.advisorName, METHOD_NAME$Y);
|
|
19417
19427
|
const advisorSchema = removeUndefined(publicAdvisorSchema);
|
|
19418
19428
|
return swarm$1.advisorSchemaService.override(advisorSchema.advisorName, advisorSchema);
|
|
19419
19429
|
});
|
|
@@ -19445,8 +19455,8 @@ const overrideAdvisorInternal = beginContext((publicAdvisorSchema) => {
|
|
|
19445
19455
|
* getChat: async (args) => `Query: ${args.message.query}`
|
|
19446
19456
|
* });
|
|
19447
19457
|
*/
|
|
19448
|
-
function overrideAdvisor(advisorSchema) {
|
|
19449
|
-
return overrideAdvisorInternal(advisorSchema);
|
|
19458
|
+
async function overrideAdvisor(advisorSchema) {
|
|
19459
|
+
return (await overrideAdvisorInternal(advisorSchema));
|
|
19450
19460
|
}
|
|
19451
19461
|
|
|
19452
19462
|
/**
|
|
@@ -19462,11 +19472,12 @@ const METHOD_NAME$X = "function.test.overrideCompute";
|
|
|
19462
19472
|
/**
|
|
19463
19473
|
* Function implementation
|
|
19464
19474
|
*/
|
|
19465
|
-
const overrideComputeInternal = beginContext((publicComputeSchema) => {
|
|
19475
|
+
const overrideComputeInternal = beginContext(async (publicComputeSchema) => {
|
|
19466
19476
|
GLOBAL_CONFIG.CC_LOGGER_ENABLE_LOG &&
|
|
19467
19477
|
swarm$1.loggerService.log(METHOD_NAME$X, {
|
|
19468
19478
|
computeSchema: publicComputeSchema,
|
|
19469
19479
|
});
|
|
19480
|
+
await swarm$1.agentValidationService.validate(publicComputeSchema.computeName, METHOD_NAME$X);
|
|
19470
19481
|
const computeSchema = removeUndefined(publicComputeSchema);
|
|
19471
19482
|
return swarm$1.computeSchemaService.override(computeSchema.computeName, computeSchema);
|
|
19472
19483
|
});
|
|
@@ -19475,8 +19486,8 @@ const overrideComputeInternal = beginContext((publicComputeSchema) => {
|
|
|
19475
19486
|
*
|
|
19476
19487
|
* @param computeSchema Partial compute schema with updates to be applied to the existing compute configuration.
|
|
19477
19488
|
*/
|
|
19478
|
-
function overrideCompute(computeSchema) {
|
|
19479
|
-
return overrideComputeInternal(computeSchema);
|
|
19489
|
+
async function overrideCompute(computeSchema) {
|
|
19490
|
+
return await overrideComputeInternal(computeSchema);
|
|
19480
19491
|
}
|
|
19481
19492
|
|
|
19482
19493
|
/**
|
|
@@ -19492,11 +19503,12 @@ const METHOD_NAME$W = "function.test.overridePipeline";
|
|
|
19492
19503
|
/**
|
|
19493
19504
|
* Function implementation
|
|
19494
19505
|
*/
|
|
19495
|
-
const overridePipelineInternal = beginContext((publicPipelineSchema) => {
|
|
19506
|
+
const overridePipelineInternal = beginContext(async (publicPipelineSchema) => {
|
|
19496
19507
|
GLOBAL_CONFIG.CC_LOGGER_ENABLE_LOG &&
|
|
19497
19508
|
swarm$1.loggerService.log(METHOD_NAME$W, {
|
|
19498
19509
|
pipelineSchema: publicPipelineSchema,
|
|
19499
19510
|
});
|
|
19511
|
+
await swarm$1.agentValidationService.validate(publicPipelineSchema.pipelineName, METHOD_NAME$W);
|
|
19500
19512
|
const pipelineSchema = removeUndefined(publicPipelineSchema);
|
|
19501
19513
|
return swarm$1.pipelineSchemaService.override(pipelineSchema.pipelineName, pipelineSchema);
|
|
19502
19514
|
});
|
|
@@ -19506,8 +19518,8 @@ const overridePipelineInternal = beginContext((publicPipelineSchema) => {
|
|
|
19506
19518
|
* @param pipelineSchema Partial pipeline schema with updates to be applied to the existing pipeline configuration.
|
|
19507
19519
|
* @template Payload - Type extending object for the pipeline payload.
|
|
19508
19520
|
*/
|
|
19509
|
-
function overridePipeline(pipelineSchema) {
|
|
19510
|
-
return overridePipelineInternal(pipelineSchema);
|
|
19521
|
+
async function overridePipeline(pipelineSchema) {
|
|
19522
|
+
return await overridePipelineInternal(pipelineSchema);
|
|
19511
19523
|
}
|
|
19512
19524
|
|
|
19513
19525
|
/**
|
|
@@ -19522,11 +19534,12 @@ const METHOD_NAME$V = "function.test.overrideOutline";
|
|
|
19522
19534
|
* Updates the specified outline schema in the swarm's schema service and logs the operation if enabled.
|
|
19523
19535
|
* @private
|
|
19524
19536
|
*/
|
|
19525
|
-
const overrideOutlineInternal = beginContext((publicOutlineSchema) => {
|
|
19537
|
+
const overrideOutlineInternal = beginContext(async (publicOutlineSchema) => {
|
|
19526
19538
|
GLOBAL_CONFIG.CC_LOGGER_ENABLE_LOG &&
|
|
19527
19539
|
swarm$1.loggerService.log(METHOD_NAME$V, {
|
|
19528
19540
|
outlineSchema: publicOutlineSchema,
|
|
19529
19541
|
});
|
|
19542
|
+
await swarm$1.agentValidationService.validate(publicOutlineSchema.outlineName, METHOD_NAME$V);
|
|
19530
19543
|
const outlineSchema = removeUndefined(publicOutlineSchema);
|
|
19531
19544
|
return swarm$1.outlineSchemaService.override(outlineSchema.outlineName, outlineSchema);
|
|
19532
19545
|
});
|
|
@@ -19538,8 +19551,8 @@ const overrideOutlineInternal = beginContext((publicOutlineSchema) => {
|
|
|
19538
19551
|
* @param outlineSchema Partial outline schema with updates to be applied to the existing outline configuration.
|
|
19539
19552
|
* @param Param> The Param> parameter.
|
|
19540
19553
|
*/
|
|
19541
|
-
function overrideOutline(outlineSchema) {
|
|
19542
|
-
return overrideOutlineInternal(outlineSchema);
|
|
19554
|
+
async function overrideOutline(outlineSchema) {
|
|
19555
|
+
return await overrideOutlineInternal(outlineSchema);
|
|
19543
19556
|
}
|
|
19544
19557
|
|
|
19545
19558
|
const METHOD_NAME$U = "function.other.markOnline";
|
package/build/index.mjs
CHANGED
|
@@ -19084,11 +19084,12 @@ const METHOD_NAME$15 = "function.test.overrideAgent";
|
|
|
19084
19084
|
/**
|
|
19085
19085
|
* Function implementation
|
|
19086
19086
|
*/
|
|
19087
|
-
const overrideAgentInternal = beginContext((publicAgentSchema) => {
|
|
19087
|
+
const overrideAgentInternal = beginContext(async (publicAgentSchema) => {
|
|
19088
19088
|
GLOBAL_CONFIG.CC_LOGGER_ENABLE_LOG &&
|
|
19089
19089
|
swarm$1.loggerService.log(METHOD_NAME$15, {
|
|
19090
19090
|
agentSchema: publicAgentSchema,
|
|
19091
19091
|
});
|
|
19092
|
+
await swarm$1.agentValidationService.validate(publicAgentSchema.agentName, METHOD_NAME$15);
|
|
19092
19093
|
const agentSchema = mapAgentSchema(publicAgentSchema);
|
|
19093
19094
|
return swarm$1.agentSchemaService.override(agentSchema.agentName, agentSchema);
|
|
19094
19095
|
});
|
|
@@ -19111,19 +19112,20 @@ const overrideAgentInternal = beginContext((publicAgentSchema) => {
|
|
|
19111
19112
|
* });
|
|
19112
19113
|
* // Logs the operation (if enabled) and updates the agent schema in the swarm.
|
|
19113
19114
|
*/
|
|
19114
|
-
function overrideAgent(agentSchema) {
|
|
19115
|
-
return overrideAgentInternal(agentSchema);
|
|
19115
|
+
async function overrideAgent(agentSchema) {
|
|
19116
|
+
return await overrideAgentInternal(agentSchema);
|
|
19116
19117
|
}
|
|
19117
19118
|
|
|
19118
19119
|
const METHOD_NAME$14 = "function.test.overrideCompletion";
|
|
19119
19120
|
/**
|
|
19120
19121
|
* Function implementation
|
|
19121
19122
|
*/
|
|
19122
|
-
const overrideCompletionInternal = beginContext((publicCompletionSchema) => {
|
|
19123
|
+
const overrideCompletionInternal = beginContext(async (publicCompletionSchema) => {
|
|
19123
19124
|
GLOBAL_CONFIG.CC_LOGGER_ENABLE_LOG &&
|
|
19124
19125
|
swarm$1.loggerService.log(METHOD_NAME$14, {
|
|
19125
19126
|
completionSchema: publicCompletionSchema,
|
|
19126
19127
|
});
|
|
19128
|
+
await swarm$1.agentValidationService.validate(publicCompletionSchema.completionName, METHOD_NAME$14);
|
|
19127
19129
|
const completionSchema = mapCompletionSchema(publicCompletionSchema);
|
|
19128
19130
|
return swarm$1.completionSchemaService.override(completionSchema.completionName, completionSchema);
|
|
19129
19131
|
});
|
|
@@ -19147,19 +19149,20 @@ const overrideCompletionInternal = beginContext((publicCompletionSchema) => {
|
|
|
19147
19149
|
* });
|
|
19148
19150
|
* // Logs the operation (if enabled) and updates the completion schema in the swarm.
|
|
19149
19151
|
*/
|
|
19150
|
-
function overrideCompletion(completionSchema) {
|
|
19151
|
-
return overrideCompletionInternal(completionSchema);
|
|
19152
|
+
async function overrideCompletion(completionSchema) {
|
|
19153
|
+
return await overrideCompletionInternal(completionSchema);
|
|
19152
19154
|
}
|
|
19153
19155
|
|
|
19154
19156
|
const METHOD_NAME$13 = "function.test.overrideEmbeding";
|
|
19155
19157
|
/**
|
|
19156
19158
|
* Function implementation
|
|
19157
19159
|
*/
|
|
19158
|
-
const overrideEmbedingInternal = beginContext((publicEmbeddingSchema) => {
|
|
19160
|
+
const overrideEmbedingInternal = beginContext(async (publicEmbeddingSchema) => {
|
|
19159
19161
|
GLOBAL_CONFIG.CC_LOGGER_ENABLE_LOG &&
|
|
19160
19162
|
swarm$1.loggerService.log(METHOD_NAME$13, {
|
|
19161
19163
|
embeddingSchema: publicEmbeddingSchema,
|
|
19162
19164
|
});
|
|
19165
|
+
await swarm$1.agentValidationService.validate(publicEmbeddingSchema.embeddingName, METHOD_NAME$13);
|
|
19163
19166
|
const embeddingSchema = removeUndefined(publicEmbeddingSchema);
|
|
19164
19167
|
return swarm$1.embeddingSchemaService.override(embeddingSchema.embeddingName, embeddingSchema);
|
|
19165
19168
|
});
|
|
@@ -19184,19 +19187,20 @@ const overrideEmbedingInternal = beginContext((publicEmbeddingSchema) => {
|
|
|
19184
19187
|
* });
|
|
19185
19188
|
* // Logs the operation (if enabled) and updates the embedding schema in the swarm.
|
|
19186
19189
|
*/
|
|
19187
|
-
function overrideEmbeding(embeddingSchema) {
|
|
19188
|
-
return overrideEmbedingInternal(embeddingSchema);
|
|
19190
|
+
async function overrideEmbeding(embeddingSchema) {
|
|
19191
|
+
return await overrideEmbedingInternal(embeddingSchema);
|
|
19189
19192
|
}
|
|
19190
19193
|
|
|
19191
19194
|
const METHOD_NAME$12 = "function.test.overridePolicy";
|
|
19192
19195
|
/**
|
|
19193
19196
|
* Function implementation
|
|
19194
19197
|
*/
|
|
19195
|
-
const overridePolicyInternal = beginContext((publicPolicySchema) => {
|
|
19198
|
+
const overridePolicyInternal = beginContext(async (publicPolicySchema) => {
|
|
19196
19199
|
GLOBAL_CONFIG.CC_LOGGER_ENABLE_LOG &&
|
|
19197
19200
|
swarm$1.loggerService.log(METHOD_NAME$12, {
|
|
19198
19201
|
policySchema: publicPolicySchema,
|
|
19199
19202
|
});
|
|
19203
|
+
await swarm$1.agentValidationService.validate(publicPolicySchema.policyName, METHOD_NAME$12);
|
|
19200
19204
|
const policySchema = removeUndefined(publicPolicySchema);
|
|
19201
19205
|
return swarm$1.policySchemaService.override(policySchema.policyName, policySchema);
|
|
19202
19206
|
});
|
|
@@ -19219,19 +19223,20 @@ const overridePolicyInternal = beginContext((publicPolicySchema) => {
|
|
|
19219
19223
|
* });
|
|
19220
19224
|
* // Logs the operation (if enabled) and updates the policy schema in the swarm.
|
|
19221
19225
|
*/
|
|
19222
|
-
function overridePolicy(policySchema) {
|
|
19223
|
-
return overridePolicyInternal(policySchema);
|
|
19226
|
+
async function overridePolicy(policySchema) {
|
|
19227
|
+
return await overridePolicyInternal(policySchema);
|
|
19224
19228
|
}
|
|
19225
19229
|
|
|
19226
19230
|
const METHOD_NAME$11 = "function.test.overrideState";
|
|
19227
19231
|
/**
|
|
19228
19232
|
* Function implementation
|
|
19229
19233
|
*/
|
|
19230
|
-
const overrideStateInternal = beginContext((publicStateSchema) => {
|
|
19234
|
+
const overrideStateInternal = beginContext(async (publicStateSchema) => {
|
|
19231
19235
|
GLOBAL_CONFIG.CC_LOGGER_ENABLE_LOG &&
|
|
19232
19236
|
swarm$1.loggerService.log(METHOD_NAME$11, {
|
|
19233
19237
|
stateSchema: publicStateSchema,
|
|
19234
19238
|
});
|
|
19239
|
+
await swarm$1.agentValidationService.validate(publicStateSchema.stateName, METHOD_NAME$11);
|
|
19235
19240
|
const stateSchema = removeUndefined(publicStateSchema);
|
|
19236
19241
|
return swarm$1.stateSchemaService.override(stateSchema.stateName, stateSchema);
|
|
19237
19242
|
});
|
|
@@ -19255,19 +19260,20 @@ const overrideStateInternal = beginContext((publicStateSchema) => {
|
|
|
19255
19260
|
* });
|
|
19256
19261
|
* // Logs the operation (if enabled) and updates the state schema in the swarm.
|
|
19257
19262
|
*/
|
|
19258
|
-
function overrideState(stateSchema) {
|
|
19259
|
-
return overrideStateInternal(stateSchema);
|
|
19263
|
+
async function overrideState(stateSchema) {
|
|
19264
|
+
return await overrideStateInternal(stateSchema);
|
|
19260
19265
|
}
|
|
19261
19266
|
|
|
19262
19267
|
const METHOD_NAME$10 = "function.test.overrideStorage";
|
|
19263
19268
|
/**
|
|
19264
19269
|
* Function implementation
|
|
19265
19270
|
*/
|
|
19266
|
-
const overrideStorageInternal = beginContext((publicStorageSchema) => {
|
|
19271
|
+
const overrideStorageInternal = beginContext(async (publicStorageSchema) => {
|
|
19267
19272
|
GLOBAL_CONFIG.CC_LOGGER_ENABLE_LOG &&
|
|
19268
19273
|
swarm$1.loggerService.log(METHOD_NAME$10, {
|
|
19269
19274
|
storageSchema: publicStorageSchema,
|
|
19270
19275
|
});
|
|
19276
|
+
await swarm$1.agentValidationService.validate(publicStorageSchema.storageName, METHOD_NAME$10);
|
|
19271
19277
|
const storageSchema = removeUndefined(publicStorageSchema);
|
|
19272
19278
|
return swarm$1.storageSchemaService.override(storageSchema.storageName, storageSchema);
|
|
19273
19279
|
});
|
|
@@ -19292,19 +19298,20 @@ const overrideStorageInternal = beginContext((publicStorageSchema) => {
|
|
|
19292
19298
|
* });
|
|
19293
19299
|
* // Logs the operation (if enabled) and updates the storage schema in the swarm.
|
|
19294
19300
|
*/
|
|
19295
|
-
function overrideStorage(storageSchema) {
|
|
19296
|
-
return overrideStorageInternal(storageSchema);
|
|
19301
|
+
async function overrideStorage(storageSchema) {
|
|
19302
|
+
return await overrideStorageInternal(storageSchema);
|
|
19297
19303
|
}
|
|
19298
19304
|
|
|
19299
19305
|
const METHOD_NAME$$ = "function.test.overrideSwarm";
|
|
19300
19306
|
/**
|
|
19301
19307
|
* Function implementation
|
|
19302
19308
|
*/
|
|
19303
|
-
const overrideSwarmInternal = beginContext((publicSwarmSchema) => {
|
|
19309
|
+
const overrideSwarmInternal = beginContext(async (publicSwarmSchema) => {
|
|
19304
19310
|
GLOBAL_CONFIG.CC_LOGGER_ENABLE_LOG &&
|
|
19305
19311
|
swarm$1.loggerService.log(METHOD_NAME$$, {
|
|
19306
19312
|
swarmSchema: publicSwarmSchema,
|
|
19307
19313
|
});
|
|
19314
|
+
await swarm$1.agentValidationService.validate(publicSwarmSchema.swarmName, METHOD_NAME$$);
|
|
19308
19315
|
const swarmSchema = removeUndefined(publicSwarmSchema);
|
|
19309
19316
|
return swarm$1.swarmSchemaService.override(swarmSchema.swarmName, swarmSchema);
|
|
19310
19317
|
});
|
|
@@ -19327,19 +19334,20 @@ const overrideSwarmInternal = beginContext((publicSwarmSchema) => {
|
|
|
19327
19334
|
* });
|
|
19328
19335
|
* // Logs the operation (if enabled) and updates the swarm schema in the swarm system.
|
|
19329
19336
|
*/
|
|
19330
|
-
function overrideSwarm(swarmSchema) {
|
|
19331
|
-
return overrideSwarmInternal(swarmSchema);
|
|
19337
|
+
async function overrideSwarm(swarmSchema) {
|
|
19338
|
+
return await overrideSwarmInternal(swarmSchema);
|
|
19332
19339
|
}
|
|
19333
19340
|
|
|
19334
19341
|
const METHOD_NAME$_ = "function.test.overrideTool";
|
|
19335
19342
|
/**
|
|
19336
19343
|
* Function implementation
|
|
19337
19344
|
*/
|
|
19338
|
-
const overrideToolInternal = beginContext((publicToolSchema) => {
|
|
19345
|
+
const overrideToolInternal = beginContext(async (publicToolSchema) => {
|
|
19339
19346
|
GLOBAL_CONFIG.CC_LOGGER_ENABLE_LOG &&
|
|
19340
19347
|
swarm$1.loggerService.log(METHOD_NAME$_, {
|
|
19341
19348
|
toolSchema: publicToolSchema,
|
|
19342
19349
|
});
|
|
19350
|
+
await swarm$1.agentValidationService.validate(publicToolSchema.toolName, METHOD_NAME$_);
|
|
19343
19351
|
const toolSchema = removeUndefined(publicToolSchema);
|
|
19344
19352
|
return swarm$1.toolSchemaService.override(toolSchema.toolName, toolSchema);
|
|
19345
19353
|
});
|
|
@@ -19361,19 +19369,20 @@ const overrideToolInternal = beginContext((publicToolSchema) => {
|
|
|
19361
19369
|
* });
|
|
19362
19370
|
* // Logs the operation (if enabled) and updates the tool schema in the swarm.
|
|
19363
19371
|
*/
|
|
19364
|
-
function overrideTool(toolSchema) {
|
|
19365
|
-
return overrideToolInternal(toolSchema);
|
|
19372
|
+
async function overrideTool(toolSchema) {
|
|
19373
|
+
return await overrideToolInternal(toolSchema);
|
|
19366
19374
|
}
|
|
19367
19375
|
|
|
19368
19376
|
const METHOD_NAME$Z = "function.test.overrideMCP";
|
|
19369
19377
|
/**
|
|
19370
19378
|
* Function implementation
|
|
19371
19379
|
*/
|
|
19372
|
-
const overrideMCPInternal = beginContext((publicMcpSchema) => {
|
|
19380
|
+
const overrideMCPInternal = beginContext(async (publicMcpSchema) => {
|
|
19373
19381
|
GLOBAL_CONFIG.CC_LOGGER_ENABLE_LOG &&
|
|
19374
19382
|
swarm$1.loggerService.log(METHOD_NAME$Z, {
|
|
19375
19383
|
mcpSchema: publicMcpSchema,
|
|
19376
19384
|
});
|
|
19385
|
+
await swarm$1.agentValidationService.validate(publicMcpSchema.mcpName, METHOD_NAME$Z);
|
|
19377
19386
|
const mcpSchema = removeUndefined(publicMcpSchema);
|
|
19378
19387
|
return swarm$1.mcpSchemaService.override(mcpSchema.mcpName, mcpSchema);
|
|
19379
19388
|
});
|
|
@@ -19381,19 +19390,20 @@ const overrideMCPInternal = beginContext((publicMcpSchema) => {
|
|
|
19381
19390
|
* Overrides an existing MCP (Model Context Protocol) schema with a new or partial schema.
|
|
19382
19391
|
* @param {TMCPSchema} mcpSchema - The schema definition for mcp.
|
|
19383
19392
|
*/
|
|
19384
|
-
function overrideMCP(mcpSchema) {
|
|
19385
|
-
return overrideMCPInternal(mcpSchema);
|
|
19393
|
+
async function overrideMCP(mcpSchema) {
|
|
19394
|
+
return await overrideMCPInternal(mcpSchema);
|
|
19386
19395
|
}
|
|
19387
19396
|
|
|
19388
19397
|
const METHOD_NAME$Y = "function.test.overrideAdvisor";
|
|
19389
19398
|
/**
|
|
19390
19399
|
* Function implementation
|
|
19391
19400
|
*/
|
|
19392
|
-
const overrideAdvisorInternal = beginContext((publicAdvisorSchema) => {
|
|
19401
|
+
const overrideAdvisorInternal = beginContext(async (publicAdvisorSchema) => {
|
|
19393
19402
|
GLOBAL_CONFIG.CC_LOGGER_ENABLE_LOG &&
|
|
19394
19403
|
swarm$1.loggerService.log(METHOD_NAME$Y, {
|
|
19395
19404
|
advisorSchema: publicAdvisorSchema,
|
|
19396
19405
|
});
|
|
19406
|
+
await swarm$1.agentValidationService.validate(publicAdvisorSchema.advisorName, METHOD_NAME$Y);
|
|
19397
19407
|
const advisorSchema = removeUndefined(publicAdvisorSchema);
|
|
19398
19408
|
return swarm$1.advisorSchemaService.override(advisorSchema.advisorName, advisorSchema);
|
|
19399
19409
|
});
|
|
@@ -19425,8 +19435,8 @@ const overrideAdvisorInternal = beginContext((publicAdvisorSchema) => {
|
|
|
19425
19435
|
* getChat: async (args) => `Query: ${args.message.query}`
|
|
19426
19436
|
* });
|
|
19427
19437
|
*/
|
|
19428
|
-
function overrideAdvisor(advisorSchema) {
|
|
19429
|
-
return overrideAdvisorInternal(advisorSchema);
|
|
19438
|
+
async function overrideAdvisor(advisorSchema) {
|
|
19439
|
+
return (await overrideAdvisorInternal(advisorSchema));
|
|
19430
19440
|
}
|
|
19431
19441
|
|
|
19432
19442
|
/**
|
|
@@ -19442,11 +19452,12 @@ const METHOD_NAME$X = "function.test.overrideCompute";
|
|
|
19442
19452
|
/**
|
|
19443
19453
|
* Function implementation
|
|
19444
19454
|
*/
|
|
19445
|
-
const overrideComputeInternal = beginContext((publicComputeSchema) => {
|
|
19455
|
+
const overrideComputeInternal = beginContext(async (publicComputeSchema) => {
|
|
19446
19456
|
GLOBAL_CONFIG.CC_LOGGER_ENABLE_LOG &&
|
|
19447
19457
|
swarm$1.loggerService.log(METHOD_NAME$X, {
|
|
19448
19458
|
computeSchema: publicComputeSchema,
|
|
19449
19459
|
});
|
|
19460
|
+
await swarm$1.agentValidationService.validate(publicComputeSchema.computeName, METHOD_NAME$X);
|
|
19450
19461
|
const computeSchema = removeUndefined(publicComputeSchema);
|
|
19451
19462
|
return swarm$1.computeSchemaService.override(computeSchema.computeName, computeSchema);
|
|
19452
19463
|
});
|
|
@@ -19455,8 +19466,8 @@ const overrideComputeInternal = beginContext((publicComputeSchema) => {
|
|
|
19455
19466
|
*
|
|
19456
19467
|
* @param computeSchema Partial compute schema with updates to be applied to the existing compute configuration.
|
|
19457
19468
|
*/
|
|
19458
|
-
function overrideCompute(computeSchema) {
|
|
19459
|
-
return overrideComputeInternal(computeSchema);
|
|
19469
|
+
async function overrideCompute(computeSchema) {
|
|
19470
|
+
return await overrideComputeInternal(computeSchema);
|
|
19460
19471
|
}
|
|
19461
19472
|
|
|
19462
19473
|
/**
|
|
@@ -19472,11 +19483,12 @@ const METHOD_NAME$W = "function.test.overridePipeline";
|
|
|
19472
19483
|
/**
|
|
19473
19484
|
* Function implementation
|
|
19474
19485
|
*/
|
|
19475
|
-
const overridePipelineInternal = beginContext((publicPipelineSchema) => {
|
|
19486
|
+
const overridePipelineInternal = beginContext(async (publicPipelineSchema) => {
|
|
19476
19487
|
GLOBAL_CONFIG.CC_LOGGER_ENABLE_LOG &&
|
|
19477
19488
|
swarm$1.loggerService.log(METHOD_NAME$W, {
|
|
19478
19489
|
pipelineSchema: publicPipelineSchema,
|
|
19479
19490
|
});
|
|
19491
|
+
await swarm$1.agentValidationService.validate(publicPipelineSchema.pipelineName, METHOD_NAME$W);
|
|
19480
19492
|
const pipelineSchema = removeUndefined(publicPipelineSchema);
|
|
19481
19493
|
return swarm$1.pipelineSchemaService.override(pipelineSchema.pipelineName, pipelineSchema);
|
|
19482
19494
|
});
|
|
@@ -19486,8 +19498,8 @@ const overridePipelineInternal = beginContext((publicPipelineSchema) => {
|
|
|
19486
19498
|
* @param pipelineSchema Partial pipeline schema with updates to be applied to the existing pipeline configuration.
|
|
19487
19499
|
* @template Payload - Type extending object for the pipeline payload.
|
|
19488
19500
|
*/
|
|
19489
|
-
function overridePipeline(pipelineSchema) {
|
|
19490
|
-
return overridePipelineInternal(pipelineSchema);
|
|
19501
|
+
async function overridePipeline(pipelineSchema) {
|
|
19502
|
+
return await overridePipelineInternal(pipelineSchema);
|
|
19491
19503
|
}
|
|
19492
19504
|
|
|
19493
19505
|
/**
|
|
@@ -19502,11 +19514,12 @@ const METHOD_NAME$V = "function.test.overrideOutline";
|
|
|
19502
19514
|
* Updates the specified outline schema in the swarm's schema service and logs the operation if enabled.
|
|
19503
19515
|
* @private
|
|
19504
19516
|
*/
|
|
19505
|
-
const overrideOutlineInternal = beginContext((publicOutlineSchema) => {
|
|
19517
|
+
const overrideOutlineInternal = beginContext(async (publicOutlineSchema) => {
|
|
19506
19518
|
GLOBAL_CONFIG.CC_LOGGER_ENABLE_LOG &&
|
|
19507
19519
|
swarm$1.loggerService.log(METHOD_NAME$V, {
|
|
19508
19520
|
outlineSchema: publicOutlineSchema,
|
|
19509
19521
|
});
|
|
19522
|
+
await swarm$1.agentValidationService.validate(publicOutlineSchema.outlineName, METHOD_NAME$V);
|
|
19510
19523
|
const outlineSchema = removeUndefined(publicOutlineSchema);
|
|
19511
19524
|
return swarm$1.outlineSchemaService.override(outlineSchema.outlineName, outlineSchema);
|
|
19512
19525
|
});
|
|
@@ -19518,8 +19531,8 @@ const overrideOutlineInternal = beginContext((publicOutlineSchema) => {
|
|
|
19518
19531
|
* @param outlineSchema Partial outline schema with updates to be applied to the existing outline configuration.
|
|
19519
19532
|
* @param Param> The Param> parameter.
|
|
19520
19533
|
*/
|
|
19521
|
-
function overrideOutline(outlineSchema) {
|
|
19522
|
-
return overrideOutlineInternal(outlineSchema);
|
|
19534
|
+
async function overrideOutline(outlineSchema) {
|
|
19535
|
+
return await overrideOutlineInternal(outlineSchema);
|
|
19523
19536
|
}
|
|
19524
19537
|
|
|
19525
19538
|
const METHOD_NAME$U = "function.other.markOnline";
|
package/package.json
CHANGED
package/types.d.ts
CHANGED
|
@@ -10525,7 +10525,7 @@ type TAgentSchema = {
|
|
|
10525
10525
|
* });
|
|
10526
10526
|
* // Logs the operation (if enabled) and updates the agent schema in the swarm.
|
|
10527
10527
|
*/
|
|
10528
|
-
declare function overrideAgent(agentSchema: TAgentSchema): IAgentSchemaInternal
|
|
10528
|
+
declare function overrideAgent(agentSchema: TAgentSchema): Promise<IAgentSchemaInternal>;
|
|
10529
10529
|
|
|
10530
10530
|
/**
|
|
10531
10531
|
* Type representing a partial completion schema with required completionName.
|
|
@@ -10557,7 +10557,7 @@ type TCompletionSchema<Message extends IBaseMessage<string> = IBaseMessage<any>,
|
|
|
10557
10557
|
* });
|
|
10558
10558
|
* // Logs the operation (if enabled) and updates the completion schema in the swarm.
|
|
10559
10559
|
*/
|
|
10560
|
-
declare function overrideCompletion<Message extends IBaseMessage<any> = IBaseMessage<string>, Args extends IBaseCompletionArgs<IBaseMessage<string>> = IBaseCompletionArgs<Message>>(completionSchema: TCompletionSchema<Message, Args>): ICompletionSchema<IBaseMessage<any>, IBaseCompletionArgs<IBaseMessage<any
|
|
10560
|
+
declare function overrideCompletion<Message extends IBaseMessage<any> = IBaseMessage<string>, Args extends IBaseCompletionArgs<IBaseMessage<string>> = IBaseCompletionArgs<Message>>(completionSchema: TCompletionSchema<Message, Args>): Promise<ICompletionSchema<IBaseMessage<any>, IBaseCompletionArgs<IBaseMessage<any>>>>;
|
|
10561
10561
|
|
|
10562
10562
|
/**
|
|
10563
10563
|
* Type representing a partial embedding schema with required embeddingName.
|
|
@@ -10588,7 +10588,7 @@ type TEmbeddingSchema = {
|
|
|
10588
10588
|
* });
|
|
10589
10589
|
* // Logs the operation (if enabled) and updates the embedding schema in the swarm.
|
|
10590
10590
|
*/
|
|
10591
|
-
declare function overrideEmbeding(embeddingSchema: TEmbeddingSchema): IEmbeddingSchema
|
|
10591
|
+
declare function overrideEmbeding(embeddingSchema: TEmbeddingSchema): Promise<IEmbeddingSchema>;
|
|
10592
10592
|
|
|
10593
10593
|
/**
|
|
10594
10594
|
* Type representing a partial policy schema with required policyName.
|
|
@@ -10617,7 +10617,7 @@ type TPolicySchema = {
|
|
|
10617
10617
|
* });
|
|
10618
10618
|
* // Logs the operation (if enabled) and updates the policy schema in the swarm.
|
|
10619
10619
|
*/
|
|
10620
|
-
declare function overridePolicy(policySchema: TPolicySchema): IPolicySchema
|
|
10620
|
+
declare function overridePolicy(policySchema: TPolicySchema): Promise<IPolicySchema>;
|
|
10621
10621
|
|
|
10622
10622
|
/**
|
|
10623
10623
|
* Type representing a partial state schema configuration.
|
|
@@ -10646,7 +10646,7 @@ type TStateSchema<T extends unknown = any> = {
|
|
|
10646
10646
|
* });
|
|
10647
10647
|
* // Logs the operation (if enabled) and updates the state schema in the swarm.
|
|
10648
10648
|
*/
|
|
10649
|
-
declare function overrideState<T extends unknown = any>(stateSchema: TStateSchema<T>): IStateSchema<T
|
|
10649
|
+
declare function overrideState<T extends unknown = any>(stateSchema: TStateSchema<T>): Promise<IStateSchema<T>>;
|
|
10650
10650
|
|
|
10651
10651
|
/**
|
|
10652
10652
|
* Type representing a partial storage schema configuration.
|
|
@@ -10676,7 +10676,7 @@ type TStorageSchema<T extends IStorageData = IStorageData> = {
|
|
|
10676
10676
|
* });
|
|
10677
10677
|
* // Logs the operation (if enabled) and updates the storage schema in the swarm.
|
|
10678
10678
|
*/
|
|
10679
|
-
declare function overrideStorage<T extends IStorageData = IStorageData>(storageSchema: TStorageSchema<T>): IStorageSchema<T
|
|
10679
|
+
declare function overrideStorage<T extends IStorageData = IStorageData>(storageSchema: TStorageSchema<T>): Promise<IStorageSchema<T>>;
|
|
10680
10680
|
|
|
10681
10681
|
/**
|
|
10682
10682
|
* Type representing a partial swarm schema configuration.
|
|
@@ -10704,7 +10704,7 @@ type TSwarmSchema = {
|
|
|
10704
10704
|
* });
|
|
10705
10705
|
* // Logs the operation (if enabled) and updates the swarm schema in the swarm system.
|
|
10706
10706
|
*/
|
|
10707
|
-
declare function overrideSwarm(swarmSchema: TSwarmSchema): ISwarmSchema
|
|
10707
|
+
declare function overrideSwarm(swarmSchema: TSwarmSchema): Promise<ISwarmSchema>;
|
|
10708
10708
|
|
|
10709
10709
|
/**
|
|
10710
10710
|
* Type representing a partial agent tool schema with required toolName.
|
|
@@ -10732,7 +10732,7 @@ type TAgentTool<T extends any = Record<string, ToolValue>> = {
|
|
|
10732
10732
|
* });
|
|
10733
10733
|
* // Logs the operation (if enabled) and updates the tool schema in the swarm.
|
|
10734
10734
|
*/
|
|
10735
|
-
declare function overrideTool<T extends any = Record<string, ToolValue>>(toolSchema: TAgentTool<T>): IAgentTool<Record<string, ToolValue
|
|
10735
|
+
declare function overrideTool<T extends any = Record<string, ToolValue>>(toolSchema: TAgentTool<T>): Promise<IAgentTool<Record<string, ToolValue>>>;
|
|
10736
10736
|
|
|
10737
10737
|
/**
|
|
10738
10738
|
* Type definition for a partial MCP schema, requiring at least an mcpName.
|
|
@@ -10744,7 +10744,7 @@ type TMCPSchema = {
|
|
|
10744
10744
|
* Overrides an existing MCP (Model Context Protocol) schema with a new or partial schema.
|
|
10745
10745
|
* @param {TMCPSchema} mcpSchema - The schema definition for mcp.
|
|
10746
10746
|
*/
|
|
10747
|
-
declare function overrideMCP(mcpSchema: TMCPSchema): IMCPSchema
|
|
10747
|
+
declare function overrideMCP(mcpSchema: TMCPSchema): Promise<IMCPSchema>;
|
|
10748
10748
|
|
|
10749
10749
|
/**
|
|
10750
10750
|
* Type representing a partial advisor schema configuration.
|
|
@@ -10781,7 +10781,7 @@ type TAdvisorSchema<T = string> = {
|
|
|
10781
10781
|
* getChat: async (args) => `Query: ${args.message.query}`
|
|
10782
10782
|
* });
|
|
10783
10783
|
*/
|
|
10784
|
-
declare function overrideAdvisor<T = string>(advisorSchema: TAdvisorSchema<T>): TAdvisorSchema<T
|
|
10784
|
+
declare function overrideAdvisor<T = string>(advisorSchema: TAdvisorSchema<T>): Promise<TAdvisorSchema<T>>;
|
|
10785
10785
|
|
|
10786
10786
|
/**
|
|
10787
10787
|
* @module overrideCompute
|
|
@@ -10800,7 +10800,7 @@ type TComputeSchema<T extends IComputeData = any> = {
|
|
|
10800
10800
|
*
|
|
10801
10801
|
* @param computeSchema Partial compute schema with updates to be applied to the existing compute configuration.
|
|
10802
10802
|
*/
|
|
10803
|
-
declare function overrideCompute<T extends IComputeData = any>(computeSchema: TComputeSchema<T>): IComputeSchema<any
|
|
10803
|
+
declare function overrideCompute<T extends IComputeData = any>(computeSchema: TComputeSchema<T>): Promise<IComputeSchema<any>>;
|
|
10804
10804
|
|
|
10805
10805
|
/**
|
|
10806
10806
|
* @module overridePipeline
|
|
@@ -10813,7 +10813,7 @@ declare function overrideCompute<T extends IComputeData = any>(computeSchema: TC
|
|
|
10813
10813
|
* @param pipelineSchema Partial pipeline schema with updates to be applied to the existing pipeline configuration.
|
|
10814
10814
|
* @template Payload - Type extending object for the pipeline payload.
|
|
10815
10815
|
*/
|
|
10816
|
-
declare function overridePipeline<Payload extends object = any>(pipelineSchema: IPipelineSchema<Payload>): IPipelineSchema<Payload
|
|
10816
|
+
declare function overridePipeline<Payload extends object = any>(pipelineSchema: IPipelineSchema<Payload>): Promise<IPipelineSchema<Payload>>;
|
|
10817
10817
|
|
|
10818
10818
|
/**
|
|
10819
10819
|
* Type definition for a partial outline schema, requiring an outline name and allowing optional properties from `IOutlineSchema`.
|
|
@@ -10832,7 +10832,7 @@ type TOutlineSchema<Data extends IOutlineData = IOutlineData, Param extends IOut
|
|
|
10832
10832
|
* @param outlineSchema Partial outline schema with updates to be applied to the existing outline configuration.
|
|
10833
10833
|
* @param Param> The Param> parameter.
|
|
10834
10834
|
*/
|
|
10835
|
-
declare function overrideOutline<Data extends IOutlineData = IOutlineData, Param extends IOutlineParam = IOutlineParam>(outlineSchema: TOutlineSchema<Data, Param>): IOutlineSchema<any, any
|
|
10835
|
+
declare function overrideOutline<Data extends IOutlineData = IOutlineData, Param extends IOutlineParam = IOutlineParam>(outlineSchema: TOutlineSchema<Data, Param>): Promise<IOutlineSchema<any, any>>;
|
|
10836
10836
|
|
|
10837
10837
|
/**
|
|
10838
10838
|
* Marks a client as online in the specified swarm.
|