The tool request(s) to commit.
The client ID associated with the session.
The agent name to commit the request for.
A promise resolving with an array of result strings, or null if skipped due to agent mismatch.
Function overloads
Commits a tool request to the active agent in the swarm system. Validates the agent, session, and swarm, ensuring the current agent matches the provided agent before committing the request. Runs within a beginContext wrapper for execution context management, logging operations via LoggerService.
The tool request(s) to commit.
The client ID associated with the session.
The agent name to commit the request for.
A promise resolving with an array of result strings, or null if skipped due to agent mismatch.
Function overloads
Commits a tool request to the active agent in the swarm system. Validates the agent, session, and swarm, ensuring the current agent matches the provided agent before committing the request. Runs within a beginContext wrapper for execution context management, logging operations via LoggerService.