How soumen2581/capstone-project works
AgentMesh is a web-based multi-agent orchestration platform: an operator submits a request, backend planning selects capable agents and forms a conditional workflow, agents execute through routed model providers, and validated outputs are synthesized and persisted for the office UI. The graph emphasizes that runtime path, while retaining the documented collaboration, memory/artifact, identity, and observability capabilities. Some subsystem links rely on README claims because their implementation files were not sampled; uncertain links are omitted.
Main entry points: orchestration_service.py Orchestration service · engine.py Workflow engine · workflow_repository.py Workflow persistence · tasks.py Task routes
Components 27
Office interface
- Office workspace
frontend/app/office/page.tsx - Task composer
frontend/components/TaskComposer.tsx - Workflow progress
frontend/components/WorkflowProgress.tsx - Frontend API client
frontend/lib/api.ts
API and identity
- Task routes
backend/app/api/routes/tasks.py - Operator identity
backend/app/api/dependencies.py - Authentication routes
backend/app/api/routes/auth.py - Google verification
backend/app/core/google_auth.py
Agent planning
- Orchestration service
backend/app/services/orchestration_service.py - Capability analysis
backend/app/orchestration/capability_analysis.py - Agent selection
backend/app/orchestration/selection.py - Workflow planning
backend/app/orchestration/planner.py - Agent registry
backend/app/agents/registry.py - Agent enrollment
backend/app/agents/enrollment.py
Workflow execution
- Workflow engine
backend/app/workflows/engine.py - Agent executor
backend/app/services/agent_executor.py - Output validation
backend/app/services/output_validation.py - Result synthesis
backend/app/workflows/synthesis.py - Provider routing
backend/app/providers/registry.py
State and operations
- Workflow persistence
backend/app/services/workflow_repository.py - Agent collaboration
backend/app/services/collaboration.py - Messages and memory
backend/app/messaging/store.py - Metrics
backend/app/core/metrics.py
Other components
- Operator
- Model providers
- PostgreSQL
- Redis work state
Connections 28
- Operator → Office workspace: uses
- Office workspace → Task composer: renders
- Task composer → Frontend API client: submits task
- Frontend API client → Task routes: calls API
- Task routes → Operator identity: resolves operator
backend/app/api/routes/tasks.py - Task routes → Orchestration service: submits request
backend/app/api/routes/tasks.py - Orchestration service → Capability analysis: analyzes request
backend/app/services/orchestration_service.py - Orchestration service → Agent selection: selects agents
backend/app/services/orchestration_service.py - Orchestration service → Workflow planning: plans graph
backend/app/services/orchestration_service.py - Agent selection → Agent registry: selects definitions
- Agent enrollment → Agent registry: enrolls agents
backend/app/agents/enrollment.py - Orchestration service → Workflow persistence: persists plan
backend/app/services/orchestration_service.py - Orchestration service → Workflow engine: executes plan
backend/app/services/orchestration_service.py - Workflow engine → Agent executor: runs agents
backend/app/workflows/engine.py - Workflow engine → Workflow persistence: records transitions
backend/app/workflows/engine.py - Agent executor → Provider routing: routes model call
backend/app/services/agent_executor.py - Agent executor → Output validation: validates output
backend/app/services/agent_executor.py - Provider routing → Model providers: invokes provider
- Workflow engine → Result synthesis: synthesizes results
backend/app/workflows/engine.py - Workflow engine → Agent collaboration: dispatches node events
backend/app/workflows/engine.py - Agent collaboration → Messages and memory: uses durable messaging
- Workflow persistence → PostgreSQL: stores durable state
- Workflow persistence → Metrics: records execution metrics
backend/app/services/workflow_repository.py - Workflow engine → Redis work state: uses transient work state
- Workflow persistence → Workflow progress: serves workflow state
- Workflow progress → Frontend API client: refreshes status
- Operator → Authentication routes: signs in
- Authentication routes → Google verification: verifies token