How sriharsha8991/multi-agent-system works
This is a question-answering analytics system for a simulated thermal power plant. A user question enters the supervisor, which plans required facts, delegates work to graph, SQL, and Python specialists, and returns a checked answer with evidence and gaps. Its domain spans a catalog-backed asset ontology, generated telemetry and maintenance history, graph and time-series storage, and analysis artifacts. The graph preserves the documented specialist workflow and major data-generation capabilities; some unsampled implementation links are omitted rather than inferred.
Main entry points: agent.py Supervisor · tools.py Specialist tools · ledger.py Information ledger · build_telemetry.py Telemetry generation
Components 21
Question answering
- Supervisor
src/mas/orchestrator/agent.py - Specialist agents
src/mas/agents/specialists.py - Agent prompts
src/mas/agents/prompts.py - Notebook interface
src/mas/notebook.py
Plant domain
- Asset catalog
src/mas/catalog/systems.py - Concept glossary
src/mas/catalog/glossary.py - Telemetry generation
src/mas/datagen/build_telemetry.py - Events and modes
src/mas/datagen/events.py - Maintenance history
src/mas/datagen/maintenance.py - Asset graph seeding
src/mas/datagen/graph_seed.py
Data and storage
- Telemetry store
src/mas/db/postgres.py - Asset graph store
src/mas/db/neo4j.py
Specialist analysis
- Specialist tools
src/mas/agents/tools.py - Query and code execution
src/mas/execution/py_sandbox.py - Analysis artifacts
src/mas/memory/artifacts.py
Planning and evidence
- Information ledger
src/mas/orchestrator/ledger.py - Delegation briefs
src/mas/orchestrator/briefs.py - Answer checks
src/mas/orchestrator/guard.py - Typed contracts
src/mas/llm/schemas.py
Other components
- Engineer
- Gemini model
Connections 26
- Engineer → Supervisor: asks
- Supervisor → Information ledger: plans facts
src/mas/orchestrator/agent.py - Supervisor → Delegation briefs: resolves briefs
src/mas/orchestrator/agent.py - Supervisor → Specialist agents: delegates
src/mas/orchestrator/agent.py - Specialist agents → Specialist tools: calls tools
src/mas/agents/specialists.py - Specialist agents → Agent prompts: uses prompts
src/mas/agents/specialists.py - Supervisor → Answer checks: checks answer
src/mas/orchestrator/agent.py - Supervisor → Gemini model: requests reasoning
- Information ledger → Typed contracts: validates plan
src/mas/orchestrator/ledger.py - Information ledger → Concept glossary: resolves concepts
src/mas/orchestrator/ledger.py - Information ledger → Asset catalog: checks systems
src/mas/orchestrator/ledger.py - Answer checks → Information ledger: checks facts
src/mas/orchestrator/guard.py - Specialist tools → Concept glossary: maps concepts
src/mas/agents/tools.py - Specialist tools → Query and code execution: runs queries
src/mas/agents/tools.py - Specialist tools → Telemetry store: reads telemetry
- Specialist tools → Asset graph store: queries assets
- Specialist tools → Analysis artifacts: stores results
src/mas/agents/tools.py - Telemetry generation → Events and modes: uses modes
src/mas/datagen/events.py - Telemetry generation → Asset catalog: generates tag data
src/mas/datagen/build_telemetry.py - Telemetry generation → Telemetry store: loads telemetry
src/mas/datagen/build_telemetry.py - Maintenance history → Events and modes: uses event history
src/mas/datagen/maintenance.py - Asset graph seeding → Asset graph store: seeds ontology
- Asset catalog → Concept glossary: grounds concepts
src/mas/catalog/glossary.py - Engineer → Notebook interface: uses notebook
- Notebook interface → Supervisor: runs question
src/mas/notebook.py - Notebook interface → Analysis artifacts: shows results
src/mas/notebook.py