Raxol.Payments.Actions.Payments (Raxol Payments v0.2.0)

Copy Markdown View Source

Payment actions for AI agents.

Exposes LLM-callable tools for explicit payment operations. These complement the transparent auto-pay Req plugin -- auto-pay handles 402 flows silently, while these Actions let agents deliberately check their wallet, get quotes, transfer funds, and run cross-chain stealth intents through Xochi or the Tron relay rail.

Usage with ToolConverter

tools = ToolConverter.to_tool_definitions(Raxol.Payments.Actions.Payments.actions())

context = %{
  wallet: Raxol.Payments.Wallets.Env,
  ledger: ledger_pid,
  policy: SpendingPolicy.dev(),
  agent_id: :my_agent
}
{:ok, result} = ToolConverter.dispatch_tool_call(tool_call, actions(), context)

Summary

Functions

Returns all payment action modules.

Functions

actions()

@spec actions() :: [module()]

Returns all payment action modules.