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

Copy Markdown View Source

Agent Action that locally deletes a stored Xochi Mandate envelope.

v1 has no server revoke endpoint -- Xochi's KV budget counter for this envelope remains until expires_at per the agent-auth design doc (2026-04-27). When Xochi does revoke or exhaust a mandate, it answers a protected call with 410 Gone; the outbound plugin (Raxol.Payments.Req.Mandate) prunes the local envelope on that response, so a server-side revocation converges locally without this Action.

Summary

Functions

Validate input, run the action, validate output.

Generate an LLM tool definition for this action.

Functions

call(params, context \\ %{})

Validate input, run the action, validate output.

Returns {:ok, result}, {:ok, result, commands}, or {:error, reason}.

to_tool_definition()

Generate an LLM tool definition for this action.