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.

Function overloads

Parameter Description
request The tool request(s) to be processed.
clientId The unique identifier of the client session.
agentName The name of the agent to use or reference.