Skip to main content

Module tools

Module tools 

Source
Expand description

The cart tool surface.

Structsยง

AddArg
AuthArg
store_id is optional here, unlike everywhere else: any store reports the same userInfo, and the caller most likely to reach for this tool is someone whose setup is not working, who may not have a store id to hand.
AuthStatus
CartServer
DefaultStoreStatus
RemoveArg
SearchProductsArg
SearchStoresArg
SetDefaultStoreArg
Used by set_default_store, where the store id is always required.
StartLoginArg
StoreArg
Used by tools whose only argument is a store id that may fall back to the default (get_cart, clear_cart).
ToolFailure
A tool failure the model is meant to read and act on.
UpdateArg