Package com.example.springchat.advanced
Class OrderService
java.lang.Object
com.example.springchat.advanced.OrderService
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetDeliveryEstimate(String orderId) Returns the delivery estimate of the order, or anerrorentry if there is no such order.getOrderStatus(String orderId) Returns the status and item of the order, or anerrorentry if there is no such order.
-
Constructor Details
-
OrderService
public OrderService()
-
-
Method Details
-
getOrderStatus
Returns the status and item of the order, or anerrorentry if there is no such order. -
getDeliveryEstimate
Returns the delivery estimate of the order, or anerrorentry if there is no such order.
-