createSelectPaymentWalletTool
createSelectPaymentWalletTool(
options:CreateSelectPaymentWalletToolOptions):ToolConfig
Defined in: src/tools/walletPayment.ts:79
Create the select_payment_wallet tool, which shows the user’s wallets for a flight offer and returns the one they chose.
Parameters
| Parameter | Type |
|---|---|
|
|
Returns
ToolConfig
Example
import { createSelectPaymentWalletTool } from "@anuma/sdk/tools";
const selectWalletTool = createSelectPaymentWalletTool({
getContext: () => uiInteraction,
getLastMessageId: () => lastMsgId,
listWallets: async () => wallets,
});Last updated on