The open protocol for direct orders between a pharmacy and its suppliers, labs, wholesalers and buying platforms, on top of A2A. Version 0.1, published on 12 November 2026. Site: pharma2a.org. Contact: contact@pharma2a.org. Version française. In France, a community pharmacy orders directly from hundreds of suppliers: dermocosmetics, supplements, medical devices. Every order is a form, a mail, a phone call, then a check at delivery. PharmA2A fixes what the pharmacy's buying agent and the supplier's agent say to each other, so that an order is right the first time and the supplier learns, when the pharmacist allows it, what its products do on the shelf. A2A (Agent2Agent, Linux Foundation) says how two agents talk. PharmA2A says what they say: five messages, each a JSON Schema, declared as an A2A profile extension, https://pharma2a.org/ext/v1. To our knowledge, it is the first sector-specific dictionary built on A2A. The five messages The field names are French: PharmA2A starts with French community pharmacy, its CIP 13 codes and its words. The specification and the English guide explain every message in English. Rules that do not bend No economic data of the pharmacy in any message. The supplier's own terms travel as it states them, never recomputed. Nothing invented. A field nobody stated stays null. Only the supplier speaks for the supplier, and a transcribed answer never confirms an order on its own. A message that says nothing is not a confirmation. The pharmacy calls, the supplier answers. No push, no stream. No patient data. An order is transmitted once: the reference is its identity, per customer account. What is in this repository The pharma2a package also carries what every part uses: the dictionary and its validation (pharma2a.dictionnaire). Quick start Python 3.11 or newer. git clone https://github.com/pharma2a/pharma2a && cd pharma2a python3 -m venv .venv && . .venv/bin/activate && pip install -e ".[modele,test]" The sample supplier, in one minute. Start it, then let the demo pharmacy order from it: python examples/sample-supplier/agent.py python -m pharma2a.officine --agent http://127.0.0.1:8766 --attendre 2 # in a second terminal The supplier email bridge. It starts in draft mode: nothing is sent, mails are written to sorties/. PHARMA2A_JETON=a-test-token python -m pharma2a PHARMA2A_JETON=a-test-token python -m pharma2a.officine # in a second terminal Its agent card is at http://127.0.0.1:8765/.well-known/agent-card.json. Every setting is an environment variable, listed in .env.example. python -m pytest runs the tests. Documentation Specification: the normative rules, for anyone who implements PharmA2A. The protocol in detail: the messages, the diagrams, the rules, A2A conformance. Connecting a supplier system: the backend contract, an ERP round trip in 10 minutes, the dictionary mapped to ERP fields. Decision records: why the protocol is the way it is. The guide: the complete guide for a supplier's IT staff, installation and configuration included. Version française. The dictionary itself: schema/, with an example of each message in schema/exemples/. Where it is used The pharmacy buying agent that SyderaAI (Paris) runs for its pharmacies speaks PharmA2A with their suppliers. No supplier runs an agent yet, so that buying agent hosts the supplier email bridge for each supplier: the supplier gets a clear mail with the order in its body, answers as usual, and the bridge transcribes the answer into the dictionary. The day a supplier serves its own agent, the pharmacy changes one URL. Pharmacy buying agents that speak PharmA2A: To add yours, open a pull request that adds one line to this table: the agent's name, its publisher, and a contact. Pour ajouter le vôtre, ouvrez une pull request qui ajoute une ligne à ce tableau. Contributing Issues and pull requests are welcome: see CONTRIBUTING.md, GOVERNANCE.md and CODE_OF_CONDUCT.md. Security reports go through SECURITY.md, never through a public issue. Versions are in CHANGELOG.md. Licences and name The dictionary (schema/) is public domain, CC0 1.0. The agent and its tests are Apache 2.0. PharmA2A is a trademark of SyderaAI, Paris, filed with the French INPI: the content is free, the name is not, see TRADEMARK.md. Anyone may implement, copy, fork and extend the protocol without asking; the name is protected only so that nobody can call "PharmA2A" what does not follow it, which is what keeps the common language common.
AI NEWS JOURNAL
Hacker News Show HNAI NEWS / JOURNAL
Show HN: PharmA2A, an open protocol for pharmacy-to-supplier orders on A2A
I'm a pharmacist in France and a nerd. I built an open source protocol based on A2A, Called PharmA2A. Why, because normally I order directly from more than hundred of suppliers, by phone mails or on the web forms. The idea is to automatise orders of selling and buying between pharmacies and their suppliers. Since 12 November, PharmA2A is live on GH. Is anyone of you is using A2A in real life ? Comments URL: https://news.ycombinator.com/item?id=50478543 Points: 2 # Comments: 0
번역 서비스가 일시 중지되어 원문을 표시합니다.