AI_Agro_Support/tests
Arsham Mirehvandi d1569a301f Refactor treatment history handling and enhance product filtering logic
- Updated README.md to clarify the conditions for `last_applied_treatment` and its integration into the advice JSON structure.
- Refactored job.py to utilize a new `TreatmentHistory` class for managing treatment data, improving clarity and efficiency in treatment retrieval.
- Enhanced advice_context.py to conditionally include `last_applied_treatment` based on the treatment history, ensuring no redundant queries are made.
- Modified products.py to implement logic for excluding active ingredients based on the latest treatment's interval, refining the product prefiltering process.
- Updated vector.py to ensure the SQL allowlist is applied correctly, improving the efficiency of product searches.
- Added unit tests to validate the new treatment history functionality and product filtering logic.
2026-09-20 23:38:25 +02:00
..
test_advice_context.py Refactor treatment history handling and enhance product filtering logic 2026-09-20 23:38:25 +02:00
test_advice_summary.py Enhance advice generation and context handling 2026-09-08 09:40:34 +02:00
test_assemble.py Update weather metrics handling and LLM configuration 2026-09-17 14:05:50 +02:00
test_disease.py Refactor assemble.py and disease.py for clarity and functionality 2026-09-16 22:40:14 +02:00
test_products.py Refactor treatment history handling and enhance product filtering logic 2026-09-20 23:38:25 +02:00
test_treatments.py Refactor treatment history handling and enhance product filtering logic 2026-09-20 23:38:25 +02:00
test_vector.py Refactor treatment history handling and enhance product filtering logic 2026-09-20 23:38:25 +02:00