agent-swarm-kit 1.1.79 → 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/package.json +1 -1
- package/types.d.ts +40 -1
package/package.json
CHANGED
package/types.d.ts
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import * as functools_kit from 'functools-kit';
|
|
2
2
|
import { SortedArray, TSubject, Subject, ToolRegistry } from 'functools-kit';
|
|
3
3
|
import * as di_scoped from 'di-scoped';
|
|
4
|
-
import NavigationSchemaService from 'src/lib/services/schema/NavigationSchemaService';
|
|
5
4
|
|
|
6
5
|
/**
|
|
7
6
|
* Interface representing an incoming message received by the swarm system.
|
|
@@ -10660,6 +10659,46 @@ declare class ExecutionValidationService {
|
|
|
10660
10659
|
dispose: (clientId: string, swarmName: SwarmName) => void;
|
|
10661
10660
|
}
|
|
10662
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
|
+
|
|
10663
10702
|
/**
|
|
10664
10703
|
* Interface defining the structure of the dependency injection container for the swarm system.
|
|
10665
10704
|
* Aggregates all services providing core functionality, context management, connectivity, schema definitions,
|