PaymentIntent
@totemsdk/agent-policy / PaymentIntent
Interface: PaymentIntent
The action an agent wants the wallet to take. Agents produce intents; they do not execute them.
Properties
amount?
optionalamount?:string
Amount in the token's native unit (string to preserve precision).
inference?
optionalinference?:object
Inference block — present when type === 'inference' and describes the
compute the agent wants authorized. Its usage output is the metering
unit budget/cap policies convert into spend.
budgetTokenId?
optionalbudgetTokenId?:string
Token id the provider meters in, if inference is token-denominated.
domain
domain:
InferenceDomain
input?
optionalinput?:unknown
Prompt / audio / image reference to compute over.
maxTokens?
optionalmaxTokens?:number
Upper bound on output tokens, used by budget policies.
metadata?
optionalmetadata?:Record<string,unknown>
model?
optionalmodel?:string
Requested model, when the intent targets a specific one.
op
op:
string
Provider-neutral operation name, e.g. 'completion', 'ragSearch'.
metadata?
optionalmetadata?:Record<string,unknown>
Arbitrary extra context the agent wants to attach (e.g. invoice ref).
reason?
optionalreason?:string
Human-readable reason for the payment (shown to user in approval UI).
recipient?
optionalrecipient?:string
Recipient Minima address (Mx… or hex).
risk?
optionalrisk?:"low"|"medium"|"high"
Agent's self-assessed risk level — used by AgentPolicy routing.
tokenId?
optionaltokenId?:string
Minima tokenId, or '0x00' for native Minima.
type
type:
"payment"|"channel_update"|"settlement"|"lookup"|"receipt"|"inference"
Discriminator — what kind of operation this intent represents.