commitToolRequest

declare function commitToolRequest(request: IToolRequest[], clientId: string, agentName: string): Promise<string[]>;

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.

Parameter Description
request The tool request(s) to commit.
clientId The client ID associated with the session.
agentName The agent name to commit the request for.