MCPcopy Create free account
hub / github.com/AgriQuantAI/AgriQuant-AI / demo_complete_workflow

Function demo_complete_workflow

demo.py:251–298  ·  view source on GitHub ↗

Run complete demo workflow

()

Source from the content-addressed store, hash-verified

249
250
251def demo_complete_workflow():
252 """Run complete demo workflow"""
253
254 print("\n" + "="*80)
255 print("AgriQuant AI - COMPLETE SYSTEM DEMONSTRATION")
256 print("="*80)
257 print("\nThis demo shows the complete workflow:")
258 print(" 1. Weather data collection from NOAA")
259 print(" 2. AI analysis with Claude Sonnet 4")
260 print(" 3. Database storage")
261 print(" 4. Performance tracking")
262 print("\nNote: Requires ANTHROPIC_API_KEY in environment")
263
264 # Step 1: Weather collection
265 forecast = demo_weather_collection()
266
267 # Step 2: AI analysis
268 prediction = demo_ai_analysis(forecast)
269
270 # Step 3: Database
271 if forecast and prediction:
272 demo_database_storage(forecast, prediction)
273
274 # Step 4: Performance
275 demo_performance_tracking()
276
277 # Summary
278 print("\n" + "="*80)
279 print("DEMO COMPLETE")
280 print("="*80)
281
282 print("\nNext Steps:")
283 print(" 1. Set up environment variables (ANTHROPIC_API_KEY, DATABASE_URL)")
284 print(" 2. Install PostgreSQL and create database")
285 print(" 3. Run full system: python main.py once")
286 print(" 4. Start continuous monitoring: python main.py continuous")
287 print(" 5. Run backtest: python backtest.py --start 2023-01-01 --end 2025-12-31")
288
289 print("\nDocumentation:")
290 print(" • README.md - Complete setup and usage guide")
291 print(" • config.py - All system parameters and thresholds")
292 print(" • Individual module files have detailed docstrings")
293
294 print("\nSupport:")
295 print(" • Email: research@agriquant.ai")
296 print(" • GitHub: github.com/agriquant/agriquant-ai")
297
298 print("\n" + "="*80)
299
300
301if __name__ == "__main__":

Callers 1

demo.pyFile · 0.85

Calls 4

demo_weather_collectionFunction · 0.85
demo_ai_analysisFunction · 0.85
demo_database_storageFunction · 0.85

Tested by

no test coverage detected