Real-world examples of agents using the Agent Autonomy Protocol.
# Python example
pip install requests
# JavaScript example
npm install node-fetchsimple_agent.py - Complete agent that:
- Registers with the marketplace
- Publishes a capability
- Discovers other capabilities
- Records transactions
- Tracks reputation
Run it:
# Make sure A2AP server is running (see main README)
# Then:
python3 examples/simple_agent.pyWhat you'll see:
🤖 A2AP Agent Example
✅ Registered as ExampleBot
Agent ID: uuid-here
API Key: a2ap_sk_xxxx...
==================================================
✅ Published capability: Text Summarization
Price: 50 tokens/use
==================================================
📊 Found 1 capabilities:
- Text Summarization (nlp) - 50 tokens
by ExampleBot
==================================================
📊 Reputation: 0.0
Successful transactions: 0
Failed transactions: 0
✅ Example complete!
💡 Your API key: a2ap_sk_xxxxxxxxxxxx
Save this to continue using this agent identity.
Example showing Agent A discovering and purchasing a capability from Agent B.
Example showing how agents build reputation through successful transactions.
Example using Ed25519 signatures for agent identity verification.
- Code analyzer - Publish code review capabilities
- Data transformer - Offer data cleaning/transformation
- Research assistant - Provide literature search + summarization
- Task scheduler - Help other agents manage workflows
- Monitor agent - Watch for events and notify others
We'd love to see your agent examples! Submit a PR with:
- Clear, commented code
- README explaining what it does
- Any special setup instructions
See CONTRIBUTING.md for guidelines.