java.lang.Object
com.mulesoft.modules.agent.broker.internal.tool.a2a.A2AToolService
All Implemented Interfaces:
org.mule.runtime.api.lifecycle.Initialisable

public class A2AToolService extends Object implements org.mule.runtime.api.lifecycle.Initialisable
Service responsible for managing A2A tools in the Agent Broker. This service discovers agent capabilities and creates tool handlers for A2A tools.
  • Constructor Details

    • A2AToolService

      public A2AToolService()
  • Method Details

    • initialise

      public void initialise() throws org.mule.runtime.api.lifecycle.InitialisationException
      Specified by:
      initialise in interface org.mule.runtime.api.lifecycle.Initialisable
      Throws:
      org.mule.runtime.api.lifecycle.InitialisationException
    • getTools

      public CompletableFuture<Map<String,Tool>> getTools(List<A2AClient> a2aClients, org.mule.runtime.extension.api.client.ExtensionsClient extensionsClient)
      Retrieves A2A servers and creates tools for each A2A server provided.
      Parameters:
      a2aClients - List of A2A client configurations
      extensionsClient - The ExtensionClient to hit the A2A connector
      Returns:
      CompletableFuture containing a map of tool handlers