An Intelligent Delivery Optimization System - "Smart routes for seamless deliveries"
The system manages and optimizes delivery routes for a fleet of vehicles. Each vehicle is modeled as an autonomous agent that makes decisions based on:
- Real-time traffic conditions.
- Assigned delivery orders.
- Weather conditions.
- Interaction with other vehicles (to avoid route conflicts).
Demonstrate how a backend system can handle the complexity of a MAS using Spring AI to enable cognitive capabilities in agents and Kotlin for business logic development.
-
Key Components:
- Agents (Vehicles): • Each vehicle is an autonomous agent. • Decides its routes using AI models integrated into the backend.
- Central Controller (Optional): • Coordinates communication among agents and supervises global rules.
- Backend (Spring AI + Kotlin): • Implements MAS logic and connects to AI models. • Exposes REST APIs for traffic data, order assignments, and delivery monitoring.
- External Data Sources: • Traffic APIs (Google Maps, OpenStreetMap). • Weather APIs.
-
Backend Flow Diagram: Orders -> Backend (Spring AI) -> Agents -> Decisions (Routes/Actions) -> Execution (Deliveries)
Spring AI: A Spring Boot application that integrates AI models for decision-making in agents.
Kotlin: A modern programming language for backend development.
OLlama: A MAS library for Kotlin.
PostgreSQL: A relational database for storing orders and traffic data.
Docker: Containerization for easy deployment.
TODO: Add InfluxDB: A time-series database for storing real-time traffic data.