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.

    Parameters

    • request: IToolRequest

      The tool request(s) to commit.

    • clientId: string

      The client ID associated with the session.

    • agentName: string

      The agent name to commit the request for.

    Returns Promise<string[]>

    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.

    Parameters

    • request: IToolRequest[]

      The tool request(s) to commit.

    • clientId: string

      The client ID associated with the session.

    • agentName: string

      The agent name to commit the request for.

    Returns Promise<string[]>

    A promise resolving with an array of result strings, or null if skipped due to agent mismatch.

    Function overloads