NEST is an advanced A2A (Agent-to-Agent) clinical orchestrator built for the Prompt Opinion platform (Agents Assemble Hackathon 2026). It solves one of the most dangerous gaps in healthcare: the fragmented postpartum handoff between maternal and infant charts.
Instead of a single LLM trying to guess guidelines, NEST binds the mother-infant dyad and convenes five specialized AI agents in parallel to generate a unified, evidence-backed discharge plan.
- Multi-Agent Council: Runs 5 parallel specialists (Maternal OB, Pediatrics, Lactation, Mental Health, Social Work) using the Google ADK.
- FHIR Dyad Binding: Automatically extracts both maternal and infant clinical data from a single maternal FHIR
patientIdprovided by Prompt Opinion. - Wearables Telemetry Stream: Integrates real-time data from Apple Watch (Maternal BP/HR) and Owlet Dream Sock (Infant SpO2/HR).
- Claude Code TUI Aesthetic: Returns a beautiful, high-signal Terminal UI (TUI) output with ASCII boxes, Kanban task boards, and color-coded alerts.
- Evidence Anchors: Combats hallucination by strictly linking every generated recommendation to curated clinical guidelines (ACOG, AAP, LactMed).
graph TD
User([Clinician]) -->|Prompt Opinion UI| PO[Prompt Opinion Coordinator]
PO -->|A2A Protocol + FHIR Context| NEST[NEST Orchestrator]
NEST -->|Extracts Dyad| FHIR[(FHIR Server)]
NEST -->|Reads Telemetry| Wearables[(Wearables API)]
NEST --> OB[🩺 Maternal OB Agent]
NEST --> Peds[👶 Pediatric Agent]
NEST --> Lact[🤱 Lactation Agent]
NEST --> MH[🧠 Mental Health Agent]
NEST --> SW[🏠 Social Work Agent]
OB --> Synthesize
Peds --> Synthesize
Lact --> Synthesize
MH --> Synthesize
SW --> Synthesize
Synthesize[Unified TUI Report] -->|A2A Response| PO
python3 -m venv .venv
source .venv/bin/activate
pip install -r requirements.txtCreate a .env file in the root directory:
# Your Gemini / LiteLLM API Key
GOOGLE_API_KEY=your_gemini_api_key
# The API Key you will put into Prompt Opinion's Agent Card
API_KEYS=your_secret_a2a_key
# Model Selection
NEST_ORCHESTRATOR_MODEL=gemini/gemini-2.5-flashuvicorn nest_agent.app:a2a_app --host 0.0.0.0 --port 8005ngrok http 8005Take the resulting https://...ngrok-free.dev URL and append /.well-known/agent-card.json to use in Prompt Opinion.
This repository is pre-configured for 1-click deployment on Render.com.
- Connect this GitHub repository to Render as a Web Service.
- Build Command:
pip install -r requirements.txt - Start Command:
uvicorn nest_agent.app:a2a_app --host 0.0.0.0 --port $PORT - Add your
.envvariables in the Render dashboard.
- Go to Prompt Opinion -> External Agents -> Add Connection.
- Paste your Agent Card URL:
https://<your-domain>/.well-known/agent-card.json - Enter your
API_KEYSvalue in the auth header. - Upload the Skill Packages located in
nest_agent/prompt_opinion/po_skill_packages/. - Ask your coordinator: "Is the patient ready for discharge?" or "Check the wearable vitals for the mom and baby."
MIT License. See LICENSE for details.
