apcore-a2a

Publish apcore modules
as A2A skills.

Turn registered modules into discoverable skills. Other agents read the generated Agent Card to learn what your service offers, then send requests to the A2A endpoint.

From apcore module to A2A discovery
Existing Registrymath.add · module ID, description, tags, and examples
Agent Card/.well-known/agent-card.json · skills and supported interfaces
Requesting agentRead the card, choose a skill, and send a message

How discovery and execution fit together

Browse capability details
  • Map modules to skills

    The adapter uses the module ID as the skill ID and derives display metadata from the module. Surface-specific metadata can override what agents see.

  • Advertise through the Agent Card

    A2A clients fetch the card from a known service address. It describes the agent, its supported interfaces, and the skills visible to the caller.

  • Reuse the executor

    The adapter routes a message to a registered module and reports the task result. Pass your existing executor to retain its configured policies.

Serve an existing Python app

Use Python 3.11+ and an application that already registers modules with an APCore instance. This example runs on your machine.

Open the quickstart guide
  1. Install the adapter

    Use the Python environment of your existing app.

    Shell
    python -m pip install apcore-a2a
  2. Start the A2A service

    Save this as serve_a2a.py and run python serve_a2a.py. Replace your_app and client with the module and APCore instance from your app.

    serve_a2a.py
    from apcore_a2a import serve
    from your_app import client
    
    serve(
        client.executor,
        name="Math Agent",
        host="127.0.0.1",
        port=8766,
    )
  3. Fetch the Agent Card

    Run this in another terminal. If math.add is visible to the caller, it appears in skills. The JSON excerpt below shows the fields to look for.

    Shell
    curl -fsS http://127.0.0.1:8766/.well-known/agent-card.json
    Example result
    {
      "name": "Math Agent",
      "skills": [{"id": "math.add", "description": "Add two numbers"}]
    }

Documentation

Browse all docs

Detailed capabilities and configuration

Choose a topic

Agent Discovery

Fetch an Agent Card from a known service address and read its skill list