agent-swarm-kit 1.2.5 → 1.3.0
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 +12 -12
- package/build/index.mjs +12 -12
- package/package.json +1 -1
- package/types.d.ts +1 -1
package/build/index.cjs
CHANGED
|
@@ -19163,7 +19163,7 @@ const overrideCompletionInternal = beginContext(async (publicCompletionSchema) =
|
|
|
19163
19163
|
swarm$1.loggerService.log(METHOD_NAME$14, {
|
|
19164
19164
|
completionSchema: publicCompletionSchema,
|
|
19165
19165
|
});
|
|
19166
|
-
await swarm$1.
|
|
19166
|
+
await swarm$1.completionValidationService.validate(publicCompletionSchema.completionName, METHOD_NAME$14);
|
|
19167
19167
|
const completionSchema = mapCompletionSchema(publicCompletionSchema);
|
|
19168
19168
|
return swarm$1.completionSchemaService.override(completionSchema.completionName, completionSchema);
|
|
19169
19169
|
});
|
|
@@ -19200,7 +19200,7 @@ const overrideEmbedingInternal = beginContext(async (publicEmbeddingSchema) => {
|
|
|
19200
19200
|
swarm$1.loggerService.log(METHOD_NAME$13, {
|
|
19201
19201
|
embeddingSchema: publicEmbeddingSchema,
|
|
19202
19202
|
});
|
|
19203
|
-
await swarm$1.
|
|
19203
|
+
await swarm$1.embeddingValidationService.validate(publicEmbeddingSchema.embeddingName, METHOD_NAME$13);
|
|
19204
19204
|
const embeddingSchema = removeUndefined(publicEmbeddingSchema);
|
|
19205
19205
|
return swarm$1.embeddingSchemaService.override(embeddingSchema.embeddingName, embeddingSchema);
|
|
19206
19206
|
});
|
|
@@ -19238,7 +19238,7 @@ const overridePolicyInternal = beginContext(async (publicPolicySchema) => {
|
|
|
19238
19238
|
swarm$1.loggerService.log(METHOD_NAME$12, {
|
|
19239
19239
|
policySchema: publicPolicySchema,
|
|
19240
19240
|
});
|
|
19241
|
-
await swarm$1.
|
|
19241
|
+
await swarm$1.policyValidationService.validate(publicPolicySchema.policyName, METHOD_NAME$12);
|
|
19242
19242
|
const policySchema = removeUndefined(publicPolicySchema);
|
|
19243
19243
|
return swarm$1.policySchemaService.override(policySchema.policyName, policySchema);
|
|
19244
19244
|
});
|
|
@@ -19274,7 +19274,7 @@ const overrideStateInternal = beginContext(async (publicStateSchema) => {
|
|
|
19274
19274
|
swarm$1.loggerService.log(METHOD_NAME$11, {
|
|
19275
19275
|
stateSchema: publicStateSchema,
|
|
19276
19276
|
});
|
|
19277
|
-
await swarm$1.
|
|
19277
|
+
await swarm$1.stateValidationService.validate(publicStateSchema.stateName, METHOD_NAME$11);
|
|
19278
19278
|
const stateSchema = removeUndefined(publicStateSchema);
|
|
19279
19279
|
return swarm$1.stateSchemaService.override(stateSchema.stateName, stateSchema);
|
|
19280
19280
|
});
|
|
@@ -19311,7 +19311,7 @@ const overrideStorageInternal = beginContext(async (publicStorageSchema) => {
|
|
|
19311
19311
|
swarm$1.loggerService.log(METHOD_NAME$10, {
|
|
19312
19312
|
storageSchema: publicStorageSchema,
|
|
19313
19313
|
});
|
|
19314
|
-
await swarm$1.
|
|
19314
|
+
await swarm$1.storageValidationService.validate(publicStorageSchema.storageName, METHOD_NAME$10);
|
|
19315
19315
|
const storageSchema = removeUndefined(publicStorageSchema);
|
|
19316
19316
|
return swarm$1.storageSchemaService.override(storageSchema.storageName, storageSchema);
|
|
19317
19317
|
});
|
|
@@ -19349,7 +19349,7 @@ const overrideSwarmInternal = beginContext(async (publicSwarmSchema) => {
|
|
|
19349
19349
|
swarm$1.loggerService.log(METHOD_NAME$$, {
|
|
19350
19350
|
swarmSchema: publicSwarmSchema,
|
|
19351
19351
|
});
|
|
19352
|
-
await swarm$1.
|
|
19352
|
+
await swarm$1.swarmValidationService.validate(publicSwarmSchema.swarmName, METHOD_NAME$$);
|
|
19353
19353
|
const swarmSchema = removeUndefined(publicSwarmSchema);
|
|
19354
19354
|
return swarm$1.swarmSchemaService.override(swarmSchema.swarmName, swarmSchema);
|
|
19355
19355
|
});
|
|
@@ -19385,7 +19385,7 @@ const overrideToolInternal = beginContext(async (publicToolSchema) => {
|
|
|
19385
19385
|
swarm$1.loggerService.log(METHOD_NAME$_, {
|
|
19386
19386
|
toolSchema: publicToolSchema,
|
|
19387
19387
|
});
|
|
19388
|
-
await swarm$1.
|
|
19388
|
+
await swarm$1.toolValidationService.validate(publicToolSchema.toolName, METHOD_NAME$_);
|
|
19389
19389
|
const toolSchema = removeUndefined(publicToolSchema);
|
|
19390
19390
|
return swarm$1.toolSchemaService.override(toolSchema.toolName, toolSchema);
|
|
19391
19391
|
});
|
|
@@ -19420,7 +19420,7 @@ const overrideMCPInternal = beginContext(async (publicMcpSchema) => {
|
|
|
19420
19420
|
swarm$1.loggerService.log(METHOD_NAME$Z, {
|
|
19421
19421
|
mcpSchema: publicMcpSchema,
|
|
19422
19422
|
});
|
|
19423
|
-
await swarm$1.
|
|
19423
|
+
await swarm$1.mcpValidationService.validate(publicMcpSchema.mcpName, METHOD_NAME$Z);
|
|
19424
19424
|
const mcpSchema = removeUndefined(publicMcpSchema);
|
|
19425
19425
|
return swarm$1.mcpSchemaService.override(mcpSchema.mcpName, mcpSchema);
|
|
19426
19426
|
});
|
|
@@ -19441,7 +19441,7 @@ const overrideAdvisorInternal = beginContext(async (publicAdvisorSchema) => {
|
|
|
19441
19441
|
swarm$1.loggerService.log(METHOD_NAME$Y, {
|
|
19442
19442
|
advisorSchema: publicAdvisorSchema,
|
|
19443
19443
|
});
|
|
19444
|
-
await swarm$1.
|
|
19444
|
+
await swarm$1.advisorValidationService.validate(publicAdvisorSchema.advisorName, METHOD_NAME$Y);
|
|
19445
19445
|
const advisorSchema = removeUndefined(publicAdvisorSchema);
|
|
19446
19446
|
return swarm$1.advisorSchemaService.override(advisorSchema.advisorName, advisorSchema);
|
|
19447
19447
|
});
|
|
@@ -19495,7 +19495,7 @@ const overrideComputeInternal = beginContext(async (publicComputeSchema) => {
|
|
|
19495
19495
|
swarm$1.loggerService.log(METHOD_NAME$X, {
|
|
19496
19496
|
computeSchema: publicComputeSchema,
|
|
19497
19497
|
});
|
|
19498
|
-
await swarm$1.
|
|
19498
|
+
await swarm$1.computeValidationService.validate(publicComputeSchema.computeName, METHOD_NAME$X);
|
|
19499
19499
|
const computeSchema = removeUndefined(publicComputeSchema);
|
|
19500
19500
|
return swarm$1.computeSchemaService.override(computeSchema.computeName, computeSchema);
|
|
19501
19501
|
});
|
|
@@ -19526,7 +19526,7 @@ const overridePipelineInternal = beginContext(async (publicPipelineSchema) => {
|
|
|
19526
19526
|
swarm$1.loggerService.log(METHOD_NAME$W, {
|
|
19527
19527
|
pipelineSchema: publicPipelineSchema,
|
|
19528
19528
|
});
|
|
19529
|
-
await swarm$1.
|
|
19529
|
+
await swarm$1.pipelineValidationService.validate(publicPipelineSchema.pipelineName, METHOD_NAME$W);
|
|
19530
19530
|
const pipelineSchema = removeUndefined(publicPipelineSchema);
|
|
19531
19531
|
return swarm$1.pipelineSchemaService.override(pipelineSchema.pipelineName, pipelineSchema);
|
|
19532
19532
|
});
|
|
@@ -19557,7 +19557,7 @@ const overrideOutlineInternal = beginContext(async (publicOutlineSchema) => {
|
|
|
19557
19557
|
swarm$1.loggerService.log(METHOD_NAME$V, {
|
|
19558
19558
|
outlineSchema: publicOutlineSchema,
|
|
19559
19559
|
});
|
|
19560
|
-
await swarm$1.
|
|
19560
|
+
await swarm$1.outlineValidationService.validate(publicOutlineSchema.outlineName, METHOD_NAME$V);
|
|
19561
19561
|
const outlineSchema = removeUndefined(publicOutlineSchema);
|
|
19562
19562
|
return swarm$1.outlineSchemaService.override(outlineSchema.outlineName, outlineSchema);
|
|
19563
19563
|
});
|
package/build/index.mjs
CHANGED
|
@@ -19143,7 +19143,7 @@ const overrideCompletionInternal = beginContext(async (publicCompletionSchema) =
|
|
|
19143
19143
|
swarm$1.loggerService.log(METHOD_NAME$14, {
|
|
19144
19144
|
completionSchema: publicCompletionSchema,
|
|
19145
19145
|
});
|
|
19146
|
-
await swarm$1.
|
|
19146
|
+
await swarm$1.completionValidationService.validate(publicCompletionSchema.completionName, METHOD_NAME$14);
|
|
19147
19147
|
const completionSchema = mapCompletionSchema(publicCompletionSchema);
|
|
19148
19148
|
return swarm$1.completionSchemaService.override(completionSchema.completionName, completionSchema);
|
|
19149
19149
|
});
|
|
@@ -19180,7 +19180,7 @@ const overrideEmbedingInternal = beginContext(async (publicEmbeddingSchema) => {
|
|
|
19180
19180
|
swarm$1.loggerService.log(METHOD_NAME$13, {
|
|
19181
19181
|
embeddingSchema: publicEmbeddingSchema,
|
|
19182
19182
|
});
|
|
19183
|
-
await swarm$1.
|
|
19183
|
+
await swarm$1.embeddingValidationService.validate(publicEmbeddingSchema.embeddingName, METHOD_NAME$13);
|
|
19184
19184
|
const embeddingSchema = removeUndefined(publicEmbeddingSchema);
|
|
19185
19185
|
return swarm$1.embeddingSchemaService.override(embeddingSchema.embeddingName, embeddingSchema);
|
|
19186
19186
|
});
|
|
@@ -19218,7 +19218,7 @@ const overridePolicyInternal = beginContext(async (publicPolicySchema) => {
|
|
|
19218
19218
|
swarm$1.loggerService.log(METHOD_NAME$12, {
|
|
19219
19219
|
policySchema: publicPolicySchema,
|
|
19220
19220
|
});
|
|
19221
|
-
await swarm$1.
|
|
19221
|
+
await swarm$1.policyValidationService.validate(publicPolicySchema.policyName, METHOD_NAME$12);
|
|
19222
19222
|
const policySchema = removeUndefined(publicPolicySchema);
|
|
19223
19223
|
return swarm$1.policySchemaService.override(policySchema.policyName, policySchema);
|
|
19224
19224
|
});
|
|
@@ -19254,7 +19254,7 @@ const overrideStateInternal = beginContext(async (publicStateSchema) => {
|
|
|
19254
19254
|
swarm$1.loggerService.log(METHOD_NAME$11, {
|
|
19255
19255
|
stateSchema: publicStateSchema,
|
|
19256
19256
|
});
|
|
19257
|
-
await swarm$1.
|
|
19257
|
+
await swarm$1.stateValidationService.validate(publicStateSchema.stateName, METHOD_NAME$11);
|
|
19258
19258
|
const stateSchema = removeUndefined(publicStateSchema);
|
|
19259
19259
|
return swarm$1.stateSchemaService.override(stateSchema.stateName, stateSchema);
|
|
19260
19260
|
});
|
|
@@ -19291,7 +19291,7 @@ const overrideStorageInternal = beginContext(async (publicStorageSchema) => {
|
|
|
19291
19291
|
swarm$1.loggerService.log(METHOD_NAME$10, {
|
|
19292
19292
|
storageSchema: publicStorageSchema,
|
|
19293
19293
|
});
|
|
19294
|
-
await swarm$1.
|
|
19294
|
+
await swarm$1.storageValidationService.validate(publicStorageSchema.storageName, METHOD_NAME$10);
|
|
19295
19295
|
const storageSchema = removeUndefined(publicStorageSchema);
|
|
19296
19296
|
return swarm$1.storageSchemaService.override(storageSchema.storageName, storageSchema);
|
|
19297
19297
|
});
|
|
@@ -19329,7 +19329,7 @@ const overrideSwarmInternal = beginContext(async (publicSwarmSchema) => {
|
|
|
19329
19329
|
swarm$1.loggerService.log(METHOD_NAME$$, {
|
|
19330
19330
|
swarmSchema: publicSwarmSchema,
|
|
19331
19331
|
});
|
|
19332
|
-
await swarm$1.
|
|
19332
|
+
await swarm$1.swarmValidationService.validate(publicSwarmSchema.swarmName, METHOD_NAME$$);
|
|
19333
19333
|
const swarmSchema = removeUndefined(publicSwarmSchema);
|
|
19334
19334
|
return swarm$1.swarmSchemaService.override(swarmSchema.swarmName, swarmSchema);
|
|
19335
19335
|
});
|
|
@@ -19365,7 +19365,7 @@ const overrideToolInternal = beginContext(async (publicToolSchema) => {
|
|
|
19365
19365
|
swarm$1.loggerService.log(METHOD_NAME$_, {
|
|
19366
19366
|
toolSchema: publicToolSchema,
|
|
19367
19367
|
});
|
|
19368
|
-
await swarm$1.
|
|
19368
|
+
await swarm$1.toolValidationService.validate(publicToolSchema.toolName, METHOD_NAME$_);
|
|
19369
19369
|
const toolSchema = removeUndefined(publicToolSchema);
|
|
19370
19370
|
return swarm$1.toolSchemaService.override(toolSchema.toolName, toolSchema);
|
|
19371
19371
|
});
|
|
@@ -19400,7 +19400,7 @@ const overrideMCPInternal = beginContext(async (publicMcpSchema) => {
|
|
|
19400
19400
|
swarm$1.loggerService.log(METHOD_NAME$Z, {
|
|
19401
19401
|
mcpSchema: publicMcpSchema,
|
|
19402
19402
|
});
|
|
19403
|
-
await swarm$1.
|
|
19403
|
+
await swarm$1.mcpValidationService.validate(publicMcpSchema.mcpName, METHOD_NAME$Z);
|
|
19404
19404
|
const mcpSchema = removeUndefined(publicMcpSchema);
|
|
19405
19405
|
return swarm$1.mcpSchemaService.override(mcpSchema.mcpName, mcpSchema);
|
|
19406
19406
|
});
|
|
@@ -19421,7 +19421,7 @@ const overrideAdvisorInternal = beginContext(async (publicAdvisorSchema) => {
|
|
|
19421
19421
|
swarm$1.loggerService.log(METHOD_NAME$Y, {
|
|
19422
19422
|
advisorSchema: publicAdvisorSchema,
|
|
19423
19423
|
});
|
|
19424
|
-
await swarm$1.
|
|
19424
|
+
await swarm$1.advisorValidationService.validate(publicAdvisorSchema.advisorName, METHOD_NAME$Y);
|
|
19425
19425
|
const advisorSchema = removeUndefined(publicAdvisorSchema);
|
|
19426
19426
|
return swarm$1.advisorSchemaService.override(advisorSchema.advisorName, advisorSchema);
|
|
19427
19427
|
});
|
|
@@ -19475,7 +19475,7 @@ const overrideComputeInternal = beginContext(async (publicComputeSchema) => {
|
|
|
19475
19475
|
swarm$1.loggerService.log(METHOD_NAME$X, {
|
|
19476
19476
|
computeSchema: publicComputeSchema,
|
|
19477
19477
|
});
|
|
19478
|
-
await swarm$1.
|
|
19478
|
+
await swarm$1.computeValidationService.validate(publicComputeSchema.computeName, METHOD_NAME$X);
|
|
19479
19479
|
const computeSchema = removeUndefined(publicComputeSchema);
|
|
19480
19480
|
return swarm$1.computeSchemaService.override(computeSchema.computeName, computeSchema);
|
|
19481
19481
|
});
|
|
@@ -19506,7 +19506,7 @@ const overridePipelineInternal = beginContext(async (publicPipelineSchema) => {
|
|
|
19506
19506
|
swarm$1.loggerService.log(METHOD_NAME$W, {
|
|
19507
19507
|
pipelineSchema: publicPipelineSchema,
|
|
19508
19508
|
});
|
|
19509
|
-
await swarm$1.
|
|
19509
|
+
await swarm$1.pipelineValidationService.validate(publicPipelineSchema.pipelineName, METHOD_NAME$W);
|
|
19510
19510
|
const pipelineSchema = removeUndefined(publicPipelineSchema);
|
|
19511
19511
|
return swarm$1.pipelineSchemaService.override(pipelineSchema.pipelineName, pipelineSchema);
|
|
19512
19512
|
});
|
|
@@ -19537,7 +19537,7 @@ const overrideOutlineInternal = beginContext(async (publicOutlineSchema) => {
|
|
|
19537
19537
|
swarm$1.loggerService.log(METHOD_NAME$V, {
|
|
19538
19538
|
outlineSchema: publicOutlineSchema,
|
|
19539
19539
|
});
|
|
19540
|
-
await swarm$1.
|
|
19540
|
+
await swarm$1.outlineValidationService.validate(publicOutlineSchema.outlineName, METHOD_NAME$V);
|
|
19541
19541
|
const outlineSchema = removeUndefined(publicOutlineSchema);
|
|
19542
19542
|
return swarm$1.outlineSchemaService.override(outlineSchema.outlineName, outlineSchema);
|
|
19543
19543
|
});
|
package/package.json
CHANGED
package/types.d.ts
CHANGED
|
@@ -1379,7 +1379,7 @@ interface IBaseMessage<Role extends string = BaseMessageRole> {
|
|
|
1379
1379
|
* Represented as binary data (Blob) or base64 strings.
|
|
1380
1380
|
* Used for messages involving visual content (e.g., user-uploaded images or tool-generated visuals).
|
|
1381
1381
|
*/
|
|
1382
|
-
images?: Blob[] | string[];
|
|
1382
|
+
images?: Blob[] | Uint8Array[] | string[];
|
|
1383
1383
|
/**
|
|
1384
1384
|
* Optional identifier of the tool call this message responds to.
|
|
1385
1385
|
* Links tool outputs to their originating requests.
|