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.
How discovery and execution fit together
Browse capability detailsMap 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.
Install the adapter
Use the Python environment of your existing app.
Shell python -m pip install apcore-a2aStart 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, )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.jsonExample result { "name": "Math Agent", "skills": [{"id": "math.add", "description": "Add two numbers"}] }
Documentation
Browse all docsSkill and card mapping
See how the adapter builds skill IDs, descriptions, and visibility.
Discover and call an agent
Fetch an Agent Card, select a skill, and send a message from an A2A client.
Configure identity
Connect request authentication and the executor’s access policy.
Detailed capabilities and configuration
Agent Discovery
Fetch an Agent Card from a known service address and read its skill list