Class OrderService

java.lang.Object
com.example.springchat.advanced.OrderService

@Service public class OrderService extends Object
A Spring service whose methods AgentConfig exposes to the agent as tools. A real app would back it with a database or another service.
  • Constructor Details

    • OrderService

      public OrderService()
  • Method Details

    • getOrderStatus

      public Map<String,Object> getOrderStatus(String orderId)
      Returns the status and item of the order, or an error entry if there is no such order.
    • getDeliveryEstimate

      public Map<String,Object> getDeliveryEstimate(String orderId)
      Returns the delivery estimate of the order, or an error entry if there is no such order.