Skip to main content

Module tools

Module tools 

Source
Available on crate feature payments only.
Expand description

Agent-facing payment tool builders backed by the canonical commerce kernel.

Every tool in this module returns only masked structured outputs via SafeTransactionSummary and redacted JSON. Raw sensitive payment data never appears in tool results.

§Supported operations

ToolScopeDescription
payments_checkout_createpayments:checkout:createCreate a new checkout session
payments_checkout_updatepayments:checkout:updateUpdate cart or fulfillment
payments_checkout_completepayments:checkout:completeFinalize and produce an order
payments_checkout_cancelpayments:checkout:cancelCancel a checkout or transaction
payments_status_lookuppayments:checkout:createLook up transaction status
payments_intervention_continuepayments:intervention:continueResume an intervention

§Example

use adk_payments::tools::PaymentToolsetBuilder;

let toolset = PaymentToolsetBuilder::new(checkout_service, transaction_store)
    .with_intervention_service(intervention_service)
    .build();
let tools = toolset.tools();

Structs§

PaymentToolset
A set of agent-facing payment tools backed by the canonical commerce kernel.
PaymentToolsetBuilder
Builder for the canonical payment toolset.

Functions§

cancel_checkout_tool
Creates a payments_checkout_cancel tool backed by the given checkout service.
complete_checkout_tool
Creates a payments_checkout_complete tool backed by the given checkout service.
continue_intervention_tool
Creates a payments_intervention_continue tool backed by the given intervention service.
create_checkout_tool
Creates a payments_checkout_create tool backed by the given checkout service.
status_lookup_tool
Creates a payments_status_lookup tool backed by the given transaction store.
update_checkout_tool
Creates a payments_checkout_update tool backed by the given checkout service.