How handefidan/team7-distributed-agents works
Distributed Agents is a master/worker task-dispatch service. A caller registers a worker with the master, submits a task for a chosen worker, and receives the worker’s acknowledgement through the master; accepted work runs asynchronously on the worker, with results polled directly from that worker. The graph preserves the separate registration, dispatch, acknowledgement, execution, and result stages, plus worker health and local Ollama execution. State is in memory. Relationships are based on the shown source and README; no persistent store is present.
Main entry points: agent/main.py Worker endpoints · master/main.py Master endpoints · schemas.py Task and dispatch schemas
Components 12
Master API
- Master endpoints
master/main.py - Agent registry
master/main.py - Dispatch records
master/main.py
Worker Agent
- Worker endpoints
agent/main.py - Task queue
agent/main.py - Acknowledgements
agent/main.py - Background execution
agent/main.py - Task results
agent/main.py - Health endpoint
agent/main.py
Shared Contract
- Task and dispatch schemas
shared/schemas.py
Other components
- API caller
- Ollama server
Connections 16
- API caller → Master endpoints: registers or submits
README.md - Master endpoints → Agent registry: reads and writes
master/main.py - Master endpoints → Dispatch records: records dispatch
master/main.py - Master endpoints → Worker endpoints: POSTs task
master/main.py - Worker endpoints → Master endpoints: returns acknowledgement
master/main.py - Master endpoints → Task and dispatch schemas: uses models
master/main.py - Worker endpoints → Task and dispatch schemas: uses models
agent/main.py - Worker endpoints → Acknowledgements: checks and stores
agent/main.py - Worker endpoints → Task queue: queues accepted task
agent/main.py - Worker endpoints → Background execution: schedules task
agent/main.py - Background execution → Ollama server: requests generation
agent/main.py - Background execution → Task results: stores outcome
agent/main.py - Worker endpoints → Task results: serves polled result
agent/main.py - API caller → Worker endpoints: polls result
README.md - Worker endpoints → Task queue: reports queue status
agent/main.py - API caller → Health endpoint: checks health