Agent Action that polls a Xochi intent until it reaches a terminal status.
It never signs or moves funds, so it does not authorize a spend. It does
reconcile the execute-time budget reservation at a terminal status: a refund
releases it (SpendGate.release_by_intent/2, idempotent), any other terminal
status forgets the tag while the spend stands. Pass the same :ledger and
:agent_id used for the execute for this to take effect; without them it is a
no-op and the reservation is left untouched.
Context keys
:xochi_config--%{base_url:, auth:}forXochi.Client(e.g.auth: {:mandate, agent_wallet}; seeXochi.Clientfor all auth modes).:ledger,:agent_id-- optional; theLedgerand key from the execute, so a refund releases that reservation. SeeSpendGate.
Summary
Functions
Validate input, run the action, validate output.
Generate an LLM tool definition for this action.