handleViewCart handles view cart tool calls
(sessionID string, toolCallID string)
| 190 | |
| 191 | // handleViewCart handles view cart tool calls |
| 192 | func (te *ToolExecutor) handleViewCart(sessionID string, toolCallID string) models.ToolCallResult { |
| 193 | cartSummary := te.cartService.GetCartSummary(sessionID) |
| 194 | return models.ToolCallResult{ |
| 195 | CallID: toolCallID, |
| 196 | ToolName: "view_cart", |
| 197 | Success: true, |
| 198 | Result: cartSummary, |
| 199 | Arguments: "{}", |
| 200 | } |
| 201 | } |
| 202 | |
| 203 | // handleCheckout handles checkout tool calls |
| 204 | func (te *ToolExecutor) handleCheckout(sessionID string, toolCallID string) models.ToolCallResult { |
no test coverage detected