Exposing an AI agent using the A2A protocol > Overview > Step 5. Test A2A compliance
  

Step 5. Test A2A compliance

After you register your agents, verify that they’re A2A compliant using the GitHub A2A Inspector.
The A2A Inspector is a visual, browser-based tool that validates A2A protocol compliance.
    1Install the GitHub A2A Inspector.
    For installation instructions, see the A2A Inspector README:
    https://github.com/a2aproject/a2a-inspector/blob/main/README.md
    2Run the inspector locally by performing the following steps:
    1. aRun the following command to make the script executable:
    2. chmod +x scripts/run.sh
    3. bRun the following command to start the frontend build process and backend server:
    4. bash scripts/run.sh
      The services start, and their outputs are displayed using colored prefixes. If you need to stop the services, press Ctrl+C.
    3Access the inspector by opening the following URL in your browser:
    http://127.0.0.1:5001
    4Validate that each AI agent is A2A compliant by performing the following steps:
    1. aEnter the agent card URL in the inspector:
    2. http://localhost:5000/<agent name>/.well-known/agent-card.json
    3. bClick Connect to load the agent card, and verify that the schema validation passes.
    4. The following image shows an example of a valid agent card for an AI agent named "supply-chain-agent":
      The image shows the GitHub A2A Inspector. The agent card URL appears at the top of the screen below the heading "A2A Inspector." The Agent Card section is expanded to show the agent card. At the top of the Agent Card section, the message "Agent card is valid" is displayed.
    5. cSend a test message and verify that the response is valid.
    6. The following image shows an example of a valid response:
      The image shows the GitHub A2A Inspector. The Chat section is expanded to show the message returned from the AI agent.