You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Cancels the pending output by emitting an empty string, interrupting waitForOutput.
171
188
* Delegates to ClientSwarm.cancelOutput, using context from MethodContextService, logging via LoggerService if GLOBAL_CONFIG.CC_LOGGER_ENABLE_INFO is true.
* Commits a tool request to the agent's history and emits an event via BusService.
@@ -5428,7 +5442,6 @@ declare class ToolSchemaService {
5428
5442
5429
5443
declare const AGENT_NEED_FETCH: unique symbol;
5430
5444
declare const STACK_NEED_FETCH: unique symbol;
5431
-
declare const SET_BUSY_FN: unique symbol;
5432
5445
/**
5433
5446
* Manages a collection of agents within a swarm in the swarm system, implementing the ISwarm interface.
5434
5447
* Handles agent switching, output waiting, and navigation stack management, with queued operations and event-driven updates via BusService.
@@ -5453,7 +5466,7 @@ declare class ClientSwarm implements ISwarm {
5453
5466
* Enables coordinated state management and debugging.
5454
5467
* @param {boolean} isBusy - True to mark the swarm as busy, false to mark it as idle.
5455
5468
*/
5456
-
[SET_BUSY_FN](isBusy: boolean): void;
5469
+
setBusy(isBusy: boolean): void;
5457
5470
/**
5458
5471
* Subject that emits when an agent reference changes, providing the agent name and instance.
5459
5472
* Used by setAgentRef to notify subscribers (e.g., waitForOutput) of updates to agent instances.
@@ -5643,6 +5656,15 @@ declare class SwarmConnectionService implements ISwarm {
5643
5656
* @returns {Promise<boolean>} True if the swarm is busy, false otherwise.
5644
5657
*/
5645
5658
getCheckBusy: () => Promise<boolean>;
5659
+
/**
5660
+
* Sets the busy state of the swarm.
5661
+
* Used to indicate whether the swarm is currently processing an operation, helping manage flow control and debugging.
5662
+
* Delegates to ClientSwarm.setBusy, using context from MethodContextService, logging via LoggerService if GLOBAL_CONFIG.CC_LOGGER_ENABLE_INFO is true.
5663
+
* Mirrors SwarmPublicService’s setBusy, supporting ClientAgent’s busy state management.
5664
+
* @param {boolean} isBusy - True to mark the swarm as busy, false to mark it as idle.
5665
+
* @returns {Promise<void>} A promise resolving when the busy state is set.
5666
+
*/
5667
+
setBusy: (isBusy: boolean) => Promise<void>;
5646
5668
/**
5647
5669
* Cancels the pending output by emitting an empty string, interrupting waitForOutput.
5648
5670
* Delegates to ClientSwarm.cancelOutput, using context from MethodContextService, logging via LoggerService if GLOBAL_CONFIG.CC_LOGGER_ENABLE_INFO is true.
@@ -6777,6 +6799,17 @@ declare class SwarmPublicService implements TSwarmConnectionService {
6777
6799
* @returns {Promise<boolean>} True if the swarm is busy, false otherwise.
0 commit comments