Spaces:
Sleeping
Sleeping
|
Download AGENTS.md from shield137/shockmap-api: direct link, hf CLI and curl.
- Browser
- Download file 1.02 kB
-
https://huggingface.co/spaces/shield137/shockmap-api/resolve/main/AGENTS.md
- Command line
-
hf download hf://spaces/shield137/shockmap-api/AGENTS.md
-
curl -L -o AGENTS.md https://huggingface.co/spaces/shield137/shockmap-api/resolve/main/AGENTS.md
1.02 kB
PharmaShield MVP Architecture Contract
This file defines the minimum agent-facing architecture expected for MVP completion.
Required Modules
ingestion/shock_detector.py- Polls GDELT every 15 minutes.
- Filters disruption events for:
factory shutdownexport banport closurecontamination
- Persists structured events to
data/shocks.json.
graph/builder.py- Builds a NetworkX graph with:
- 20 pharma API nodes
- 8 rare earth mineral nodes
- Adds import edges weighted by India import volume.
- Builds a NetworkX graph with:
backend/app/api/sectors.py- Reads live shocks from
data/shocks.json(legacy fallback allowed). - Serves
/api/v1/shocksand/api/v1/shocks/{id}.
- Reads live shocks from
backend/app/services/shock_propagation.py- Supports PageRank fallback when GNN weights are missing.
Data Contract
data/seed/apis.json: pharma API seed records.data/seed/rare_earths.json: rare earth seed records.data/shocks.json: live structured shock feed.