agent-swarm-kit 1.1.78 → 1.1.80
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 +239 -179
- package/build/index.mjs +239 -179
- package/package.json +1 -1
- package/types.d.ts +45 -4
package/package.json
CHANGED
package/types.d.ts
CHANGED
|
@@ -10659,6 +10659,46 @@ declare class ExecutionValidationService {
|
|
|
10659
10659
|
dispose: (clientId: string, swarmName: SwarmName) => void;
|
|
10660
10660
|
}
|
|
10661
10661
|
|
|
10662
|
+
/**
|
|
10663
|
+
* @class NavigationSchemaService
|
|
10664
|
+
* Manages a collection of navigation tool names using a Set for efficient registration and lookup.
|
|
10665
|
+
* Injects LoggerService via dependency injection for logging operations.
|
|
10666
|
+
* Supports agent navigation functionality within the swarm system by tracking available navigation tools.
|
|
10667
|
+
*/
|
|
10668
|
+
declare class NavigationSchemaService {
|
|
10669
|
+
/**
|
|
10670
|
+
* @private
|
|
10671
|
+
* @readonly
|
|
10672
|
+
* @type {LoggerService}
|
|
10673
|
+
* Logger service instance, injected via dependency injection, for logging navigation schema operations.
|
|
10674
|
+
* Used in register and hasTool methods when GLOBAL_CONFIG.CC_LOGGER_ENABLE_INFO is true.
|
|
10675
|
+
*/
|
|
10676
|
+
private readonly loggerService;
|
|
10677
|
+
/**
|
|
10678
|
+
* @private
|
|
10679
|
+
* @type {Set<ToolName>}
|
|
10680
|
+
* Set for storing navigation tool names, ensuring uniqueness and efficient lookup.
|
|
10681
|
+
* Updated via the register method and queried via the hasTool method.
|
|
10682
|
+
*/
|
|
10683
|
+
private _navigationToolNameSet;
|
|
10684
|
+
/**
|
|
10685
|
+
* Registers a navigation tool name in the internal Set.
|
|
10686
|
+
* Logs the registration operation via LoggerService if GLOBAL_CONFIG.CC_LOGGER_ENABLE_INFO is true.
|
|
10687
|
+
* @param {ToolName} toolName - The name of the navigation tool to register, sourced from Agent.interface.
|
|
10688
|
+
* @returns {Promise<void>} A promise that resolves when the tool name is registered.
|
|
10689
|
+
* @async
|
|
10690
|
+
*/
|
|
10691
|
+
register: (toolName: ToolName) => void;
|
|
10692
|
+
/**
|
|
10693
|
+
* Checks if a navigation tool name exists in the internal Set.
|
|
10694
|
+
* Logs the lookup operation via LoggerService if GLOBAL_CONFIG.CC_LOGGER_ENABLE_INFO is true.
|
|
10695
|
+
* @param {ToolName} toolName - The name of the navigation tool to check, sourced from Agent.interface.
|
|
10696
|
+
* @returns {Promise<boolean>} A promise that resolves to true if the tool name exists, false otherwise.
|
|
10697
|
+
* @async
|
|
10698
|
+
*/
|
|
10699
|
+
hasTool: (toolName: ToolName) => boolean;
|
|
10700
|
+
}
|
|
10701
|
+
|
|
10662
10702
|
/**
|
|
10663
10703
|
* Interface defining the structure of the dependency injection container for the swarm system.
|
|
10664
10704
|
* Aggregates all services providing core functionality, context management, connectivity, schema definitions,
|
|
@@ -10835,6 +10875,11 @@ interface ISwarmDI {
|
|
|
10835
10875
|
* Implements `IPipelineSchema` for rule enforcement via `PipelineSchemaService`.
|
|
10836
10876
|
*/
|
|
10837
10877
|
pipelineSchemaService: PipelineSchemaService;
|
|
10878
|
+
/**
|
|
10879
|
+
* Service for defining and managing navigation tools.
|
|
10880
|
+
* When the navigation tool called other one being ignored
|
|
10881
|
+
*/
|
|
10882
|
+
navigationSchemaService: NavigationSchemaService;
|
|
10838
10883
|
/**
|
|
10839
10884
|
* Service exposing public APIs for agent operations.
|
|
10840
10885
|
* Provides methods like `execute` and `runStateless` via `AgentPublicService`.
|
|
@@ -11202,8 +11247,6 @@ interface IAgentNavigationParams extends INavigateToAgentParams {
|
|
|
11202
11247
|
navigateTo: AgentName;
|
|
11203
11248
|
/** Optional documentation note for the tool. */
|
|
11204
11249
|
docNote?: string;
|
|
11205
|
-
/** Optional skip output value when got several navigations. */
|
|
11206
|
-
skipPlaceholder?: string;
|
|
11207
11250
|
}
|
|
11208
11251
|
/**
|
|
11209
11252
|
* Creates and registers a navigation tool for an agent to navigate to another specified agent.
|
|
@@ -11235,8 +11278,6 @@ interface ITriageNavigationParams extends INavigateToTriageParams {
|
|
|
11235
11278
|
description: string;
|
|
11236
11279
|
/** Optional documentation note for the tool. */
|
|
11237
11280
|
docNote?: string;
|
|
11238
|
-
/** Optional skip output value when got several navigations. */
|
|
11239
|
-
skipPlaceholder?: string;
|
|
11240
11281
|
}
|
|
11241
11282
|
/**
|
|
11242
11283
|
* Creates and registers a triage navigation tool for an agent to navigate to a triage agent.
|