Function commitToolRequestForce

  • Forcefully commits a tool request to the active agent in the swarm system. Validates the session and swarm, bypassing agent validation to directly commit the request. Runs within a beginContext wrapper for execution context management, logging operations via LoggerService.

    Parameters

    • request: IToolRequest

      The tool request(s) to commit.

    • clientId: string

      The ID of the client associated with the session.

    Returns Promise<string[]>

    A promise that resolves with an array of results if the request is committed.

    If session or swarm validation fails.

    Function overloads

  • Forcefully commits a tool request to the active agent in the swarm system. Validates the session and swarm, bypassing agent validation to directly commit the request. Runs within a beginContext wrapper for execution context management, logging operations via LoggerService.

    Parameters

    • request: IToolRequest[]

      The tool request(s) to commit.

    • clientId: string

      The ID of the client associated with the session.

    Returns Promise<string[]>

    A promise that resolves with an array of results if the request is committed.

    If session or swarm validation fails.

    Function overloads