import requests
ATSMATRIX_ENDPOINT = "https://anyel1to.github.io/atsmatrix-agent-visualizeR--ANYEL1TO/api/event"
def emit_step(agent_id, action, message, cluster="VERIFY"):
requests.post(ATSMATRIX_ENDPOINT, json={
"agent_id": agent_id,
"action": action, # "LINK", "VERIFY", "MATCH", "FLAG", "SYNC", "FOUND"
"cluster": cluster, # "COLLECT", "MATCH", "CROSS-LINK", "VERIFY", "SYNTH"
"message": message
})
# In your agent loop:
emit_step("agent_501", "VERIFY", "Cross-verified citation tree with cluster #2")
emit_step("agent_501", "LINK", "Supplier dependency bridge created")
curl -X POST https://anyel1to.github.io/atsmatrix-agent-visualizeR--ANYEL1TO/api/event \
-H "Content-Type: application/json" \
-d '{"agent_id":"bot_01","cluster":"VERIFY","action":"FLAG","message":"revenue anomaly found"}'
await fetch('https://anyel1to.github.io/atsmatrix-agent-visualizeR--ANYEL1TO/api/event', {
method: 'POST',
headers: { 'Content-Type': 'application/json' },
body: JSON.stringify({ agent_id: 'agent_300', action: 'MATCH', message: 'citation lineage confirmed' })
});