How vimal-sabari/agentic-ai---based-livestock-farm-management works
This repository implements a dairy-cow monitoring dashboard and a goal-directed multi-agent investigation workflow. Users select a specialist view or submit a cow and time window to the multi-agent system; the lead health agent detects baseline deviations, the orchestration graph dispatches specialist inquiries, and the dashboard presents findings and evidence. The major domain branches cover environment and welfare, feeding and nutrition, and milk production. Relationships for unsampled subsystems are included only where the README or SOURCE INDEX documents them; those excerpts do not establish every internal call.
Main entry points: graph.py LangGraph Workflow · health_behavior.py Health Lead Agent · repository.py Livestock Repository · multi_agent_view.py Multi-Agent View
Components 23
Dashboard
- App Navigation
app.py - Multi-Agent View
src/ui/views/multi_agent_view.py - Specialist Views
src/ui/views - Result Components
src/ui/components.py
Shared Data
- Request Contracts
src/core/models.py - Canonical Schema
src/data/schema.py - Dataset Adapter
src/data/adapter.py - Synthetic Data
src/data/synthetic_generator.py - Livestock Repository
src/data/repository.py
Investigation
- LangGraph Workflow
src/orchestration/graph.py - Investigation State
src/orchestration/state.py
Specialists
- Health Lead Agent
src/agents/health_behavior.py - Environment Adapter
src/agents/environment_welfare.py - Environment Specialist
env_welfare_agent/src/env_agent/agent.py - Feeding Specialist
feeding_agent/src/feeding_agent/agent.py - Production Specialist
production_agent/src/production_agent/agent.py
Domain Analysis
- Anomaly Detection
health_agent/src/health_agent/anomaly.py - Specialist Query Builder
health_agent/src/health_agent/query_builder.py - Evidence Synthesis
health_agent/src/health_agent/synthesis.py - Environment Analysis
env_welfare_agent/src/env_agent - Feeding Analysis
feeding_agent/src/feeding_agent - Production Analysis
production_agent/src/production_agent
Other components
- Dashboard User
Connections 26
- Dashboard User → App Navigation: selects view
app.py - App Navigation → Multi-Agent View: routes to
app.py - App Navigation → Specialist Views: routes to
app.py - Multi-Agent View → LangGraph Workflow: runs inquiry
src/ui/views/multi_agent_view.py - Multi-Agent View → Livestock Repository: loads data
src/ui/views/multi_agent_view.py - Specialist Views → Livestock Repository: loads data
src/ui/views/environment_view.py - Specialist Views → Result Components: renders results
src/ui/views/environment_view.py - Livestock Repository → Synthetic Data: generates missing data
src/data/repository.py - Livestock Repository → Dataset Adapter: adapts raw data
src/data/repository.py - Dataset Adapter → Canonical Schema: maps columns
src/data/adapter.py - LangGraph Workflow → Health Lead Agent: starts investigation
src/orchestration/graph.py - LangGraph Workflow → Environment Adapter: dispatches inquiry
src/orchestration/graph.py - LangGraph Workflow → Feeding Specialist: dispatches inquiry
- LangGraph Workflow → Production Specialist: dispatches inquiry
- LangGraph Workflow → Investigation State: tracks workflow
src/orchestration/graph.py - Health Lead Agent → Anomaly Detection: detects deviations
src/agents/health_behavior.py - Health Lead Agent → Specialist Query Builder: builds inquiries
src/agents/health_behavior.py - Health Lead Agent → Evidence Synthesis: synthesizes evidence
- Health Lead Agent → Livestock Repository: queries timelines
src/agents/health_behavior.py - Environment Adapter → Environment Specialist: delegates queries
src/agents/environment_welfare.py - Environment Specialist → Environment Analysis: analyzes conditions
env_welfare_agent/src/env_agent/agent.py - Feeding Specialist → Feeding Analysis: analyzes feeding
feeding_agent/src/feeding_agent/agent.py - Production Specialist → Production Analysis: analyzes production
production_agent/src/production_agent/agent.py - Health Lead Agent → Request Contracts: uses contracts
src/agents/health_behavior.py - LangGraph Workflow → Request Contracts: exchanges requests
src/orchestration/graph.py - Multi-Agent View → Result Components: renders findings
src/ui/views/multi_agent_view.py