Function commitToolRequest

  • 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

    Parameters

    • request: IToolRequest

      The tool request(s) to be processed.

    • clientId: string

      The unique identifier of the client session.

    • agentName: string

      The name of the agent to use or reference.

    Returns 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

    Parameters

    • request: IToolRequest[]

      The tool request(s) to be processed.

    • clientId: string

      The unique identifier of the client session.

    • agentName: string

      The name of the agent to use or reference.

    Returns Promise<string[]>