Skip to content

feat: Agent Mesh module (heartbeat, health, kill switch) - #47

Merged
George-iam merged 1 commit into
mainfrom
feat/mesh-module-20260329
Mar 29, 2026
Merged

feat: Agent Mesh module (heartbeat, health, kill switch)#47
George-iam merged 1 commit into
mainfrom
feat/mesh-module-20260329

Conversation

@George-iam

Copy link
Copy Markdown
Contributor

Summary

  • New axme_sdk/mesh.py with MeshClient class
  • Accessible via client.mesh property (lazy init)
  • Background heartbeat thread (daemon, 30s interval)
  • Metric buffering - flushed with each heartbeat
  • Agent list/detail with health status
  • Kill/resume for instant agent isolation
  • Audit event log

Usage

fromaxmeimportAxmeClient, AxmeClientConfigclient=AxmeClient(AxmeClientConfig(api_key="axme_sa_..."))
client.mesh.start_heartbeat() # background livenessclient.mesh.report_metric(success=True, latency_ms=230, cost_usd=0.02)
agents=client.mesh.list_agents()
client.mesh.kill(address_id)

Test plan

  • 74 unit tests passed
  • Manual test with staging gateway

New axme_sdk/mesh.py with MeshClient class, accessible via client.mesh:
- heartbeat() / start_heartbeat() - agent liveness reporting
- report_metric() - buffer metrics, flushed with heartbeat
- list_agents() / get_agent() - agents with health status
- kill() / resume() - instant agent isolation
- list_events() - audit log
start_heartbeat() runs a daemon thread sending heartbeats every 30s.
stop_heartbeat() called automatically on client.close().
@George-iam
George-iam merged commit 9244040 into mainMar 29, 2026
1 check passed
@George-iam
George-iam deleted the feat/mesh-module-20260329 branch March 29, 2026 18:24
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

@George-iam