createWalletPaymentTool
createWalletPaymentTool(
options:CreateWalletPaymentToolOptions):ToolConfig
Defined in: src/tools/walletPayment.ts:160
Create the prompt_wallet_payment tool, which collects the passengers on a card and then pays the booking through the caller’s pay function.
Parameters
| Parameter | Type |
|---|---|
|
|
Returns
ToolConfig
Example
import { createWalletPaymentTool } from "@anuma/sdk/tools";
const paymentTool = createWalletPaymentTool({
getContext: () => uiInteraction,
getLastMessageId: () => lastMsgId,
pay: (request, signal) => payFromWallet(request, signal),
});Last updated on